-
Notifications
You must be signed in to change notification settings - Fork 288
Feature: Write to branches #941
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
base: main
Are you sure you want to change the base?
Conversation
@sungwy @kevinjqliu |
Fixed another bug. Please review whenever you get some time. |
Thanks for the contribution! I'll take a look. |
I have mostly tried to cover all edge cases. I also agree with your concern. |
Hey @kevinjqliu |
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 for the PR! And sorry for the delay, I was running the 0.8.0 release.
Generally LGTM, I left a comment about add more tests integrating with Spark
Thank you for the review @kevinjqliu |
@kevinjqliu What are the next steps to get this merged? |
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.
apologies for the delay here, was working on releasing 0.8.0
Added a few comments
Since this is a huge feature, I want to make sure we have thought through all the edge cases
tests/table/test_init.py
Outdated
|
||
with pytest.raises( | ||
CommitFailedException, | ||
match="Requirement failed: branch or tag not_exist_branch is missing, expected 1", |
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.
nit, we know this is referencing a branch
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.
We are not aware if it is a branch or tag as it is non-existent
This is the error message from the AssertRefSnapshotId when the ref is non-existing
tests/table/test_init.py
Outdated
|
||
with pytest.raises( | ||
CommitFailedException, | ||
match="Requirement failed: branch or tag not_exist_tag is missing, expected 1", |
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.
nit, same here with tag
pyiceberg/table/update/__init__.py
Outdated
@@ -609,11 +609,14 @@ class AssertRefSnapshotId(ValidatableTableRequirement): | |||
|
|||
type: Literal["assert-ref-snapshot-id"] = Field(default="assert-ref-snapshot-id") | |||
ref: str = Field(...) | |||
ref_type: SnapshotRefType = Field(...) |
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.
nit instead of adding this extra field, can we do something like the java side?
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.
Makes sense. Let me get back on how I can introduce the change
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.
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.
Resolved the comments
@vinjai coming back to this after the 0.8.1 release :) |
hey @vinjai are you interested to pick this back up? |
Hey @kevinjqliu |
thank you! @vinjai feel free to tag me again for review :) |
Hey @kevinjqliu Let me know once you have reviewed the above comments |
Hey @kevinjqliu |
Hi, just wondering if there is an update on this PR? |
Hey @kevinjqliu |
Hey @Fokko |
Hey @vinjai, did you get a chance to fix those conflicts? 🙂 |
Fixes: #306