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

   ## Which issue does this PR close?
   
   - Closes #.
   
   Related: apache/datafusion-iceberg#139
   
   ## What changes are included in this PR?
   
   `RecordBatchPartitionSplitter`'s precomputed mode reads the partition values 
from a column named `_partition`, taking the first column with that name. If 
the table also has a `_partition` column, the splitter reads the table column 
instead. The returned batches also keep the partition values column, so callers 
have to strip it before writing.
   
   This adds `split_with_partition_values`, which takes the partition values as 
a separate `StructArray` and splits a batch that doesn't contain them. `split` 
is unchanged; both now share the grouping code.
   
   ## Are these changes tested?
   
   Yes, unit tests for splitting a batch with its own `_partition` column, and 
for the error when the number of partition values doesn't match the batch.
   
   ## AI Disclosure
   
   


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