aboutsummaryrefslogtreecommitdiff
path: root/sql/hive/src/test/java
diff options
context:
space:
mode:
authorSandeep Singh <sandeep@techaddict.me>2016-05-10 11:17:47 -0700
committerAndrew Or <andrew@databricks.com>2016-05-10 11:17:47 -0700
commited0b4070fb50054b1ecf66ff6c32458a4967dfd3 (patch)
tree68b3ad1a3ca22f2e0b5966db517c9bc42da3d254 /sql/hive/src/test/java
parentbcfee153b1cacfe617e602f3b72c0877e0bdf1f7 (diff)
downloadspark-ed0b4070fb50054b1ecf66ff6c32458a4967dfd3.tar.gz
spark-ed0b4070fb50054b1ecf66ff6c32458a4967dfd3.tar.bz2
spark-ed0b4070fb50054b1ecf66ff6c32458a4967dfd3.zip
[SPARK-15037][SQL][MLLIB] Use SparkSession instead of SQLContext in Scala/Java TestSuites
## What changes were proposed in this pull request? Use SparkSession instead of SQLContext in Scala/Java TestSuites as this PR already very big working Python TestSuites in a diff PR. ## How was this patch tested? Existing tests Author: Sandeep Singh <sandeep@techaddict.me> Closes #12907 from techaddict/SPARK-15037.
Diffstat (limited to 'sql/hive/src/test/java')
-rw-r--r--sql/hive/src/test/java/org/apache/spark/sql/hive/test/TestHiveSingleton.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/hive/src/test/java/org/apache/spark/sql/hive/test/TestHiveSingleton.scala b/sql/hive/src/test/java/org/apache/spark/sql/hive/test/TestHiveSingleton.scala
index 154ada3daa..9bf84ab1fb 100644
--- a/sql/hive/src/test/java/org/apache/spark/sql/hive/test/TestHiveSingleton.scala
+++ b/sql/hive/src/test/java/org/apache/spark/sql/hive/test/TestHiveSingleton.scala
@@ -19,12 +19,12 @@ package org.apache.spark.sql.hive.test
import org.scalatest.BeforeAndAfterAll
+import org.apache.spark.sql.SparkSession
import org.apache.spark.SparkFunSuite
-import org.apache.spark.sql.SQLContext
trait TestHiveSingleton extends SparkFunSuite with BeforeAndAfterAll {
- protected val sqlContext: SQLContext = TestHive
+ protected val spark: SparkSession = TestHive.sparkSession
protected val hiveContext: TestHiveContext = TestHive
protected override def afterAll(): Unit = {