bryanck opened a new pull request, #5235:
URL: https://github.com/apache/iceberg/pull/5235

   Currently in the REST catalog handler, during a CTAS, the files will be 
written and associated with the partition spec ID from the initial create 
request. When the commit occurs, an empty table metadata object is created and 
updates are applied to that. However, applying the updates will increment the 
partition spec ID, so the files will be associated with the empty spec ID, and 
thus partition pruning will not be available for these files.
   
   This PR adds the ability to build on top of an empty TableMetadata so the 
initial IDs will match the initial files. It also moves 
`TableMetadata.newTableMetadata` to use the builder to instantiate a new 
instance so it can reuse functionality from the builder and to be consistent 
with `buildReplacement()`.
   


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