Skip to content

Commit a028d26

Browse files
committed
MaskFn
Signed-off-by: Nicholas Gates <nick@nickgates.com>
1 parent dcbdb4e commit a028d26

File tree

1 file changed

+1
-4
lines changed
  • vortex-array/src/scalar_fns/mask

1 file changed

+1
-4
lines changed

vortex-array/src/scalar_fns/mask/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ impl VTable for MaskFn {
4949
"The mask argument to 'mask' must be a non-nullable boolean array, got {}",
5050
arg_types[1]
5151
);
52-
53-
// Since we only intersect validity, we never introduce new null values. Therefore, the
54-
// return type has the same nullability as the input array.
55-
Ok(arg_types[0].clone())
52+
Ok(arg_types[0].as_nullable())
5653
}
5754

5855
fn execute(&self, _options: &Self::Options, args: &ExecutionArgs) -> VortexResult<Datum> {

0 commit comments

Comments
 (0)