Skip to content

Commit

Permalink
RunEnd ends array max is length of the array (#1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
robert3005 authored Oct 11, 2024
1 parent ea83f36 commit e75606d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions encodings/runend/src/compress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,9 @@ pub fn runend_encode(array: &PrimitiveArray) -> (PrimitiveArray, PrimitiveArray)
compressed_ends
.statistics()
.set(Stat::Min, scalar_at(&compressed_ends, 0).vortex_unwrap());
compressed_ends.statistics().set(
Stat::Max,
scalar_at(&compressed_ends, compressed_ends.len() - 1).vortex_unwrap(),
);
compressed_ends
.statistics()
.set(Stat::Max, (array.len() as u64).into());
}

assert_eq!(array.dtype(), compressed_values.dtype());
Expand Down

0 comments on commit e75606d

Please sign in to comment.