Skip to content

Commit

Permalink
add time travel
Browse files Browse the repository at this point in the history
  • Loading branch information
JingsongLi committed Nov 5, 2024
1 parent 3794d95 commit 4ce761e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,9 @@ public void testObjectTableRefresh() throws IOException {
fileIO.deleteQuietly(new Path(objectLocation, "f0"));
sql("CALL sys.refresh_object_table('default.T')");
assertThat(sql("SELECT name, length FROM T")).containsExactlyInAnyOrder(Row.of("f1", 5L));

// time travel
assertThat(sql("SELECT name, length FROM T /*+ OPTIONS('scan.snapshot-id' = '1') */"))
.containsExactlyInAnyOrder(Row.of("f0", 5L));
}
}

0 comments on commit 4ce761e

Please sign in to comment.