Skip to content

Commit

Permalink
Fix null WHERE clause
Browse files Browse the repository at this point in the history
  • Loading branch information
cswinter committed Aug 3, 2024
1 parent 2bfa2f2 commit 91a5b49
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/engine/operators/vector_operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,13 @@ pub mod operator {
filter: BufferRef<Nullable<u8>>,
output: TypedBufferRef,
) -> Result<BoxedOperator<'a>, 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;
Expand Down

0 comments on commit 91a5b49

Please sign in to comment.