hubcio opened a new pull request, #3969:
URL: https://github.com/apache/iggy/pull/3969

   The Iceberg sink built its partition key from an empty
   PartitionSpec::builder() with hardcoded zero literals, so every
   record landed in one dummy partition (e.g. year=1970) whatever the
   table's spec said, and a batch spanning several partitions was
   never split.
   
   Read the default partition spec from table metadata instead and
   push every batch through one TableWriter: partitioned tables split
   it with RecordBatchPartitionSplitter and fan out to one data file
   writer per partition value, unpartitioned tables map it to the
   single key of their spec (with one null per void field, which the
   commit-time arity check requires). Files finalized by a failed
   batch are deleted before the error is returned so nothing is left
   orphaned on the object store; files are kept on commit failure
   because the catalog may already have applied the commit.
   
   Ports #3860 with its review feedback applied. Fixes #3853
   


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