Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Sung Yun <[email protected]>
  • Loading branch information
TiansuYu and sungwy authored Aug 24, 2024
1 parent 1ad7448 commit 6a17d10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyiceberg/table/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2501,7 +2501,7 @@ def update_column(
doc=doc if doc is not None else updated.doc,
# will raise ValidatorError
# if trying to change an identifier field from required to optional upon commit
required=required or updated.required,
required=updated.required,
)
else:
self._updates[field.field_id] = NestedField(
Expand All @@ -2511,7 +2511,7 @@ def update_column(
doc=doc if doc is not None else field.doc,
# will raise ValidatorError
# if trying to change an identifier field from required to optional upon commit
required=required or field.required,
required=field.required,
)

if required is not None:
Expand Down

0 comments on commit 6a17d10

Please sign in to comment.