Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenliang123 committed Oct 9, 2023
1 parent 7f0672a commit aa52a4c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class SparkProcessBuilder(
}

private[kyuubi] def extractSparkCoreScalaVersion(fileNames: Iterable[String]): String = {
fileNames.collectFirst { case sparkCoreScalaVersionRegex(scalaVersion) => scalaVersion }
fileNames.collectFirst { case SPARK_CORE_SCALA_VERSION_REGEX(scalaVersion) => scalaVersion }
.getOrElse(throw new KyuubiException("Failed to extract Scala version from spark-core jar"))
}

Expand Down Expand Up @@ -334,7 +334,7 @@ object SparkProcessBuilder {
final private val SPARK_CONF_DIR = "SPARK_CONF_DIR"
final private val SPARK_CONF_FILE_NAME = "spark-defaults.conf"

final private[kyuubi] val sparkCoreScalaVersionRegex =
final private[kyuubi] val SPARK_CORE_SCALA_VERSION_REGEX =
"""^spark-core_(\d\.\d+).*.jar$""".r

final private[kyuubi] lazy val SPARK_HOME_REGEX_SCALA_212 =
Expand Down

0 comments on commit aa52a4c

Please sign in to comment.