[SPARK-10226] [SQL] Fix exclamation mark issue in SparkSQL

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.
This commit is contained in:
wangwei 2015-08-29 13:29:50 -07:00 committed by Michael Armbrust
parent 5c3d16a9b9
commit 277148b285

View file

@ -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))