tennisleng opened a new pull request, #48549: URL: https://github.com/apache/arrow/pull/48549
### Rationale for this change This PR implements the optimization to fuse definition level decoding with counting in the Parquet column reader, addressing the TODO in `cpp/src/parquet/column_reader.cc`. ### What changes are included in this PR? 1. Added `GetBatchWithCount` to `RleBitPackedDecoder`, `RleRunDecoder`, and `BitPackedRunDecoder` in `cpp/src/arrow/util/rle_encoding_internal.h`. 2. Added `DecodeAndCount` to `LevelDecoder` in `cpp/src/parquet/column_reader.h` and `cpp/src/parquet/column_reader.cc`. 3. Updated `TypedColumnReaderImpl::ReadLevels` in `cpp/src/parquet/column_reader.cc` to use `DecodeAndCount`. ### Are these changes tested? Yes. 1. Added a new unit test `Rle.GetBatchWithCount` in `cpp/src/arrow/util/rle_encoding_test.cc`. 2. Verified with `arrow-bit-utility-test`. ### Are there any user-facing changes? No, this is an internal performance optimization. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
