Skip to content

Commit 0bae43c

Browse files
committed
rename
1 parent b0305d2 commit 0bae43c

8 files changed

Lines changed: 11 additions & 11 deletions

File tree

common/src/main/scala/org/apache/comet/CometConf.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ object CometConf extends ShimCometConf {
715715
.booleanConf
716716
.createWithDefault(false)
717717

718-
val COMET_PARQUET_UNSIGNED_SMALL_INT__CHECK: ConfigEntry[Boolean] =
718+
val COMET_PARQUET_UNSIGNED_SMALL_INT_CHECK: ConfigEntry[Boolean] =
719719
conf("spark.comet.scan.unsignedSmallIntSafetyCheck")
720720
.category(CATEGORY_SCAN)
721721
.doc(

spark/src/main/scala/org/apache/comet/rules/CometScanRule.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,9 +682,9 @@ case class CometScanTypeChecker(scanImpl: String) extends DataTypeSupport with C
682682
dt match {
683683
case ShortType
684684
if scanImpl != CometConf.SCAN_NATIVE_COMET &&
685-
CometConf.COMET_PARQUET_UNSIGNED_SMALL_INT__CHECK.get() =>
685+
CometConf.COMET_PARQUET_UNSIGNED_SMALL_INT_CHECK.get() =>
686686
fallbackReasons += s"$scanImpl scan may not handle unsigned UINT_8 correctly for $dt. " +
687-
s"Set ${CometConf.COMET_PARQUET_UNSIGNED_SMALL_INT__CHECK.key}=false to allow " +
687+
s"Set ${CometConf.COMET_PARQUET_UNSIGNED_SMALL_INT_CHECK.key}=false to allow " +
688688
"native execution if your data does not contain unsigned small integers. " +
689689
CometConf.COMPAT_GUIDE
690690
false

spark/src/test/scala/org/apache/comet/CometExpressionSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class CometExpressionSuite extends CometTestBase with AdaptiveSparkPlanHelper {
191191
withTempDir { dir =>
192192
val path = new Path(dir.toURI.toString, "test.parquet")
193193
makeParquetFileAllPrimitiveTypes(path, dictionaryEnabled = dictionaryEnabled, 10000)
194-
withSQLConf(CometConf.COMET_PARQUET_UNSIGNED_SMALL_INT__CHECK.key -> "true") {
194+
withSQLConf(CometConf.COMET_PARQUET_UNSIGNED_SMALL_INT_CHECK.key -> "true") {
195195
withParquetTable(path.toString, "tbl") {
196196
checkSparkAnswerAndOperator("select * FROM tbl WHERE _2 > 100")
197197
}
@@ -207,7 +207,7 @@ class CometExpressionSuite extends CometTestBase with AdaptiveSparkPlanHelper {
207207
Seq(true).foreach { safetyCheck =>
208208
{
209209
withSQLConf(
210-
CometConf.COMET_PARQUET_UNSIGNED_SMALL_INT__CHECK.key -> safetyCheck.toString) {
210+
CometConf.COMET_PARQUET_UNSIGNED_SMALL_INT_CHECK.key -> safetyCheck.toString) {
211211
withTempDir { dir =>
212212
val path = new Path(dir.toURI.toString, "testuint.parquet")
213213
makeParquetFileAllPrimitiveTypes(

spark/src/test/scala/org/apache/comet/CometFuzzTestBase.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class CometFuzzTestBase extends CometTestBase with AdaptiveSparkPlanHelper {
120120
super.test(testName + s" ($scanImpl, $shuffleMode shuffle)", testTags: _*) {
121121
withSQLConf(
122122
CometConf.COMET_NATIVE_SCAN_IMPL.key -> scanImpl,
123-
CometConf.COMET_PARQUET_UNSIGNED_SMALL_INT__CHECK.key -> "false",
123+
CometConf.COMET_PARQUET_UNSIGNED_SMALL_INT_CHECK.key -> "false",
124124
CometConf.COMET_SHUFFLE_MODE.key -> shuffleMode) {
125125
testFun
126126
}

spark/src/test/scala/org/apache/comet/parquet/CometParquetWriterSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ class CometParquetWriterSuite extends CometTestBase {
460460
// explicitly set scan impl to override CI defaults
461461
CometConf.COMET_NATIVE_SCAN_IMPL.key -> "auto",
462462
// Disable unsigned small int safety check for ShortType columns
463-
CometConf.COMET_PARQUET_UNSIGNED_SMALL_INT__CHECK.key -> "false",
463+
CometConf.COMET_PARQUET_UNSIGNED_SMALL_INT_CHECK.key -> "false",
464464
// use a different timezone to make sure that timezone handling works with nested types
465465
SQLConf.SESSION_LOCAL_TIMEZONE.key -> "America/Halifax") {
466466

spark/src/test/scala/org/apache/comet/parquet/ParquetReadSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1904,7 +1904,7 @@ class ParquetReadV1Suite extends ParquetReadSuite with AdaptiveSparkPlanHelper {
19041904
val rows = 1000
19051905
withSQLConf(
19061906
CometConf.COMET_NATIVE_SCAN_IMPL.key -> CometConf.SCAN_NATIVE_ICEBERG_COMPAT,
1907-
CometConf.COMET_PARQUET_UNSIGNED_SMALL_INT__CHECK.key -> "true") {
1907+
CometConf.COMET_PARQUET_UNSIGNED_SMALL_INT_CHECK.key -> "true") {
19081908
makeParquetFileAllPrimitiveTypes(
19091909
path,
19101910
dictionaryEnabled = false,

spark/src/test/scala/org/apache/comet/rules/CometScanRuleSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class CometScanRuleSuite extends CometTestBase {
167167

168168
withSQLConf(
169169
CometConf.COMET_NATIVE_SCAN_IMPL.key -> CometConf.SCAN_NATIVE_ICEBERG_COMPAT,
170-
CometConf.COMET_PARQUET_UNSIGNED_SMALL_INT__CHECK.key -> "true") {
170+
CometConf.COMET_PARQUET_UNSIGNED_SMALL_INT_CHECK.key -> "true") {
171171
val transformedPlan = applyCometScanRule(sparkPlan)
172172

173173
// Should fallback to Spark due to ShortType (may be from unsigned UINT_8)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ abstract class CometTestBase
8383
conf.set(CometConf.COMET_RESPECT_PARQUET_FILTER_PUSHDOWN.key, "true")
8484
conf.set(CometConf.COMET_SPARK_TO_ARROW_ENABLED.key, "true")
8585
conf.set(CometConf.COMET_NATIVE_SCAN_ENABLED.key, "true")
86-
conf.set(CometConf.COMET_PARQUET_UNSIGNED_SMALL_INT__CHECK.key, "false")
86+
conf.set(CometConf.COMET_PARQUET_UNSIGNED_SMALL_INT_CHECK.key, "false")
8787
conf.set(CometConf.COMET_ONHEAP_MEMORY_OVERHEAD.key, "2g")
8888
conf.set(CometConf.COMET_EXEC_SORT_MERGE_JOIN_WITH_JOIN_FILTER_ENABLED.key, "true")
8989
// SortOrder is incompatible for mixed zero and negative zero floating point values, but
@@ -1275,6 +1275,6 @@ abstract class CometTestBase
12751275

12761276
def usingDataSourceExecWithIncompatTypes(conf: SQLConf): Boolean = {
12771277
usingDataSourceExec(conf) &&
1278-
CometConf.COMET_PARQUET_UNSIGNED_SMALL_INT__CHECK.get(conf)
1278+
CometConf.COMET_PARQUET_UNSIGNED_SMALL_INT_CHECK.get(conf)
12791279
}
12801280
}

0 commit comments

Comments
 (0)