-
Notifications
You must be signed in to change notification settings - Fork 395
feat: append action allows snapshot properties #1534
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
feat: append action allows snapshot properties #1534
Conversation
liurenjie1024
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.
Thanks @dentiny for this pr, generally LGTM!
| ) -> Result<Vec<ManifestFile>> { | ||
| let added_manifest = self.write_added_manifest().await?; | ||
| // Assert current snapshot producer contains new content to add to new snapshot. | ||
| if self.added_data_files.is_empty() && self.snapshot_properties.is_empty() { |
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.
Please create an issue to track that we need to remove this workaround when we introduced all necessary tx apis.
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.
Sure! I created an issue to track: #1548
Also leave TODO items in the code along with the issue attached.
liurenjie1024
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.
Thanks @dentiny for this pr, LGTM!
Which issue does this PR close?
What changes are included in this PR?
I have a real-world production requirement: I need the capability to add snapshot properties to a new snapshot, whether or not there's new data files appended at the same time.
In this PR, I tried to reuse the
FastAppendinterface, which allows people only added properties but not data files.I don't find other available interfaces at the moment.
Are these changes tested?
Unit tested added.