We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92bb4fb commit 29b8a51Copy full SHA for 29b8a51
sql/hive/src/test/scala/org/apache/spark/sql/hive/api/java/JavaHiveQLSuite.scala
@@ -31,10 +31,10 @@ import org.apache.spark.sql.test.TestSQLContext
31
import scala.collection.JavaConversions._
32
33
class JavaHiveQLSuite extends FunSuite {
34
- val javaCtx = new JavaSparkContext(TestSQLContext.sparkContext)
+ lazy val javaCtx = new JavaSparkContext(TestSQLContext.sparkContext)
35
36
// There is a little trickery here to avoid instantiating two HiveContexts in the same JVM
37
- val javaHiveCtx = new JavaHiveContext(javaCtx) {
+ lazy val javaHiveCtx = new JavaHiveContext(javaCtx) {
38
override val sqlContext = TestHive
39
}
40
0 commit comments