You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2017/04/15 09:35:01 UTC

spark git commit: [SPARK-20316][SQL] Val and Var should strictly follow the Scala syntax

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...@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...@zte.com.cn>
Authored: Sat Apr 15 10:34:57 2017 +0100
Committer: Sean Owen <so...@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