fsk119 commented on a change in pull request #15366:
URL: https://github.com/apache/flink/pull/15366#discussion_r602851198



##########
File path: 
flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliClient.java
##########
@@ -220,6 +229,9 @@ public void open() {
                 line = lineReader.readLine(prompt, null, inputTransformer, 
null);
             } catch (UserInterruptException e) {
                 // user cancelled line with Ctrl+C
+                if (!isInteractive) {

Review comment:
       Add test `CliClientTest#testCancelExecutionInNonInteractiveMode` and 
`CliClientTest#testCancelExecutionInInteractiveMode`




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


Reply via email to