Skip to content

Commit

Permalink
Replace create new consoleReader instance with call initializeConsole…
Browse files Browse the repository at this point in the history
…Reader
  • Loading branch information
thomasg19930417 committed Mar 15, 2023
1 parent 86f2e50 commit e06927b
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import java.io.*;
import java.sql.*;
import java.util.*;
import jline.console.ConsoleReader;
import org.apache.hive.beeline.logs.KyuubiBeelineInPlaceUpdateStream;
import org.apache.kyuubi.jdbc.hive.KyuubiStatement;
import org.apache.kyuubi.jdbc.hive.Utils;
Expand Down Expand Up @@ -524,9 +523,7 @@ public String handleMultiLineCmd(String line) throws IOException {
}

if (beeLine.getOpts().getInitFiles() != null) {
beeLine.getConsoleReader().shutdown();
beeLine.setConsoleReader(
new ConsoleReader(beeLine.getInputStream(), beeLine.getErrorStream()));
beeLine.initializeConsoleReader(null);
}

if (beeLine.getOpts().isSilent() && beeLine.getOpts().getScriptFile() != null) {
Expand Down

0 comments on commit e06927b

Please sign in to comment.