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

   # Which issue does this PR close?
   
   - Closes #12495.
   
   # Rationale for this change
   
   `GenericColumnReader::skip_records` does not return when a data page of a 
repeated column declares more values than it has repetition levels. 
`skip_rep_levels` returns `(0, 0)` once the levels run out, and nothing else in 
the loop advances. `read_records` returns an error for the same page since 
#6232.
   
   # What changes are included in this PR?
   
   `skip_records` returns `Insufficient repetition levels read from column` 
when `skip_rep_levels` reads no record and no level, the same check and message 
as in `read_records`.
   
   # Are these changes tested?
   
   Yes. `test_skip_records_insufficient_rep_levels` reads and skips a page with 
two repetition levels that declares four values, and expects the same error 
from both. Without the fix the skip does not return.
   
   # Are there any significant user-facing changes?
   
   No. A skip that did not terminate now returns an error.
   
   # AI usage disclosure
   
   Claude Code found the problem while fuzzing the reader with corrupted files, 
and generated the fix, the test and this description. The test was run on 
`main` with and without the fix.
   
   🤖 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