Skip to content

Commit 1869573

Browse files
committed
fix[dict]: min_max must not be null
Signed-off-by: Joe Isaacs <[email protected]>
1 parent e25e75f commit 1869573

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vortex-layout/src/layouts/dict/reader.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,12 @@ impl LayoutReader for DictReader {
177177
if values.all_valid()
178178
&& let Some(MinMaxResult { min, max }) = min_max(&values)?
179179
{
180+
#[expect(clippy::bool_comparison, reason = "easy to follow")]
180181
if max.as_bool().value().vortex_expect("non null") == false {
181182
// All values are false
182183
return Ok(Mask::AllFalse(mask.len()));
183184
}
185+
#[expect(clippy::bool_comparison, reason = "easy to follow")]
184186
if min.as_bool().value().vortex_expect("not null") == true {
185187
// All values are true, but we still need to respect codes validity
186188
return Ok(mask.bitand(&codes.validity_mask()));

0 commit comments

Comments
 (0)