File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
vortex-array/src/arrays/list Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments