Skip to content

Commit 666f5de

Browse files
committed
revert pt 2
1 parent 0e54d60 commit 666f5de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spark/src/test/scala/org/apache/spark/sql/CometTestBase.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,6 +1178,7 @@ abstract class CometTestBase
11781178
df.showString(_numRows, truncate, vertical)
11791179
}
11801180

1181+
@nowarn("cat=w-flag-numeric-widen")
11811182
def makeParquetFile(
11821183
path: Path,
11831184
total: Int,
@@ -1231,8 +1232,8 @@ abstract class CometTestBase
12311232
val record = new SimpleGroup(schema)
12321233
opt match {
12331234
case Some(i) =>
1234-
record.add(0, i.toByte.toInt)
1235-
record.add(1, i.toShort.toInt)
1235+
record.add(0, i.toByte)
1236+
record.add(1, i.toShort)
12361237
record.add(2, i)
12371238
record.add(3, i.toLong)
12381239
record.add(4, rand.nextFloat())

0 commit comments

Comments
 (0)