Skip to content

Commit

Permalink
Fixed test.
Browse files Browse the repository at this point in the history
  • Loading branch information
rxin committed Jan 18, 2015
1 parent 10cb496 commit 27b08c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ class JsonSuite extends QueryTest {
("true", 11L, null, 1.1, "13.1", "str1") ::
("12", null, new java.math.BigDecimal("21474836470.9"), null, null, "true") ::
("false", 21474836470L, new java.math.BigDecimal("92233720368547758070"), 100, "str1", "false") ::
(null, 21474836570L, new java.math.BigDecimal(1.2), 21474836470L, "92233720368547758070", null) :: Nil
(null, 21474836570L, new java.math.BigDecimal("1.1"), 21474836470L, "92233720368547758070", null) :: Nil
)

// Number and Boolean conflict: resolve the type as number in this query.
Expand Down Expand Up @@ -903,7 +903,7 @@ class JsonSuite extends QueryTest {
checkAnswer(
sql("select struct, struct.field1, struct.field2 from complexTable"),
Row(
Row(true, BigDecimal("92233720368547758070")),
Row(true, new java.math.BigDecimal("92233720368547758070")),
true,
new java.math.BigDecimal("92233720368547758070")) :: Nil
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ object TestJsonData {
"num_bool":12, "num_str":null, "str_bool":true}""" ::
"""{"num_num_1":21474836470, "num_num_2":92233720368547758070, "num_num_3": 100,
"num_bool":false, "num_str":"str1", "str_bool":false}""" ::
"""{"num_num_1":21474836570, "num_num_2":1.2, "num_num_3": 21474836470,
"""{"num_num_1":21474836570, "num_num_2":1.1, "num_num_3": 21474836470,
"num_bool":null, "num_str":92233720368547758070, "str_bool":null}""" :: Nil)

val jsonNullStruct =
Expand Down

0 comments on commit 27b08c9

Please sign in to comment.