danny0405 commented on a change in pull request #10523: 
[FLINK-15073][sql-client] SQL-CLI fails to run same query multiple times
URL: https://github.com/apache/flink/pull/10523#discussion_r356951663
 
 

 ##########
 File path: 
flink-table/flink-sql-client/src/test/java/org/apache/flink/table/client/gateway/local/LocalExecutorITCase.java
 ##########
 @@ -476,6 +520,43 @@ public void testStreamQueryExecutionTable() throws 
Exception {
                executeStreamQueryTable(replaceVars, query, expectedResults);
        }
 
+       @Test(timeout = 90_000L)
+       public void testStreamQueryExecutionTableMultipleTimes() throws 
Exception {
+               final URL url = 
getClass().getClassLoader().getResource("test-data.csv");
+               Objects.requireNonNull(url);
+
+               final Map<String, String> replaceVars = new HashMap<>();
+               replaceVars.put("$VAR_PLANNER", planner);
+               replaceVars.put("$VAR_SOURCE_PATH1", url.getPath());
+               replaceVars.put("$VAR_EXECUTION_TYPE", "streaming");
+               replaceVars.put("$VAR_RESULT_MODE", "table");
+               replaceVars.put("$VAR_UPDATE_MODE", "update-mode: append");
+               replaceVars.put("$VAR_MAX_ROWS", "100");
+
+               final String query = "SELECT scalarUDF(IntegerField1), 
StringField1 FROM TableNumber1";
 
 Review comment:
   I have add the tests that execute the query multiple times.

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to