From aa52a4cb4f23257ed856fd38f020c4298a23117e Mon Sep 17 00:00:00 2001 From: liangbowen Date: Mon, 9 Oct 2023 21:33:03 +0800 Subject: [PATCH] rename --- .../org/apache/kyuubi/engine/spark/SparkProcessBuilder.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kyuubi-server/src/main/scala/org/apache/kyuubi/engine/spark/SparkProcessBuilder.scala b/kyuubi-server/src/main/scala/org/apache/kyuubi/engine/spark/SparkProcessBuilder.scala index fea08d8647c..7b92f15a50a 100644 --- a/kyuubi-server/src/main/scala/org/apache/kyuubi/engine/spark/SparkProcessBuilder.scala +++ b/kyuubi-server/src/main/scala/org/apache/kyuubi/engine/spark/SparkProcessBuilder.scala @@ -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")) } @@ -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 =