use of io.prestosql.spi.plan.ValuesNode in project hetu-core by openlookeng.
the class TestDistributedExecutionPlanner method testValuesSnapshot.
@Test
public void testValuesSnapshot() {
ValuesNode a = values("A");
ValuesNode b = values("B");
assertNull(a.getResumeSnapshotId());
assertEquals(a.getNextSnapshotId(), 0);
SubPlan root = makePlan(1, join(a, b), ImmutableList.of());
planner.plan(root, session, SNAPSHOT, null, 7);
assertNull(a.getResumeSnapshotId());
assertEquals(a.getNextSnapshotId(), 7);
assertNull(b.getResumeSnapshotId());
assertEquals(b.getNextSnapshotId(), 7);
}
Aggregations