Skip to content

Commit

Permalink
[SPARK-22672][SQL][TEST][FOLLOWUP] Fix to use spark.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
dongjoon-hyun committed Dec 9, 2017
1 parent 26e6645 commit b4b1122
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ abstract class OrcTest extends QueryTest with SQLTestUtils with BeforeAndAfterAl

protected override def beforeAll(): Unit = {
super.beforeAll()
originalConfORCImplementation = conf.getConf(ORC_IMPLEMENTATION)
conf.setConf(ORC_IMPLEMENTATION, orcImp)
originalConfORCImplementation = spark.conf.get(ORC_IMPLEMENTATION)
spark.conf.set(ORC_IMPLEMENTATION.key, orcImp)
}

protected override def afterAll(): Unit = {
conf.setConf(ORC_IMPLEMENTATION, originalConfORCImplementation)
spark.conf.set(ORC_IMPLEMENTATION.key, originalConfORCImplementation)
super.afterAll()
}

Expand Down

0 comments on commit b4b1122

Please sign in to comment.