diff options
author | wangwei <wangwei82@huawei.com> | 2015-08-29 13:29:50 -0700 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2015-08-29 13:30:01 -0700 |
commit | 7c65078948c48ed6339452191fcf71b564ad0e8d (patch) | |
tree | 1fc709cc4d8de75ad4aa448e9316c36336037061 | |
parent | a49ad67a5458fc88e7faefa50fa88783d8fbe3c6 (diff) | |
download | spark-7c65078948c48ed6339452191fcf71b564ad0e8d.tar.gz spark-7c65078948c48ed6339452191fcf71b564ad0e8d.tar.bz2 spark-7c65078948c48ed6339452191fcf71b564ad0e8d.zip |
[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.
(cherry picked from commit 277148b285748e863f2b9fdf6cf12963977f91ca)
Signed-off-by: Michael Armbrust <michael@databricks.com>
-rw-r--r-- | sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala b/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala index 7799704c81..e58f8ca254 100644 --- a/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala +++ b/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala @@ -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)) |