aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheng Lian <lian@databricks.com>2015-08-27 22:30:01 -0700
committerReynold Xin <rxin@databricks.com>2015-08-27 22:30:09 -0700
commitc77cf867258caede0639445798e2cd3288e246a7 (patch)
treebf51a30e0bcbd02a1374a5667d2a74472557bdb1
parentede8c625cd6631d54961c3b39996e3c60bc08be4 (diff)
downloadspark-c77cf867258caede0639445798e2cd3288e246a7.tar.gz
spark-c77cf867258caede0639445798e2cd3288e246a7.tar.bz2
spark-c77cf867258caede0639445798e2cd3288e246a7.zip
[SPARK-SQL] [MINOR] Fixes some typos in HiveContext
Author: Cheng Lian <lian@databricks.com> Closes #8481 from liancheng/hive-context-typo. (cherry picked from commit 89b943438512fcfb239c268b43431397de46cbcf) Signed-off-by: Reynold Xin <rxin@databricks.com>
-rw-r--r--sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala8
-rw-r--r--sql/hive/src/main/scala/org/apache/spark/sql/hive/test/TestHive.scala2
2 files changed, 5 insertions, 5 deletions
diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala
index 17cc83087f..f165bfd4e3 100644
--- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala
+++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala
@@ -171,11 +171,11 @@ class HiveContext(sc: SparkContext) extends SQLContext(sc) with Logging {
* Overrides default Hive configurations to avoid breaking changes to Spark SQL users.
* - allow SQL11 keywords to be used as identifiers
*/
- private[sql] def defaultOverides() = {
+ private[sql] def defaultOverrides() = {
setConf(ConfVars.HIVE_SUPPORT_SQL11_RESERVED_KEYWORDS.varname, "false")
}
- defaultOverides()
+ defaultOverrides()
/**
* The copy of the Hive client that is used to retrieve metadata from the Hive MetaStore.
@@ -190,8 +190,8 @@ class HiveContext(sc: SparkContext) extends SQLContext(sc) with Logging {
// into the isolated client loader
val metadataConf = new HiveConf()
- val defaltWarehouseLocation = metadataConf.get("hive.metastore.warehouse.dir")
- logInfo("defalt warehouse location is " + defaltWarehouseLocation)
+ val defaultWarehouseLocation = metadataConf.get("hive.metastore.warehouse.dir")
+ logInfo("default warehouse location is " + defaultWarehouseLocation)
// `configure` goes second to override other settings.
val allConfig = metadataConf.iterator.map(e => e.getKey -> e.getValue).toMap ++ configure
diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/test/TestHive.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/test/TestHive.scala
index 4da86636ac..ac9db6bf26 100644
--- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/test/TestHive.scala
+++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/test/TestHive.scala
@@ -437,7 +437,7 @@ class TestHiveContext(sc: SparkContext) extends HiveContext(sc) {
case (k, v) =>
metadataHive.runSqlHive(s"SET $k=$v")
}
- defaultOverides()
+ defaultOverrides()
runSqlHive("USE default")