Skip to content

Commit 86e833e

Browse files
committed
Update test.
1 parent cb11759 commit 86e833e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sql/core/src/test/scala/org/apache/spark/sql/json/JsonSuite.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,12 @@ class JsonSuite extends QueryTest {
264264

265265
// Access elements of an array of structs.
266266
checkAnswer(
267-
sql("select arrayOfStruct[0], arrayOfStruct[1], arrayOfStruct[2] from jsonTable"),
267+
sql("select arrayOfStruct[0], arrayOfStruct[1], arrayOfStruct[2], arrayOfStruct[3] " +
268+
"from jsonTable"),
268269
(true :: "str1" :: null :: Nil,
269270
false :: null :: null :: Nil,
270-
null :: null :: null :: Nil) :: Nil
271+
null :: null :: null :: Nil,
272+
null) :: Nil
271273
)
272274

273275
// Access a struct and fields inside of it.

0 commit comments

Comments
 (0)