Skip to content

feat: Add SnapshotSummaries #1085

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

Merged
merged 10 commits into from
Mar 21, 2025
Merged

Conversation

jonathanc-n
Copy link
Contributor

@jonathanc-n jonathanc-n commented Mar 14, 2025

Which issue does this PR close?

What changes are included in this PR?

This is the building block to implementing snapshot summaries. Most of the implementation code is built off of @barronw 's very nice commit. Most of the added lines are also just tests. A follow up pr will be included integrating it with the rest of the codebase.

Are these changes tested?

Yes, unit test

}

#[allow(dead_code)]
impl SnapshotSummaryCollector {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we should provide function like set(string,string) to let user set custom properities
https://github.com/apache/iceberg/blob/4dbcdfc85a64dc1d97d7434e353c7f9e4c18e1b3/core/src/main/java/org/apache/iceberg/SnapshotSummary.java#L152

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed, this pr mostly includes the previous implementation from @barronw. I can create a follow up pr for merging summaries, duplicate deletes, manifest handling.

Copy link
Contributor

@liurenjie1024 liurenjie1024 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jonathanc-n for this nice pr, generally LGTM! Just some minor comments.

@jonathanc-n
Copy link
Contributor Author

@liurenjie1024 Done! thank you for your reivew

Copy link
Contributor

@liurenjie1024 liurenjie1024 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jonathanc-n for this pr!

@liurenjie1024 liurenjie1024 merged commit f5242cd into apache:main Mar 21, 2025
17 checks passed
@jonathanc-n jonathanc-n deleted the snapshot-summaries branch March 28, 2025 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants