Skip to content

Commit

Permalink
[SPARK-SQL] [MINOR] Fixes some typos in HiveContext
Browse files Browse the repository at this point in the history
Author: Cheng Lian <lian@databricks.com>

Closes #8481 from liancheng/hive-context-typo.

(cherry picked from commit 89b9434)
Signed-off-by: Reynold Xin <rxin@databricks.com>
  • Loading branch information
liancheng authored and rxin committed Aug 28, 2015
1 parent ede8c62 commit c77cf86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit c77cf86

Please sign in to comment.