wuchong commented on a change in pull request #16793:
URL: https://github.com/apache/flink/pull/16793#discussion_r688359209
##########
File path:
flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/delegation/DefaultExecutorTest.java
##########
@@ -105,6 +72,35 @@ public void testJobName() {
"Custom Name");
}
+ @Test
+ public void testDefaultBatchProperties() {
+ final StreamExecutionEnvironment env =
StreamExecutionEnvironment.getExecutionEnvironment();
+ final Executor executor = new DefaultExecutor(env);
+
+ final List<Transformation<?>> dummyTransformations =
+ Collections.singletonList(
+ env.fromElements(1, 2, 3)
+ .addSink(new DiscardingSink<>())
+ .getTransformation());
+
+ final Configuration configuration = new Configuration();
+ configuration.set(ExecutionOptions.RUNTIME_MODE,
RuntimeExecutionMode.BATCH);
+
+ final StreamGraph streamGraph =
+ (StreamGraph)
+ executor.createPipeline(
+ dummyTransformations, configuration, "Default
Name");
+
+ assertTrue(streamGraph.getExecutionConfig().isObjectReuseEnabled());
+ assertEquals(0,
streamGraph.getExecutionConfig().getLatencyTrackingInterval());
+ assertTrue(streamGraph.isChainingEnabled());
+
assertFalse(streamGraph.isAllVerticesInSameSlotSharingGroupByDefault());
+
assertFalse(streamGraph.getCheckpointConfig().isCheckpointingEnabled());
Review comment:
Should we assert watermark interval and buffer timeout also have been
disabled too?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]