@@ -222,7 +222,7 @@ class JsonSuite extends QueryTest {
222222 StructField (" bigInteger" , DecimalType .Unlimited , true ) ::
223223 StructField (" boolean" , BooleanType , true ) ::
224224 StructField (" double" , DoubleType , true ) ::
225- StructField (" integer" , IntegerType , true ) ::
225+ StructField (" integer" , LongType , true ) ::
226226 StructField (" long" , LongType , true ) ::
227227 StructField (" null" , StringType , true ) ::
228228 StructField (" string" , StringType , true ) :: Nil )
@@ -252,7 +252,7 @@ class JsonSuite extends QueryTest {
252252 StructField (" arrayOfBigInteger" , ArrayType (DecimalType .Unlimited , false ), true ) ::
253253 StructField (" arrayOfBoolean" , ArrayType (BooleanType , false ), true ) ::
254254 StructField (" arrayOfDouble" , ArrayType (DoubleType , false ), true ) ::
255- StructField (" arrayOfInteger" , ArrayType (IntegerType , false ), true ) ::
255+ StructField (" arrayOfInteger" , ArrayType (LongType , false ), true ) ::
256256 StructField (" arrayOfLong" , ArrayType (LongType , false ), true ) ::
257257 StructField (" arrayOfNull" , ArrayType (StringType , true ), true ) ::
258258 StructField (" arrayOfString" , ArrayType (StringType , false ), true ) ::
@@ -265,7 +265,7 @@ class JsonSuite extends QueryTest {
265265 StructField (" field1" , BooleanType , true ) ::
266266 StructField (" field2" , DecimalType .Unlimited , true ) :: Nil ), true ) ::
267267 StructField (" structWithArrayFields" , StructType (
268- StructField (" field1" , ArrayType (IntegerType , false ), true ) ::
268+ StructField (" field1" , ArrayType (LongType , false ), true ) ::
269269 StructField (" field2" , ArrayType (StringType , false ), true ) :: Nil ), true ) :: Nil )
270270
271271 assert(expectedSchema === jsonDF.schema)
@@ -486,7 +486,7 @@ class JsonSuite extends QueryTest {
486486 val jsonDF = jsonRDD(complexFieldValueTypeConflict)
487487
488488 val expectedSchema = StructType (
489- StructField (" array" , ArrayType (IntegerType , false ), true ) ::
489+ StructField (" array" , ArrayType (LongType , false ), true ) ::
490490 StructField (" num_struct" , StringType , true ) ::
491491 StructField (" str_array" , StringType , true ) ::
492492 StructField (" struct" , StructType (
@@ -540,7 +540,7 @@ class JsonSuite extends QueryTest {
540540 val expectedSchema = StructType (
541541 StructField (" a" , BooleanType , true ) ::
542542 StructField (" b" , LongType , true ) ::
543- StructField (" c" , ArrayType (IntegerType , false ), true ) ::
543+ StructField (" c" , ArrayType (LongType , false ), true ) ::
544544 StructField (" d" , StructType (
545545 StructField (" field" , BooleanType , true ) :: Nil ), true ) ::
546546 StructField (" e" , StringType , true ) :: Nil )
@@ -560,7 +560,7 @@ class JsonSuite extends QueryTest {
560560 StructField (" bigInteger" , DecimalType .Unlimited , true ) ::
561561 StructField (" boolean" , BooleanType , true ) ::
562562 StructField (" double" , DoubleType , true ) ::
563- StructField (" integer" , IntegerType , true ) ::
563+ StructField (" integer" , LongType , true ) ::
564564 StructField (" long" , LongType , true ) ::
565565 StructField (" null" , StringType , true ) ::
566566 StructField (" string" , StringType , true ) :: Nil )
@@ -781,12 +781,12 @@ class JsonSuite extends QueryTest {
781781 ArrayType (ArrayType (ArrayType (ArrayType (StringType , false ), false ), true ), false ), true ) ::
782782 StructField (" field2" ,
783783 ArrayType (ArrayType (
784- StructType (StructField (" Test" , IntegerType , true ) :: Nil ), false ), true ), true ) ::
784+ StructType (StructField (" Test" , LongType , true ) :: Nil ), false ), true ), true ) ::
785785 StructField (" field3" ,
786786 ArrayType (ArrayType (
787787 StructType (StructField (" Test" , StringType , true ) :: Nil ), true ), false ), true ) ::
788788 StructField (" field4" ,
789- ArrayType (ArrayType (ArrayType (IntegerType , false ), true ), false ), true ) :: Nil )
789+ ArrayType (ArrayType (ArrayType (LongType , false ), true ), false ), true ) :: Nil )
790790
791791 assert(schema === jsonDF.schema)
792792
0 commit comments