Skip to content

Commit 4a62692

Browse files
authored
Simplify
1 parent fc39204 commit 4a62692

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pyiceberg/table/update/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -760,9 +760,8 @@ def validate(self, base_metadata: Optional[TableMetadata]) -> None:
760760
def model_dump_json(
761761
self, exclude_none: bool = False, exclude: Optional[Set[str]] = None, by_alias: bool = True, **kwargs: Any
762762
) -> str:
763-
return super().model_dump_json(
764-
exclude_none=exclude_none, exclude=self._exclude_private_properties(exclude), by_alias=by_alias, **kwargs
765-
)
763+
# `snapshot-id` is required in json response, even if null
764+
return super().model_dump_json(exclude_none=False)
766765

767766
class AssertLastAssignedFieldId(ValidatableTableRequirement):
768767
"""The table's last assigned column id must match the requirement's `last-assigned-field-id`."""

0 commit comments

Comments
 (0)