Skip to content

Commit 7aff46a

Browse files
authored
Assert compare validity in VarBin compare tests (#3441)
Signed-off-by: Robert Kruszewski <[email protected]>
1 parent d17f02f commit 7aff46a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

vortex-array/src/arrays/varbin/compute/compare.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ mod test {
142142
.to_bool()
143143
.unwrap();
144144

145+
assert_eq!(
146+
&result.validity_mask().unwrap().to_boolean_buffer(),
147+
&BooleanBuffer::from_iter([true, false, true])
148+
);
145149
assert_eq!(
146150
result.boolean_buffer(),
147151
&BooleanBuffer::from_iter([true, false, false])
@@ -163,6 +167,10 @@ mod test {
163167
.to_bool()
164168
.unwrap();
165169

170+
assert_eq!(
171+
&result.validity_mask().unwrap().to_boolean_buffer(),
172+
&BooleanBuffer::from_iter([false, false, true])
173+
);
166174
assert_eq!(
167175
result.boolean_buffer(),
168176
&BooleanBuffer::from_iter([false, true, true])

0 commit comments

Comments
 (0)