File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def validation_history(
2727 from_snapshot : Snapshot ,
2828 matching_operations : set [Operation ],
2929 manifest_content_filter : ManifestContent ,
30- ) -> tuple [list [ManifestFile ], list [ Snapshot ]]:
30+ ) -> tuple [list [ManifestFile ], set [ int ]]:
3131 """Return newly added manifests and snapshot IDs between the starting snapshot and parent snapshot.
3232
3333 Args:
@@ -41,10 +41,10 @@ def validation_history(
4141 ValidationException: If no matching snapshot is found or only one snapshot is found
4242
4343 Returns:
44- List of manifest files and set of snapshots matching conditions
44+ List of manifest files and set of snapshots ID's matching conditions
4545 """
4646 manifests_files : list [ManifestFile ] = []
47- snapshots : list [ Snapshot ] = []
47+ snapshots : set [ int ] = set ()
4848
4949 last_snapshot = None
5050 for snapshot in ancestors_between (to_snapshot , from_snapshot , table .metadata ):
@@ -56,7 +56,7 @@ def validation_history(
5656 continue
5757
5858 if snapshot not in snapshots :
59- snapshots .append (snapshot )
59+ snapshots .add (snapshot . snapshot_id )
6060 manifests_files .extend (
6161 [
6262 manifest
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def test_validation_history(table_v2_with_extensive_snapshots: Table) -> None:
3333 mock_manifests = {}
3434
3535 for i , snapshot in enumerate (table_v2_with_extensive_snapshots .snapshots ()):
36- mock_manifest = ManifestFile (
36+ mock_manifest = ManifestFile . from_args (
3737 manifest_path = f"foo/bar/{ i } " ,
3838 manifest_length = 1 ,
3939 partition_spec_id = 1 ,
You can’t perform that action at this time.
0 commit comments