Skip to content

Commit

Permalink
BitPacked encoding with max level 0 should also result in an iterator…
Browse files Browse the repository at this point in the history
… of zeroes (#51)
  • Loading branch information
jhorstmann authored Sep 21, 2021
1 parent 4179260 commit e122c0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration-tests/src/read/binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ fn read_buffer(
) -> Vec<Option<Vec<u8>>> {
let max_def_level = def_level_encoding.1 as u32;
match (def_level_encoding.0, max_def_level == 0) {
(Encoding::Rle, true) => read_buffer_impl(
(Encoding::Rle, true) | (Encoding::BitPacked, true) => read_buffer_impl(
std::iter::repeat(0).take(length as usize),
values,
length,
Expand Down

0 comments on commit e122c0d

Please sign in to comment.