Skip to content

Commit 554998e

Browse files
Chong Gaores-life
authored andcommitted
Avoid deprecated ORC stripe statistics API
Signed-off-by: Chong Gao <chongg@nvidia.com>
1 parent b5d3aac commit 554998e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/src/test/scala/com/nvidia/spark/rapids/timezone/OrcTimezoneSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class OrcTimezoneSuite extends SparkQueryCompareTestSuite {
187187
writer: WriterImpl): Unit = {
188188
val sourcePath = new Path(sourceFile.getCanonicalPath)
189189
val reader = OrcFile.createReader(sourcePath, OrcFile.readerOptions(conf))
190-
val stripeStats = reader.getOrcProtoStripeStatistics.asScala
190+
val stripeStats = reader.getStripeStatistics.asScala
191191
reader.getStripes.asScala.zip(stripeStats).foreach { case (stripe, stats) =>
192192
val stripeLength = Math.toIntExact(stripe.getLength)
193193
val stripeBytes = new Array[Byte](stripeLength)
@@ -197,7 +197,7 @@ class OrcTimezoneSuite extends SparkQueryCompareTestSuite {
197197
} finally {
198198
in.close()
199199
}
200-
writer.appendStripe(stripeBytes, 0, stripeLength, stripe, stats)
200+
writer.appendStripe(stripeBytes, 0, stripeLength, stripe, Array(stats))
201201
}
202202
}
203203

0 commit comments

Comments
 (0)