aboutsummaryrefslogtreecommitdiff
path: root/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/CompactibleFileStreamLogSuite.scala
diff options
context:
space:
mode:
authorHerman van Hovell <hvanhovell@databricks.com>2017-04-20 22:37:04 +0200
committerHerman van Hovell <hvanhovell@databricks.com>2017-04-20 22:37:04 +0200
commit033206355339677812a250b2b64818a261871fd2 (patch)
treed000d6c55f08f9454e87e13cea74c187593fdd20 /sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/CompactibleFileStreamLogSuite.scala
parentd95e4d9d6a9705c534549add6d4a73d554e47274 (diff)
downloadspark-033206355339677812a250b2b64818a261871fd2.tar.gz
spark-033206355339677812a250b2b64818a261871fd2.tar.bz2
spark-033206355339677812a250b2b64818a261871fd2.zip
[SPARK-20410][SQL] Make sparkConf a def in SharedSQLContext
## What changes were proposed in this pull request? It is kind of annoying that `SharedSQLContext.sparkConf` is a val when overriding test cases, because you cannot call `super` on it. This PR makes it a function. ## How was this patch tested? Existing tests. Author: Herman van Hovell <hvanhovell@databricks.com> Closes #17705 from hvanhovell/SPARK-20410.
Diffstat (limited to 'sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/CompactibleFileStreamLogSuite.scala')
-rw-r--r--sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/CompactibleFileStreamLogSuite.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/CompactibleFileStreamLogSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/CompactibleFileStreamLogSuite.scala
index 20ac06f048..3d480b148d 100644
--- a/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/CompactibleFileStreamLogSuite.scala
+++ b/sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/CompactibleFileStreamLogSuite.scala
@@ -28,8 +28,8 @@ import org.apache.spark.sql.test.SharedSQLContext
class CompactibleFileStreamLogSuite extends SparkFunSuite with SharedSQLContext {
/** To avoid caching of FS objects */
- override protected val sparkConf =
- new SparkConf().set(s"spark.hadoop.fs.$scheme.impl.disable.cache", "true")
+ override protected def sparkConf =
+ super.sparkConf.set(s"spark.hadoop.fs.$scheme.impl.disable.cache", "true")
import CompactibleFileStreamLog._