diff options
author | Reynold Xin <rxin@databricks.com> | 2015-03-21 14:30:04 -0700 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2015-03-21 14:30:04 -0700 |
commit | b6090f902e6ec24923b4dde4aabc9076956521c1 (patch) | |
tree | ed273ad9bbfdfba2d78a01d6f4015320387a33b6 /sql/hive-thriftserver/src | |
parent | 94a102acb80a7c77f57409ece1f8dbbba791b774 (diff) | |
download | spark-b6090f902e6ec24923b4dde4aabc9076956521c1.tar.gz spark-b6090f902e6ec24923b4dde4aabc9076956521c1.tar.bz2 spark-b6090f902e6ec24923b4dde4aabc9076956521c1.zip |
[SPARK-6428][SQL] Added explicit type for all public methods for Hive module
Author: Reynold Xin <rxin@databricks.com>
Closes #5108 from rxin/hive-public-type and squashes the following commits:
a320328 [Reynold Xin] [SPARK-6428][SQL] Added explicit type for all public methods for Hive module.
Diffstat (limited to 'sql/hive-thriftserver/src')
-rw-r--r-- | sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala | 4 |
1 files changed, 2 insertions, 2 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 895688ab2e..6272cdedb3 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 @@ -194,8 +194,8 @@ private[hive] object SparkSQLCLIDriver { val currentDB = ReflectionUtils.invokeStatic(classOf[CliDriver], "getFormattedDb", classOf[HiveConf] -> conf, classOf[CliSessionState] -> sessionState) - def promptWithCurrentDB = s"$prompt$currentDB" - def continuedPromptWithDBSpaces = continuedPrompt + ReflectionUtils.invokeStatic( + def promptWithCurrentDB: String = s"$prompt$currentDB" + def continuedPromptWithDBSpaces: String = continuedPrompt + ReflectionUtils.invokeStatic( classOf[CliDriver], "spacesForString", classOf[String] -> currentDB) var currentPrompt = promptWithCurrentDB |