We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ccfa61 commit 20e8347Copy full SHA for 20e8347
1 file changed
crates/execution/src/lib.rs
@@ -134,14 +134,15 @@ impl Hash for Row<'_> {
134
impl Row<'_> {
135
pub fn to_product_value(&self) -> ProductValue {
136
match self {
137
- Self::Null => ProductValue { elements: Box::new([]) },
+ Self::Null => [].into(),
138
Self::Ptr(ptr) => ptr.to_product_value(),
139
Self::Ref(val) => (*val).clone(),
140
}
141
142
143
pub fn project_product(self, cols: &ColList) -> Result<ProductValue, InvalidFieldError> {
144
145
+ Self::Null => Ok([].into()),
146
Self::Ptr(ptr) => ptr.project_product(cols),
147
Self::Ref(val) => val.project_product(cols),
148
0 commit comments