diff --git a/pyiceberg/table/snapshots.py b/pyiceberg/table/snapshots.py index 19e0084d6c..a2f15d4405 100644 --- a/pyiceberg/table/snapshots.py +++ b/pyiceberg/table/snapshots.py @@ -279,7 +279,7 @@ def _truncate_table_summary(summary: Summary, previous_summary: Mapping[str, str summary[prop] = '0' def get_prop(prop: str) -> int: - value = previous_summary.get(prop, '0') + value = previous_summary.get(prop) or '0' try: return int(value) except ValueError as e: