Skip to content

Commit 3e15f64

Browse files
committed
wip
Signed-off-by: Joe Isaacs <[email protected]>
1 parent 549603f commit 3e15f64

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vortex-array/src/arrays/list/array.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,17 +172,18 @@ impl ListArray {
172172
let max_offset = P::try_from(offsets.scalar_at(offsets.len() - 1))
173173
.vortex_expect("Offsets type must fit offsets values");
174174

175+
#[allow(clippy::absurd_extreme_comparisons, unused_comparisons)]
175176
{
176177
if let Some(min) = min_max.min.as_primitive().as_::<P>() {
177178
vortex_ensure!(
178-
min <= max_offset,
179+
min >= 0 && min <= max_offset,
179180
"offsets minimum {min} outside valid range [0, {max_offset}]"
180181
);
181182
}
182183

183184
if let Some(max) = min_max.max.as_primitive().as_::<P>() {
184185
vortex_ensure!(
185-
max <= max_offset,
186+
max >= 0 && max <= max_offset,
186187
"offsets maximum {max} outside valid range [0, {max_offset}]"
187188
)
188189
}

0 commit comments

Comments
 (0)