fsk119 commented on a change in pull request #13932:
URL: https://github.com/apache/flink/pull/13932#discussion_r539957215
##########
File path:
flink-table/flink-table-planner-blink/src/test/java/org/apache/flink/table/planner/runtime/stream/table/PrintConnectorITCase.java
##########
@@ -77,6 +77,31 @@ public void testStandardError() throws Exception {
test(true);
}
+ @Test
+ public void testWithParallelism() throws Exception {
+ tEnv().executeSql("create table print_t (" +
+ "f0 int," +
+ "f1 double" +
+ ") with (" +
+ "'connector' = 'print'," +
+ "'print-identifier' = 'test_print'," +
+ "'sink.parallelism' = '2'," +
+ "'standard-error'='false')");
+ DataType type =
tEnv().from("print_t").getSchema().toRowDataType();
+ Row row = Row.of(1, 1.1);
+ tEnv().fromValues(type,
Arrays.asList(row)).executeInsert("print_t").await();
Review comment:
`Arrays.asList` -> `Collections.singletonList`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]