Skip to content

Commit

Permalink
[GLUTEN-7356][CORE] Make GlutenConfig.GLUTEN_CONFIG_PREFIX private(#7357
Browse files Browse the repository at this point in the history
)
  • Loading branch information
baibaichen authored Sep 26, 2024
1 parent 624752d commit 50430eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import java.util.Locale
import scala.util.control.Breaks.{break, breakable}

class CHBackend extends SubstraitBackend {
override def name(): String = CHBackend.BACKEND_NAME
override def name(): String = CHConf.BACKEND_NAME
override def batchType: Convention.BatchType = CHBatch
override def buildInfo(): Backend.BuildInfo =
Backend.BuildInfo("ClickHouse", CH_BRANCH, CH_COMMIT, "UNKNOWN")
Expand All @@ -62,10 +62,6 @@ class CHBackend extends SubstraitBackend {
override def settings(): BackendSettingsApi = CHBackendSettings
}

object CHBackend {
val BACKEND_NAME: String = CHConf.BACKEND_NAME
}

object CHBackendSettings extends BackendSettingsApi with Logging {

private val GLUTEN_CLICKHOUSE_SEP_SCAN_RDD = "spark.gluten.sql.columnar.separate.scan.rdd.for.ch"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
package org.apache.spark.shuffle

import org.apache.gluten.backendsapi.clickhouse.CHBackend
import org.apache.gluten.backend.Backend

import org.apache.spark.TaskContext
import org.apache.spark.shuffle.celeborn.CelebornShuffleHandle
Expand All @@ -26,7 +26,7 @@ import org.apache.celeborn.client.ShuffleClient
import org.apache.celeborn.common.CelebornConf

class CHCelebornColumnarShuffleWriterFactory extends CelebornShuffleWriterFactory {
override def backendName(): String = CHBackend.BACKEND_NAME
override def backendName(): String = Backend.get().name()

override def createShuffleWriterInstance[K, V](
shuffleId: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ object GlutenConfig {
val GLUTEN_IAA_BACKEND_NAME = "iaa"
val GLUTEN_IAA_SUPPORTED_CODEC: Set[String] = Set("gzip")

val GLUTEN_CONFIG_PREFIX = "spark.gluten.sql.columnar.backend."
private val GLUTEN_CONFIG_PREFIX = "spark.gluten.sql.columnar.backend."

// Private Spark configs.
val SPARK_ONHEAP_SIZE_KEY = "spark.executor.memory"
Expand Down

0 comments on commit 50430eb

Please sign in to comment.