Skip to content

Commit 6ef1aa2

Browse files
committed
default to Operation.OVERWRITE in validation_history if summary is determined to be None
1 parent d57133e commit 6ef1aa2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pyiceberg/table/update/validate.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ def validation_history(
5050
for snapshot in ancestors_between(from_snapshot, to_snapshot, table.metadata):
5151
last_snapshot = snapshot
5252
summary = snapshot.summary
53-
if summary is None or summary.operation not in matching_operations:
53+
if summary is None:
54+
operation = Operation.OVERWRITE
55+
else:
56+
operation = summary.operation
57+
if operation not in matching_operations:
5458
continue
5559

5660
snapshots.add(snapshot)

0 commit comments

Comments
 (0)