-
Notifications
You must be signed in to change notification settings - Fork 215
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: add apply in transaction to support stack action #949
base: main
Are you sure you want to change the base?
Conversation
c20c598
to
536dce7
Compare
Hi @liurenjie1024, I think we should resolve this PR first before working on #964. It will affect the interface in transactions. |
5e8e0b0
to
9b7ef77
Compare
I think this PR is ready to review. cc @Fokko @liurenjie1024 @Xuanwo @sdd |
@@ -261,7 +286,7 @@ impl<'a> FastAppendAction<'a> { | |||
let mut manifest_stream = self | |||
.snapshot_produce_action | |||
.tx | |||
.table | |||
.current_table |
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.
I realized that there are some functions based on the table. And storing only current metadata may cause inconsistencies easily in the future. So change to store current table instead of metadata
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.
LGTM! Thanks @ZENOTME
This PR resolve: #596. I refer the implementation from pyiceberg: https://github.com/apache/iceberg-python/blob/4d648bb834963efba886d62e79fa3e1e26288dd0/pyiceberg/table/__init__.py#L258