From 91a5b49a573b90469ef0c1f1b26e3623b6069b3f Mon Sep 17 00:00:00 2001 From: Clemens Winter Date: Sat, 3 Aug 2024 16:13:24 -0700 Subject: [PATCH] Fix null WHERE clause --- src/engine/operators/vector_operator.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/engine/operators/vector_operator.rs b/src/engine/operators/vector_operator.rs index fecb343c..e6431786 100644 --- a/src/engine/operators/vector_operator.rs +++ b/src/engine/operators/vector_operator.rs @@ -637,7 +637,13 @@ pub mod operator { filter: BufferRef>, output: TypedBufferRef, ) -> Result, QueryError> { - if input.is_nullable() { + if input.is_null() { + Ok(null_vec_like( + filter.any(), + output.any(), + LengthSource::NonZeroU8ElementCount, + )) + } else if input.is_nullable() { reify_types! { "nullable_filter_nullable"; input, output: NullablePrimitive;