Skip to content

Commit e1368c2

Browse files
committed
Fixed tests.
1 parent 73db80e commit e1368c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sql/core/src/test/scala/org/apache/spark/sql/parquet/ParquetPartitionDiscoverySuite.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class ParquetPartitionDiscoverySuite extends QueryTest with ParquetTest {
5353

5454
check("10", Literal.create(10, IntegerType))
5555
check("1000000000000000", Literal.create(1000000000000000L, LongType))
56-
check("1.5", Literal.create(1.5, FloatType))
56+
check("1.5", Literal.create(1.5f, FloatType))
5757
check("hello", Literal.create("hello", StringType))
5858
check(defaultPartitionName, Literal.create(null, NullType))
5959
}
@@ -83,13 +83,13 @@ class ParquetPartitionDiscoverySuite extends QueryTest with ParquetTest {
8383
ArrayBuffer(
8484
Literal.create(10, IntegerType),
8585
Literal.create("hello", StringType),
86-
Literal.create(1.5, FloatType)))
86+
Literal.create(1.5f, FloatType)))
8787
})
8888

8989
check("file://path/a=10/b_hello/c=1.5", Some {
9090
PartitionValues(
9191
ArrayBuffer("c"),
92-
ArrayBuffer(Literal.create(1.5, FloatType)))
92+
ArrayBuffer(Literal.create(1.5f, FloatType)))
9393
})
9494

9595
check("file:///", None)

0 commit comments

Comments
 (0)