From e395a8f99f26eb9e8fd11edb308ce0cf90646b0e Mon Sep 17 00:00:00 2001 From: Fokko Driesprong Date: Sat, 13 Jan 2024 00:16:11 +0100 Subject: [PATCH] Update pyiceberg/table/snapshots.py Co-authored-by: Sung Yun <107272191+syun64@users.noreply.github.com> --- pyiceberg/table/snapshots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: