Skip to content

Commit

Permalink
[SPARK-10226] [SQL] Fix exclamation mark issue in SparkSQL
Browse files Browse the repository at this point in the history
When I tested the latest version of spark with exclamation mark, I got some errors. Then I reseted the spark version and found that commit id "a2409d1c8e8ddec04b529ac6f6a12b5993f0eeda" brought the bug. With jline version changing from 0.9.94 to 2.12 after this commit, exclamation mark would be treated as a special character in ConsoleReader.

Author: wangwei <wangwei82@huawei.com>

Closes #8420 from small-wang/jline-SPARK-10226.

(cherry picked from commit 277148b)
Signed-off-by: Michael Armbrust <michael@databricks.com>
  • Loading branch information
small-wang authored and marmbrus committed Aug 29, 2015
1 parent a49ad67 commit 7c65078
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ private[hive] object SparkSQLCLIDriver extends Logging {

val reader = new ConsoleReader()
reader.setBellEnabled(false)
reader.setExpandEvents(false)
// reader.setDebug(new PrintWriter(new FileWriter("writer.debug", true)))
CliDriver.getCommandCompleter.foreach((e) => reader.addCompleter(e))

Expand Down

0 comments on commit 7c65078

Please sign in to comment.