Skip to content

Commit

Permalink
fix velox compile issue by introducing def enableSuite(suiteName: Str…
Browse files Browse the repository at this point in the history
…ing) to avoid explicitly refer test suite
  • Loading branch information
baibaichen committed Aug 19, 2024
1 parent a73f632 commit 51e258f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ abstract class BackendTestSettings {
private val enabledSuites: java.util.Map[String, SuiteSettings] = new util.HashMap()

protected def enableSuite[T: ClassTag]: SuiteSettings = {
val suiteName = implicitly[ClassTag[T]].runtimeClass.getCanonicalName
enableSuite(implicitly[ClassTag[T]].runtimeClass.getCanonicalName)
}

protected def enableSuite(suiteName: String): SuiteSettings = {
if (enabledSuites.containsKey(suiteName)) {
throw new IllegalArgumentException("Duplicated suite name: " + suiteName)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.gluten.utils.clickhouse

import org.apache.gluten.execution.parquet.GlutenParquetV1FilterSuite2
import org.apache.gluten.utils.{BackendTestSettings, SQLQueryTestSettings}

import org.apache.spark.sql._
Expand Down Expand Up @@ -1601,7 +1600,7 @@ class ClickHouseTestSettings extends BackendTestSettings {
.exclude("SPARK-38825: in and notIn filters")
.exclude("SPARK-36866: filter pushdown - year-month interval")
.excludeGlutenTest("SPARK-25207: exception when duplicate fields in case-insensitive mode")
enableSuite[GlutenParquetV1FilterSuite2]
enableSuite("org.apache.gluten.execution.parquet.GlutenParquetV1FilterSuite2")
.exclude("filter pushdown - date")
.exclude("filter pushdown - timestamp")
.exclude("Filters should be pushed down for vectorized Parquet reader at row group level")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.gluten.utils.clickhouse

import org.apache.gluten.execution.parquet.GlutenParquetV1FilterSuite2
import org.apache.gluten.utils.{BackendTestSettings, SQLQueryTestSettings}

import org.apache.spark.sql._
Expand Down Expand Up @@ -1442,7 +1441,7 @@ class ClickHouseTestSettings extends BackendTestSettings {
.exclude("filter pushdown - StringContains")
.exclude("filter pushdown - StringPredicate")
.excludeGlutenTest("SPARK-25207: exception when duplicate fields in case-insensitive mode")
enableSuite[GlutenParquetV1FilterSuite2]
enableSuite("org.apache.gluten.execution.parquet.GlutenParquetV1FilterSuite2")
.exclude("filter pushdown - date")
.exclude("filter pushdown - timestamp")
.exclude("Filters should be pushed down for vectorized Parquet reader at row group level")
Expand Down

0 comments on commit 51e258f

Please sign in to comment.