We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0063ecb commit 7f87949Copy full SHA for 7f87949
tests/table/test_init.py
@@ -204,6 +204,18 @@ def test_snapshot_by_id(table_v2: Table) -> None:
204
)
205
206
207
+def test_snapshot_by_timestamp(table_v2: Table) -> None:
208
+ assert table_v2.snapshot_by_timestamp(1555100955771) == Snapshot(
209
+ snapshot_id=3055729675574597004,
210
+ parent_snapshot_id=3051729675574597004,
211
+ sequence_number=1,
212
+ timestamp_ms=1555100955770,
213
+ manifest_list="s3://a/b/2.avro",
214
+ summary=Summary(operation=Operation.APPEND),
215
+ schema_id=1,
216
+ )
217
+
218
219
def test_snapshot_by_id_does_not_exist(table_v2: Table) -> None:
220
assert table_v2.snapshot_by_id(-1) is None
221
0 commit comments