Skip to content

Commit 5bb1c0a

Browse files
committed
Fixed for updated Views.
1 parent a893cff commit 5bb1c0a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

crates/execution/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,15 @@ impl Hash for Row<'_> {
121121
impl Row<'_> {
122122
pub fn to_product_value(&self) -> ProductValue {
123123
match self {
124-
Self::Null => ProductValue { elements: Box::new([]) },
124+
Self::Null => [].into(),
125125
Self::Ptr(ptr) => ptr.to_product_value(),
126126
Self::Ref(val) => (*val).clone(),
127127
}
128128
}
129129

130130
pub fn project_product(self, cols: &ColList) -> Result<ProductValue, InvalidFieldError> {
131131
match self {
132+
Self::Null => Ok([].into()),
132133
Self::Ptr(ptr) => ptr.project_product(cols),
133134
Self::Ref(val) => val.project_product(cols),
134135
}

0 commit comments

Comments
 (0)