Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
don't double set default session in hive
  • Loading branch information
jose-torres committed Mar 29, 2018
commit 851a5efa87a9f10843ec9d45437d6a5d94cc0816
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ private[hive] class TestHiveSparkSession(
loadTestTables)
}

SparkSession.setDefaultSession(this)
Copy link
Member

@gatorsmile gatorsmile Mar 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where did we set this for TestHive?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many Hive tests both call SparkSession.getOrCreate() and create a TestHiveSparkSession. To be clear, this isn't an optimization - the tests do not pass unless I remove this line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed offline, we will remove the TestHive* changes and replace with a TODO.


{ // set the metastore temporary configuration
val metastoreTempConf = HiveUtils.newTemporaryConfiguration(useInMemoryDerby = false) ++ Map(
ConfVars.METASTORE_INTEGER_JDO_PUSHDOWN.varname -> "true",
Expand Down