-
Notifications
You must be signed in to change notification settings - Fork 344
feat: add apply in transaction to support stack action #949
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
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 |
crates/iceberg/src/transaction.rs
Outdated
| .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
jonathanc-n
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.
LGTM! Thanks @ZENOTME
|
I think we should try to move this along. cc @liurenjie1024 @Fokko @sdd |
Thanks, I'll take a look recently. |
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 @ZENOTME for this pr, generally LGTM! Just one minor suggestion.
|
cc @ZENOTME Would you help to resolve the conflicts? |
Sure. |
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 @ZENOTME for this pr, LGTM!
This PR resolve: #596. I refer the implementation from pyiceberg: https://github.com/apache/iceberg-python/blob/4d648bb834963efba886d62e79fa3e1e26288dd0/pyiceberg/table/__init__.py#L258