-
Notifications
You must be signed in to change notification settings - Fork 209
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
fix (issue-1079): allow update_column to set doc as '' #1083
Conversation
107e5a8
to
2e140b9
Compare
pyiceberg/table/__init__.py
Outdated
doc=doc or updated.doc, | ||
required=updated.required, | ||
doc=doc if doc is not None else updated.doc, | ||
required=required or updated.required, |
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.
@sungwy I have fixed this as well. let me know if this ignorance is intended in the first place.
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.
Hi @TiansuYu , thank you for putting in this fix so quickly. Added a few comments. This PR looks almost ready to merge!
pyiceberg/table/__init__.py
Outdated
doc=doc or updated.doc, | ||
required=updated.required, | ||
doc=doc if doc is not None else updated.doc, | ||
required=required or updated.required, |
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.
😱
This looks correct to me. Thank you for the fix!
Co-authored-by: Sung Yun <[email protected]>
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 will remove these comments now as well, as they make less sense without the proposed change to required field update
* fix (issue-1079): allow update_column to set doc as '' * fix (issue-1079): add test for required and fix version * Apply suggestions from code review Co-authored-by: Sung Yun <[email protected]> * Apply suggestions from code review --------- Co-authored-by: Tiansu Yu <tiansu.yu@icloud> Co-authored-by: Sung Yun <[email protected]>
* fix (issue-1079): allow update_column to set doc as '' * fix (issue-1079): add test for required and fix version * Apply suggestions from code review Co-authored-by: Sung Yun <[email protected]> * Apply suggestions from code review --------- Co-authored-by: Tiansu Yu <tiansu.yu@icloud> Co-authored-by: Sung Yun <[email protected]>
Fixes issue#1079
update_column
should be able to update / removedoc
; andrequired
if field is not an identifier field.