Skip to content

Commit d2ac7b3

Browse files
committed
Spark - pt3
Signed-off-by: Andy HF Kwok <[email protected]>
1 parent 28e9d33 commit d2ac7b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ package org.apache.spark.sql
2121

2222
import java.util.concurrent.atomic.AtomicInteger
2323

24+
import scala.annotation.nowarn
2425
import scala.concurrent.duration._
2526
import scala.reflect.ClassTag
2627
import scala.reflect.runtime.universe.TypeTag
@@ -543,6 +544,7 @@ abstract class CometTestBase
543544
case None => f(spark.read.format("parquet").load(path))
544545
}
545546

547+
@nowarn("cat=deprecation")
546548
protected def createParquetWriter(
547549
schema: MessageType,
548550
path: Path,
@@ -552,7 +554,6 @@ abstract class CometTestBase
552554
pageRowCountLimit: Int = ParquetProperties.DEFAULT_PAGE_ROW_COUNT_LIMIT,
553555
rowGroupSize: Long = 1024 * 1024L): ParquetWriter[Group] = {
554556
val hadoopConf = spark.sessionState.newHadoopConf()
555-
556557
ExampleParquetWriter
557558
.builder(path)
558559
.withDictionaryEncoding(dictionaryEnabled)

0 commit comments

Comments
 (0)