CaptainAni187 opened a new pull request, #3754:
URL: https://github.com/apache/iceberg-rust/pull/3754

   ## Which issue does this PR close?
   
   - Closes #3753.
   
   ## What changes are included in this PR?
   
   `split` grouped rows in a `HashMap` and returned the pieces in hash order. 
Now each partition value remembers its position the first time it shows up, so 
the pieces come back in first-occurrence order and sorted input stays sorted 
for `ClusteredWriter`. The order is noted in the `split` docs since callers can 
rely on it now.
   
   Related: apache/datafusion-iceberg#81 works around this downstream until it 
picks up a release with this.
   
   ## Are these changes tested?
   
   Yes, `test_record_batch_partition_split_keeps_first_occurrence_order` splits 
50 partitions given in descending order and checks the keys come back in that 
order. It fails on main.
   
   ## AI Disclosure
   
   Used Claude Code to help write the fix and the test, I went through the 
change and ran the tests myself. Worth a look: whether stating the order in the 
`split` docs is fine as a guarantee, and the one extra `Struct` clone per 
partition for the index map.
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to