Skip to content

Conversation

@TiansuYu
Copy link
Contributor

@TiansuYu TiansuYu commented Aug 21, 2024

Fixes issue#1079

update_column should be able to update / remove doc; and required if field is not an identifier field.

@TiansuYu TiansuYu marked this pull request as ready for review August 22, 2024 08:45
doc=doc or updated.doc,
required=updated.required,
doc=doc if doc is not None else updated.doc,
required=required or updated.required,
Copy link
Contributor Author

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.

Copy link
Collaborator

@sungwy sungwy left a 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!

doc=doc or updated.doc,
required=updated.required,
doc=doc if doc is not None else updated.doc,
required=required or updated.required,
Copy link
Collaborator

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!

Copy link
Collaborator

@sungwy sungwy left a 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

@sungwy sungwy merged commit 0b487f2 into apache:main Aug 26, 2024
@TiansuYu TiansuYu deleted the fix-issue-1079 branch August 26, 2024 16:16
sungwy added a commit to sungwy/iceberg-python that referenced this pull request Dec 7, 2024
* 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]>
sungwy added a commit to sungwy/iceberg-python that referenced this pull request Dec 7, 2024
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Allow users to drop column description in update_column

2 participants