Skip to content

Commit

Permalink
more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
marmbrus committed May 6, 2015
1 parent a3bee70 commit 1c50813
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ private[hive] object SparkSQLCLIDriver {
case e: UnsupportedEncodingException => System.exit(3)
}

// TODO: SET commands seem to be using the wrong session?
sessionState.getConf.set("spark.sql.hive.version", HiveShim.version)

if (sessionState.database != null) {
SparkSQLEnv.hiveContext.runSqlHive(s"USE ${sessionState.database}")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ class ClientWrapper(
/** Returns the configuration for the current session. */
def conf: HiveConf = SessionState.get().getConf

// TODO: should be a def?s
private val client = Hive.get(conf)

/**
Expand Down

0 comments on commit 1c50813

Please sign in to comment.