Skip to content

Commit c047bd0

Browse files
committed
revert pt 2
1 parent c1b4b86 commit c047bd0

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
@@ -1171,6 +1171,7 @@ abstract class CometTestBase
11711171
df.showString(_numRows, truncate, vertical)
11721172
}
11731173

1174+
@nowarn("cat=w-flag-numeric-widen")
11741175
def makeParquetFile(
11751176
path: Path,
11761177
total: Int,
@@ -1224,8 +1225,8 @@ abstract class CometTestBase
12241225
val record = new SimpleGroup(schema)
12251226
opt match {
12261227
case Some(i) =>
1227-
record.add(0, i.toByte.toInt)
1228-
record.add(1, i.toShort.toInt)
1228+
record.add(0, i.toByte)
1229+
record.add(1, i.toShort)
12291230
record.add(2, i)
12301231
record.add(3, i.toLong)
12311232
record.add(4, rand.nextFloat())

0 commit comments

Comments
 (0)