You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by ch...@apache.org on 2023/03/20 09:13:39 UTC

[kyuubi] branch master updated: [KYUUBI #4508][BEELINE] Beeline should reset stdin after consuming init SQL file

This is an automated email from the ASF dual-hosted git repository.

chengpan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kyuubi.git


The following commit(s) were added to refs/heads/master by this push:
     new 465e23a0f [KYUUBI #4508][BEELINE] Beeline should reset stdin after consuming init SQL file
465e23a0f is described below

commit 465e23a0f67088f0f24467cc531abcce27896403
Author: xu.guo <xu...@brgroup.com>
AuthorDate: Mon Mar 20 17:13:28 2023 +0800

    [KYUUBI #4508][BEELINE] Beeline should reset stdin after consuming init SQL file
    
    ### _Why are the changes needed?_
    
    To fix #4508 .
    
    ### _How was this patch tested?_
    - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible
    
    - [ ] Add screenshots for manual tests if appropriate
    
    - [ ] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request
    
    Closes #4510 from thomasg19930417/master.
    
    Closes #4508
    
    f8405eb93 [Cheng Pan] Update kyuubi-hive-beeline/src/main/java/org/apache/hive/beeline/KyuubiCommands.java
    3ad46c1d6 [Cheng Pan] Update kyuubi-hive-beeline/src/main/java/org/apache/hive/beeline/KyuubiCommands.java
    31fa80771 [xu.guo] Merge branch 'master' of https://github.com/thomasg19930417/kyuubi
    41e090d66 [thomasgx] Merge branch 'apache:master' into master
    ba82229a8 [xu.guo] Move initializeConsoleReader to KyuubiCommands#connect
    e06927b78 [xu.guo] Replace create new  consoleReader instance with  call initializeConsoleReader
    86f2e5078 [xu.guo] Fix code style
    b0c472229 [xu.guo] Fix Beeline with -i run sql faild
    042987aa6 [xu.guo] Fix Beeline with -i run sql faild
    
    Lead-authored-by: xu.guo <xu...@brgroup.com>
    Co-authored-by: Cheng Pan <pa...@gmail.com>
    Co-authored-by: thomasgx <57...@qq.com>
    Signed-off-by: Cheng Pan <ch...@apache.org>
---
 .../src/main/java/org/apache/hive/beeline/KyuubiCommands.java          | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/kyuubi-hive-beeline/src/main/java/org/apache/hive/beeline/KyuubiCommands.java b/kyuubi-hive-beeline/src/main/java/org/apache/hive/beeline/KyuubiCommands.java
index aaa32739a..bf368ce0d 100644
--- a/kyuubi-hive-beeline/src/main/java/org/apache/hive/beeline/KyuubiCommands.java
+++ b/kyuubi-hive-beeline/src/main/java/org/apache/hive/beeline/KyuubiCommands.java
@@ -485,6 +485,9 @@ public class KyuubiCommands extends Commands {
         beeLine.updateOptsForCli();
       }
       beeLine.runInit();
+      if (beeLine.getOpts().getInitFiles() != null) {
+        beeLine.initializeConsoleReader(null);
+      }
 
       beeLine.setCompletions();
       beeLine.getOpts().setLastConnectedUrl(url);