Skip to content

Commit 20e8347

Browse files
committed
Fixed for updated Views.
1 parent 7ccfa61 commit 20e8347

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
@@ -134,14 +134,15 @@ impl Hash for Row<'_> {
134134
impl Row<'_> {
135135
pub fn to_product_value(&self) -> ProductValue {
136136
match self {
137-
Self::Null => ProductValue { elements: Box::new([]) },
137+
Self::Null => [].into(),
138138
Self::Ptr(ptr) => ptr.to_product_value(),
139139
Self::Ref(val) => (*val).clone(),
140140
}
141141
}
142142

143143
pub fn project_product(self, cols: &ColList) -> Result<ProductValue, InvalidFieldError> {
144144
match self {
145+
Self::Null => Ok([].into()),
145146
Self::Ptr(ptr) => ptr.project_product(cols),
146147
Self::Ref(val) => val.project_product(cols),
147148
}

0 commit comments

Comments
 (0)