diff options
author | Dongjoon Hyun <dongjoon@apache.org> | 2016-05-10 11:53:41 -0700 |
---|---|---|
committer | Andrew Or <andrew@databricks.com> | 2016-05-10 11:53:44 -0700 |
commit | db3b4a20150ff7fb1caaf62ab3d2a2f1e632af36 (patch) | |
tree | 377cb85ed5a4586698fed3aa22acd4b834261774 /sql/hive | |
parent | cddb9da074b3dfeef34b7fdb8d9a8b16513a819d (diff) | |
download | spark-db3b4a20150ff7fb1caaf62ab3d2a2f1e632af36.tar.gz spark-db3b4a20150ff7fb1caaf62ab3d2a2f1e632af36.tar.bz2 spark-db3b4a20150ff7fb1caaf62ab3d2a2f1e632af36.zip |
[SPARK-15037][HOTFIX] Replace `sqlContext` and `sparkSession` with `spark`.
This replaces `sparkSession` with `spark` in CatalogSuite.scala.
Pass the Jenkins tests.
Author: Dongjoon Hyun <dongjoon@apache.org>
Closes #13030 from dongjoon-hyun/hotfix_sparkSession.
Diffstat (limited to 'sql/hive')
-rw-r--r-- | sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveDDLSuite.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveDDLSuite.scala b/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveDDLSuite.scala index 6dcc404636..8b60802b91 100644 --- a/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveDDLSuite.scala +++ b/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveDDLSuite.scala @@ -536,7 +536,7 @@ class HiveDDLSuite withTable("t1") { withTempPath { dir => val path = dir.getCanonicalPath - sqlContext.range(1).write.parquet(path) + spark.range(1).write.parquet(path) sql(s"CREATE TABLE t1 USING parquet OPTIONS (PATH '$path')") val desc = sql("DESC FORMATTED t1").collect().toSeq @@ -548,7 +548,7 @@ class HiveDDLSuite test("desc table for data source table - partitioned bucketed table") { withTable("t1") { - sqlContext + spark .range(1).select('id as 'a, 'id as 'b, 'id as 'c, 'id as 'd).write .bucketBy(2, "b").sortBy("c").partitionBy("d") .saveAsTable("t1") |