Skip to content

Commit a6624d9

Browse files
committed
validation_history and from_ancestor argument alignment
1 parent fce608f commit a6624d9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pyiceberg/table/update/validate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@
2323

2424
def validation_history(
2525
table: Table,
26-
from_snapshot: Snapshot,
2726
to_snapshot: Snapshot,
27+
from_snapshot: Snapshot,
2828
matching_operations: set[Operation],
2929
manifest_content_filter: ManifestContent,
3030
) -> tuple[list[ManifestFile], list[Snapshot]]:
3131
"""Return newly added manifests and snapshot IDs between the starting snapshot and parent snapshot.
3232
3333
Args:
3434
table: Table to get the history from
35-
from_snapshot: Parent snapshot to get the history from
3635
to_snapshot: Starting snapshot
36+
from_snapshot: Parent snapshot to get the history from
3737
matching_operations: Operations to match on
3838
manifest_content_filter: Manifest content type to filter
3939
@@ -47,7 +47,7 @@ def validation_history(
4747
snapshots: list[Snapshot] = []
4848

4949
last_snapshot = None
50-
for snapshot in ancestors_between(from_snapshot, to_snapshot, table.metadata):
50+
for snapshot in ancestors_between(to_snapshot, from_snapshot, table.metadata):
5151
last_snapshot = snapshot
5252
summary = snapshot.summary
5353
if summary is None:

0 commit comments

Comments
 (0)