Skip to content

Commit

Permalink
Update test.
Browse files Browse the repository at this point in the history
  • Loading branch information
yhuai committed Aug 7, 2014
1 parent cb11759 commit 86e833e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,12 @@ class JsonSuite extends QueryTest {

// Access elements of an array of structs.
checkAnswer(
sql("select arrayOfStruct[0], arrayOfStruct[1], arrayOfStruct[2] from jsonTable"),
sql("select arrayOfStruct[0], arrayOfStruct[1], arrayOfStruct[2], arrayOfStruct[3] " +
"from jsonTable"),
(true :: "str1" :: null :: Nil,
false :: null :: null :: Nil,
null :: null :: null :: Nil) :: Nil
null :: null :: null :: Nil,
null) :: Nil
)

// Access a struct and fields inside of it.
Expand Down

0 comments on commit 86e833e

Please sign in to comment.