Mola-maker opened a new pull request, #12394:
URL: https://github.com/apache/arrow-rs/pull/12394

   # Which issue does this PR close?
   
   - Closes #12391
   
   # Rationale for this change
   
   Content-defined chunking hashed values at `leaf_offset` for nested columns.
   That index counts leaf slots in level order.
   It does not match the leaf array for sliced lists, null-row child slots, or 
list views.
   Page boundaries then depended on values that were not written.
   List views could also panic.
   
   # What changes are included in this PR?
   
   - The chunker now hashes the value at `non_null_indices` for each written 
value.
   - `slice_for_chunk` spans the full index range with min and max.
   - Four regression tests from the issue cover sliced lists, null rows, 
reversed views, and overlapping views.
   
   # Are these changes tested?
   
   Yes. The four new tests failed on the base (two failures, two panics) and 
pass with the fix.
   The full arrow writer integration suite passes.
   The chunker and arrow writer unit tests pass.
   
   # Are there any significant user-facing changes?
   
   Yes. Page boundaries for nested columns with content-defined chunking now 
depend only on the values written.
   
   # AI usage disclosure
   
   Muse (Muse Spark) assisted with the investigation, fix, and tests under my 
direction. I reviewed the diff and ran the tests.
   
   # Test
   
   - `cargo test -p parquet --test arrow_writer cdc`: 4 passed, 0 failed.
   - `cargo test -p parquet --test arrow_writer`: 118 passed, 0 failed.
   - `cargo test -p parquet --lib column::chunker`: 114 passed, 0 failed.
   - `cargo test -p parquet --lib arrow::arrow_writer`: 121 passed, 0 failed.
   - `cargo fmt --all -- --check`: clean.
   - `cargo clippy -p parquet --all-targets --all-features`: clean.
   


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