[Improvement]: Optimize the commit process of commit snapshots for UnKeyedTable optimizing
Search before asking
- [X] I have searched in the issues and found no similar issues.
What would you like to be improved?
Before version 1.3.x of Iceberg, the RewriteFiles interface did not provide methods for specifying sequence numbers while adding and deleting delete files. Therefore, in UnKeyedTableCommit, we had to complete table rewrite through transactional submission and an additional snapshot of deleting files. However, Iceberg version 1.3.x provides a more flexible interface design to improve this, and we can complete the rewrite in one submission through the following approach:
RewriteFiles dataFileRewrite = icebergTable.newRewrite();
addDeleteFiles.forEach(dataFileRewrite::addFile);
removedDataFiles.forEach(dataFileRewrite::deleteFile);
addDeleteFiles.forEach(dataFileRewrite::addFile);
removedDeleteFiles.forEach(dataFileRewrite::deleteFile);
dataFileRewrite.dataSequenceNumber(sequenceNumber);
dataFileRewrite.commit();
How should we improve?
No response
Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
Subtasks
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
cc @861752346
The issue has not be resolved, right?
This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.
This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'