-
Notifications
You must be signed in to change notification settings - Fork 412
fix (issue-1079): allow update_column to set doc as '' #1083
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
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.
sungwy
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.
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 <107272191+sungwy@users.noreply.github.com>
sungwy
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.
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 <107272191+sungwy@users.noreply.github.com> * Apply suggestions from code review --------- Co-authored-by: Tiansu Yu <tiansu.yu@icloud> Co-authored-by: Sung Yun <107272191+sungwy@users.noreply.github.com>
* 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 <107272191+sungwy@users.noreply.github.com> * Apply suggestions from code review --------- Co-authored-by: Tiansu Yu <tiansu.yu@icloud> Co-authored-by: Sung Yun <107272191+sungwy@users.noreply.github.com>
Fixes issue#1079
update_columnshould be able to update / removedoc; andrequiredif field is not an identifier field.