spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marmb...@apache.org
Subject spark git commit: [SPARK-10226] [SQL] Fix exclamation mark issue in SparkSQL
Date Sat, 29 Aug 2015 20:29:55 GMT
Repository: spark
Updated Branches:
  refs/heads/master 5c3d16a9b -> 277148b28


[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.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/277148b2
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/277148b2
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/277148b2

Branch: refs/heads/master
Commit: 277148b285748e863f2b9fdf6cf12963977f91ca
Parents: 5c3d16a
Author: wangwei <wangwei82@huawei.com>
Authored: Sat Aug 29 13:29:50 2015 -0700
Committer: Michael Armbrust <michael@databricks.com>
Committed: Sat Aug 29 13:29:50 2015 -0700

----------------------------------------------------------------------
 .../org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/277148b2/sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala
----------------------------------------------------------------------
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 a29df56..b507396 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))
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message