File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 33
44use std:: fmt:: Formatter ;
55use std:: ops:: Not ;
6-
6+ use is_null :: IsNullFn ;
77use vortex_dtype:: DType ;
88use vortex_dtype:: Nullability ;
99use vortex_error:: VortexExpect ;
@@ -115,7 +115,7 @@ impl VTable for IsNull {
115115 }
116116
117117 fn expr_v2 ( & self , view : & ExpressionView < Self > ) -> VortexResult < Expression > {
118- ScalarFnExprExt :: try_new_expr ( & is_null :: IsNull , EmptyOptions , view. children ( ) . clone ( ) )
118+ ScalarFnExprExt :: try_new_expr ( & IsNullFn , EmptyOptions , view. children ( ) . clone ( ) )
119119 }
120120}
121121
Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ pub trait VTable: 'static + Sized + Send + Sync {
156156
157157 /// **For internal usage**. This will return an Expression that is part of the
158158 /// expression -> new_expression migration.
159+ #[ doc( hidden) ]
159160 fn expr_v2 ( & self , expr : & ExpressionView < Self > ) -> VortexResult < Expression > {
160161 Ok ( expr. deref ( ) . clone ( ) )
161162 }
Original file line number Diff line number Diff line change 11// SPDX-License-Identifier: Apache-2.0
22// SPDX-FileCopyrightText: Copyright the Vortex contributors
33
4+ use std:: ops:: Not ;
45use vortex_dtype:: DType ;
56use vortex_dtype:: Nullability :: NonNullable ;
67use vortex_error:: VortexResult ;
@@ -19,8 +20,8 @@ use crate::expr::functions::EmptyOptions;
1920use crate :: expr:: functions:: ExecutionArgs ;
2021use crate :: expr:: functions:: VTable ;
2122
22- pub struct IsNull ;
23- impl VTable for IsNull {
23+ pub struct IsNullFn ;
24+ impl VTable for IsNullFn {
2425 type Options = EmptyOptions ;
2526
2627 fn id ( & self ) -> ExprId {
@@ -46,7 +47,7 @@ impl VTable for IsNull {
4647 Ok ( match args. input_datums ( 0 ) {
4748 Datum :: Scalar ( sc) => Datum :: Scalar ( sc. is_invalid ( ) . into ( ) ) ,
4849 Datum :: Vector ( vec) => Vector :: Bool ( BoolVector :: new (
49- vec. validity ( ) . to_bit_buffer ( ) ,
50+ vec. validity ( ) . to_bit_buffer ( ) . not ( ) ,
5051 Mask :: AllTrue ( vec. len ( ) ) ,
5152 ) )
5253 . into ( ) ,
You can’t perform that action at this time.
0 commit comments