smaheshwar-pltr commented on code in PR #2146: URL: https://github.com/apache/iceberg-python/pull/2146#discussion_r2164384458
########## pyiceberg/table/statistics.py: ########## @@ -29,15 +29,24 @@ class BlobMetadata(IcebergBaseModel): properties: Optional[Dict[str, str]] = None -class StatisticsFile(IcebergBaseModel): +class StatisticsCommonFields(IcebergBaseModel): + """Common fields between table and partition statistics structs found on metadata.""" + snapshot_id: int = Field(alias="snapshot-id") statistics_path: str = Field(alias="statistics-path") file_size_in_bytes: int = Field(alias="file-size-in-bytes") + + +class StatisticsFile(StatisticsCommonFields): Review Comment: Actually not sure what's right here but could perhaps do the above for `StatisticsFile` and `PartitionStatisticsFile` for consistency? -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org