Skip to content

Commit 27b08c9

Browse files
committed
Fixed test.
1 parent 10cb496 commit 27b08c9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ class JsonSuite extends QueryTest {
375375
("true", 11L, null, 1.1, "13.1", "str1") ::
376376
("12", null, new java.math.BigDecimal("21474836470.9"), null, null, "true") ::
377377
("false", 21474836470L, new java.math.BigDecimal("92233720368547758070"), 100, "str1", "false") ::
378-
(null, 21474836570L, new java.math.BigDecimal(1.2), 21474836470L, "92233720368547758070", null) :: Nil
378+
(null, 21474836570L, new java.math.BigDecimal("1.1"), 21474836470L, "92233720368547758070", null) :: Nil
379379
)
380380

381381
// Number and Boolean conflict: resolve the type as number in this query.
@@ -903,7 +903,7 @@ class JsonSuite extends QueryTest {
903903
checkAnswer(
904904
sql("select struct, struct.field1, struct.field2 from complexTable"),
905905
Row(
906-
Row(true, BigDecimal("92233720368547758070")),
906+
Row(true, new java.math.BigDecimal("92233720368547758070")),
907907
true,
908908
new java.math.BigDecimal("92233720368547758070")) :: Nil
909909
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ object TestJsonData {
4040
"num_bool":12, "num_str":null, "str_bool":true}""" ::
4141
"""{"num_num_1":21474836470, "num_num_2":92233720368547758070, "num_num_3": 100,
4242
"num_bool":false, "num_str":"str1", "str_bool":false}""" ::
43-
"""{"num_num_1":21474836570, "num_num_2":1.2, "num_num_3": 21474836470,
43+
"""{"num_num_1":21474836570, "num_num_2":1.1, "num_num_3": 21474836470,
4444
"num_bool":null, "num_str":92233720368547758070, "str_bool":null}""" :: Nil)
4545

4646
val jsonNullStruct =

0 commit comments

Comments
 (0)