Skip to content

Commit 86161a4

Browse files
committed
[SPARK-12477][HOTIFX] Fix test compilation in branch-1.5
This fixes a test compilation break in branch-1.5; the break was introduced by #10429. Author: Josh Rosen <[email protected]> Closes #10478 from JoshRosen/SPARK-12477-branch-1.5-compile-fix.
1 parent e7e0540 commit 86161a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/test/scala/org/apache/spark/sql/DataFrameComplexTypeSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class DataFrameComplexTypeSuite extends QueryTest with SharedSQLContext {
4545
}
4646

4747
test("SPARK-12477 accessing null element in array field") {
48-
val df = sparkContext.parallelize(Seq((Seq("val1", null, "val2"),
48+
val df = sqlContext.sparkContext.parallelize(Seq((Seq("val1", null, "val2"),
4949
Seq(Some(1), None, Some(2))))).toDF("s", "i")
5050
val nullStringRow = df.selectExpr("s[1]").collect()(0)
5151
assert(nullStringRow == org.apache.spark.sql.Row(null))

0 commit comments

Comments
 (0)