Skip to content

Commit

Permalink
fix bug in sql/hive
Browse files Browse the repository at this point in the history
  • Loading branch information
jackylk committed Jan 3, 2015
1 parent 9bf4cc7 commit 73c16b1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ class LocalHiveContext(sc: SparkContext) extends HiveContext(sc) {
class HiveContext(sc: SparkContext) extends SQLContext(sc) {
self =>

/* By default it should be case insensitive to match Hive */
setConf(CatalystConf.CASE_SENSITIVE, "false")

// Change the default SQL dialect to HiveQL
override private[spark] def dialect: String = getConf(SQLConf.DIALECT, "hiveql")

Expand Down Expand Up @@ -249,9 +252,6 @@ class HiveContext(sc: SparkContext) extends SQLContext(sc) {
runSqlHive(s"SET $key=$value")
}

/* By default it should be case insensitive to match Hive */
this.setConf(CatalystConf.CASE_SENSITIVE, "false")

/* A catalyst metadata catalog that points to the Hive Metastore. */
@transient
override protected[sql] lazy val catalog =
Expand Down

0 comments on commit 73c16b1

Please sign in to comment.