Dandandan opened a new pull request, #9585:
URL: https://github.com/apache/arrow-rs/pull/9585

   ## Which issue does this PR close?
   
   Closes #9581
   
   ## Rationale
   
   The RLE dictionary decoding path uses if/else branching to select between 
checked and unchecked indexing. A branchless `.min(max_idx)` clamp is simpler 
and prevents UB on corrupt data.
   
   ## What changes are included in this PR?
   
   - Replace if/else checked/unchecked branching with a single branchless 
`.min(max_idx)` clamp in `get_batch_with_dict`
   - Add `RleDecodedBatch` enum and `get_batch_direct` method that exposes RLE 
vs bit-packed batches via callback
   - Gate `RleDecodedBatch` and `get_batch_direct` behind `arrow` feature flag
   
   ## Are there any user-facing changes?
   
   No.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
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]

Reply via email to