Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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!

pyproject.toml Outdated Show resolved Hide resolved
tests/table/test_init.py Show resolved Hide resolved
pyiceberg/table/__init__.py Outdated Show resolved Hide resolved
pyiceberg/table/__init__.py Outdated Show resolved Hide resolved
Co-authored-by: Sung Yun <107272191+sungwy@users.noreply.github.com>
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

pyiceberg/table/__init__.py Outdated Show resolved Hide resolved
pyiceberg/table/__init__.py Outdated Show resolved Hide resolved
@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 <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>
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 <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>
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.