-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[core] Support creating Iceberg metadata based on old ones #3739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| if (baseSnapshot == null) { | ||
| createMetadataWithoutBase(currentSnapshot); | ||
| } else { | ||
| createMetadataWithBase(committable, currentSnapshot, baseSnapshot); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pass Set<BinaryRow> modifiedPartitions to createMetadataWithBase.
| .dataSplits(); | ||
| Map<String, Pair<RawFile, BinaryRow>> currentRawFiles = new HashMap<>(); | ||
| for (DataSplit dataSplit : dataSplits) { | ||
| if (dataSplit.rawConvertible() && modifiedPartitions.contains(dataSplit.partition())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
without deletion vectors, please add tests.
| } | ||
| } | ||
|
|
||
| public static Object toObject(DataType type, byte[] bytes) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
toPaimonObject?
JingsongLi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Let's keep moving forward!
Purpose
In #3731 we introduce
IcebergCommitCallbackto create Iceberg metadata. In this PR we improve this class so that it can reuse Iceberg manifest files created before to create new Iceberg metadata.Tests
Unit tests.
API and Format
No changes in Paimon format.
Documentation
Document will be added later.