You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by "thomasg19930417 (via GitHub)" <gi...@apache.org> on 2023/03/15 05:03:09 UTC

[GitHub] [kyuubi] thomasg19930417 commented on a diff in pull request #4510: [KYUUBI #4508] Fix Beeline with -i run sql faild

thomasg19930417 commented on code in PR #4510:
URL: https://github.com/apache/kyuubi/pull/4510#discussion_r1136536443


##########
kyuubi-hive-beeline/src/main/java/org/apache/hive/beeline/KyuubiCommands.java:
##########
@@ -521,6 +522,13 @@ public String handleMultiLineCmd(String line) throws IOException {
             "Console reader not initialized. This could happen when there "
                 + "is a multi-line command using -e option and which requires further reading from console");
       }
+
+      if (beeLine.getOpts().getInitFiles() != null) {
+        beeLine.getConsoleReader().shutdown();
+        beeLine.setConsoleReader(

Review Comment:
   Thanks for the review, I have modified the code



-- 
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: notifications-unsubscribe@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org