use of org.apache.flink.table.planner.utils.JavaBatchTableTestUtil in project flink by apache.
the class TransformationsTest method testLegacyBatchValues.
@Test
public void testLegacyBatchValues() {
final JavaBatchTableTestUtil util = javaBatchTestUtil();
final StreamTableEnvironment env = util.tableEnv();
final Table table = env.fromValues(1, 2, 3);
final LegacySourceTransformation<?> sourceTransform = toLegacySourceTransformation(env, table);
assertBoundedness(Boundedness.BOUNDED, sourceTransform);
}
use of org.apache.flink.table.planner.utils.JavaBatchTableTestUtil in project flink by apache.
the class TransformationsTest method testLegacyBatchSource.
@Test
public void testLegacyBatchSource() {
final JavaBatchTableTestUtil util = javaBatchTestUtil();
final StreamTableEnvironment env = util.tableEnv();
final Table table = env.from(TableDescriptor.forConnector("values").option("bounded", "true").schema(dummySchema()).build());
final LegacySourceTransformation<?> sourceTransform = toLegacySourceTransformation(env, table);
assertBoundedness(Boundedness.BOUNDED, sourceTransform);
assertFalse(sourceTransform.getOperator().emitsProgressiveWatermarks());
}
Aggregations