Skip to content

Commit 3709c20

Browse files
committed
simpler
Signed-off-by: Robert Kruszewski <github@robertk.io>
1 parent 901c1e1 commit 3709c20

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

encodings/fastlanes/src/rle/array/rle_decompress.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
use fastlanes::RLE;
55
use num_traits::AsPrimitive;
66
use num_traits::NumCast;
7-
use vortex_array::Canonical;
87
use vortex_array::DynArray;
98
use vortex_array::ExecutionCtx;
109
use vortex_array::IntoArray;
@@ -26,10 +25,6 @@ use crate::RLEArray;
2625
reason = "complexity is from nested match_each_* macros"
2726
)]
2827
pub fn rle_decompress(array: &RLEArray, ctx: &mut ExecutionCtx) -> VortexResult<PrimitiveArray> {
29-
if array.all_invalid()? {
30-
return Ok(Canonical::empty(array.dtype()).into_primitive());
31-
}
32-
3328
match_each_native_ptype!(array.values().dtype().as_ptype(), |V| {
3429
match_each_unsigned_integer_ptype!(array.values_idx_offsets().dtype().as_ptype(), |O| {
3530
// RLE indices are always u16 (or u8 if downcasted).

0 commit comments

Comments
 (0)