We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a893cff commit 5bb1c0aCopy full SHA for 5bb1c0a
1 file changed
crates/execution/src/lib.rs
@@ -121,14 +121,15 @@ impl Hash for Row<'_> {
121
impl Row<'_> {
122
pub fn to_product_value(&self) -> ProductValue {
123
match self {
124
- Self::Null => ProductValue { elements: Box::new([]) },
+ Self::Null => [].into(),
125
Self::Ptr(ptr) => ptr.to_product_value(),
126
Self::Ref(val) => (*val).clone(),
127
}
128
129
130
pub fn project_product(self, cols: &ColList) -> Result<ProductValue, InvalidFieldError> {
131
132
+ Self::Null => Ok([].into()),
133
Self::Ptr(ptr) => ptr.project_product(cols),
134
Self::Ref(val) => val.project_product(cols),
135
0 commit comments