rdblue commented on code in PR #5287:
URL: https://github.com/apache/iceberg/pull/5287#discussion_r927048157
##########
python/pyiceberg/table/metadata.py:
##########
@@ -84,12 +85,12 @@ class TableMetadataCommonFields(IcebergBaseModel):
def current_schema(self) -> Schema:
return next(schema for schema in self.schemas if schema.schema_id ==
self.current_schema_id)
- @root_validator(pre=True)
+ @root_validator()
def cleanup_snapshot_id(cls, data: Dict[str, Any]):
- if data.get("current-snapshot-id") == -1:
+ if data.get("current_snapshot_id") == -1:
Review Comment:
Can the changes to remove prevalidators be done in a separate PR?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]