File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed
Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -216,10 +216,26 @@ def test_snapshot_by_timestamp(table_v2: Table) -> None:
216216 )
217217
218218
219- def test_ancestors_of (table_v2 : Table ) -> None :
220- assert table_v2 .metadata .ancestors_of (3055729675574597004 ) == [
221- (3055729675574597004 , 1555100955770 ),
222- (3051729675574597004 , 1515100955770 ),
219+ def test_current_ancestors (table_v2 : Table ) -> None :
220+ assert table_v2 .current_ancestors () == [
221+ Snapshot (
222+ snapshot_id = 3055729675574597004 ,
223+ parent_snapshot_id = 3051729675574597004 ,
224+ sequence_number = 1 ,
225+ timestamp_ms = 1555100955770 ,
226+ manifest_list = 's3://a/b/2.avro' ,
227+ summary = Summary (Operation .APPEND ),
228+ schema_id = 1 ,
229+ ),
230+ Snapshot (
231+ snapshot_id = 3051729675574597004 ,
232+ parent_snapshot_id = None ,
233+ sequence_number = 0 ,
234+ timestamp_ms = 1515100955770 ,
235+ manifest_list = 's3://a/b/1.avro' ,
236+ summary = Summary (Operation .APPEND ),
237+ schema_id = None ,
238+ ),
223239 ]
224240
225241
You can’t perform that action at this time.
0 commit comments