From 49318525356a926f57447f2a95c64d228015f8aa Mon Sep 17 00:00:00 2001 From: Jefffrey Date: Fri, 24 May 2024 07:59:21 +1000 Subject: [PATCH] Fix unreachable encoding for bit width decoder util - Values based off https://github.com/apache/orc/blob/e8402b233fd671f8fe42ec7eff24ee4fea51256b/c%2B%2B/src/RLEV2Util.cc#L24-L27 --- src/reader/decode/util.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/reader/decode/util.rs b/src/reader/decode/util.rs index 468bd7d1..bc0b3cf4 100644 --- a/src/reader/decode/util.rs +++ b/src/reader/decode/util.rs @@ -226,6 +226,9 @@ pub fn rle_v2_decode_bit_width(encoded: u8) -> usize { debug_assert!(encoded < 32, "encoded bit width cannot exceed 5 bits"); match encoded { 0..=23 => encoded as usize + 1, + 24 => 26, + 25 => 28, + 26 => 30, 27 => 32, 28 => 40, 29 => 48,