rahulsmahadev commented on code in PR #4477:
URL: https://github.com/apache/iceberg-python/pull/4477#discussion_r4688510678
##########
tests/table/test_inspect.py:
##########
@@ -104,6 +104,32 @@ def
test_inspect_entries_and_files_with_data_file_without_metrics(catalog: InMem
assert files[0]["column_sizes"] is None
+def test_inspect_snapshots_operation_is_null_without_summary(catalog:
InMemoryCatalog) -> None:
Review Comment:
Thanks, much simpler. Switched to your version and kept one line from the
old test that checks `append` before the summary is removed. It still fails on
main with `['None'] == [None]`.
##########
pyiceberg/table/inspect.py:
##########
@@ -138,7 +138,7 @@ def snapshots(self) -> pa.Table:
"committed_at":
datetime.fromtimestamp(snapshot.timestamp_ms / 1000.0, tz=UTC),
"snapshot_id": snapshot.snapshot_id,
"parent_id": snapshot.parent_snapshot_id,
- "operation": str(operation),
+ "operation": operation,
Review Comment:
Thanks for checking against Java.
--
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]