spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject spark git commit: [SPARK-20316][SQL] Val and Var should strictly follow the Scala syntax
Date Sat, 15 Apr 2017 09:35:01 GMT
Repository: spark
Updated Branches:
  refs/heads/master fb036c441 -> 98b41ecbc


[SPARK-20316][SQL] Val and Var should strictly follow the Scala syntax

## What changes were proposed in this pull request?

val and var should strictly follow the Scala syntax

## How was this patch tested?

manual test and exisiting test cases

Author: ouyangxiaochen <ou.yangxiaochen@zte.com.cn>

Closes #17628 from ouyangxiaochen/spark-413.


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

Branch: refs/heads/master
Commit: 98b41ecbcbcddacdc2801c38fccc9823e710783b
Parents: fb036c4
Author: ouyangxiaochen <ou.yangxiaochen@zte.com.cn>
Authored: Sat Apr 15 10:34:57 2017 +0100
Committer: Sean Owen <sowen@cloudera.com>
Committed: Sat Apr 15 10:34:57 2017 +0100

----------------------------------------------------------------------
 .../apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/98b41ecb/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 d5cc3b3..33e18a8 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
@@ -47,8 +47,8 @@ import org.apache.spark.util.ShutdownHookManager
  * has dropped its support.
  */
 private[hive] object SparkSQLCLIDriver extends Logging {
-  private var prompt = "spark-sql"
-  private var continuedPrompt = "".padTo(prompt.length, ' ')
+  private val prompt = "spark-sql"
+  private val continuedPrompt = "".padTo(prompt.length, ' ')
   private var transport: TSocket = _
 
   installSignalHandler()


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


Mime
View raw message