From d8b83c7c3bcb29bbbd126756c19f66bb726d7769 Mon Sep 17 00:00:00 2001 From: dupeng Date: Fri, 23 Aug 2024 12:19:27 +0800 Subject: [PATCH] [KYUUBI #6603] Upgrade Scala version from 2.13.8 to 2.13.14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # :mag: Description ## Issue References ๐Ÿ”— To support Java 21, the Scala version needs to be upgraded to 2.13.11 or above. ## Types of changes :bookmark: - [ ] Bugfix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan ๐Ÿงช #### Behavior Without This Pull Request :coffin: #### Behavior With This Pull Request :tada: #### Related Unit Tests --- # Checklist ๐Ÿ“ - [ ] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes #6603 from dupen01/scala213. Closes #6603 541f86054 [Cheng Pan] exclude SparkLocalClusterTest 13c11bf52 [Perl Du] add ignoreClasses comments d5b67971b [Cheng Pan] Update pom.xml 582de9b90 [dupeng] ignore org.jline.terminal.impl.ffm.* 364eea00c [dupeng] upgrade maven.plugin.silencer.version from 1.7.13 to 1.7.17 99a1cc40a [dupeng] upgrade scala version to 2.13.14 54b0f4d3f [dupeng] upgrade scala version to 2.13.11 Lead-authored-by: dupeng Co-authored-by: Cheng Pan Co-authored-by: Perl Du <34719039+dupen01@users.noreply.github.com> Co-authored-by: Cheng Pan Signed-off-by: Cheng Pan --- .github/workflows/master.yml | 1 + .../server/metadata/jdbc/JDBCMetadataStore.scala | 3 ++- pom.xml | 12 ++++++++++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 0d1385a46..c80e387cb 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -162,6 +162,7 @@ jobs: run: | TEST_MODULES="!externals/kyuubi-flink-sql-engine,!integration-tests/kyuubi-flink-it" ./build/mvn clean install ${MVN_OPT} -pl ${TEST_MODULES} -am \ + -Dmaven.plugin.scalatest.exclude.tags=org.scalatest.tags.Slow,org.apache.kyuubi.tags.SparkLocalClusterTest \ -Pscala-${{ matrix.scala }} -Pjava-${{ matrix.java }} -Pspark-${{ matrix.spark }} - name: Upload test logs if: failure() diff --git a/kyuubi-server/src/main/scala/org/apache/kyuubi/server/metadata/jdbc/JDBCMetadataStore.scala b/kyuubi-server/src/main/scala/org/apache/kyuubi/server/metadata/jdbc/JDBCMetadataStore.scala index cb6671ade..5ae534f83 100644 --- a/kyuubi-server/src/main/scala/org/apache/kyuubi/server/metadata/jdbc/JDBCMetadataStore.scala +++ b/kyuubi-server/src/main/scala/org/apache/kyuubi/server/metadata/jdbc/JDBCMetadataStore.scala @@ -80,7 +80,8 @@ class JDBCMetadataStore(conf: KyuubiConf) extends MetadataStore with Logging { hikariConfig.setPoolName("jdbc-metadata-store-pool") @VisibleForTesting - implicit private[kyuubi] val hikariDataSource = new HikariDataSource(hikariConfig) + implicit private[kyuubi] val hikariDataSource: HikariDataSource = + new HikariDataSource(hikariConfig) private val mapper = new ObjectMapper().registerModule(DefaultScalaModule) private val terminalStates = OperationState.terminalStates.map(x => s"'$x'").mkString(", ") diff --git a/pom.xml b/pom.xml index 519d5d759..d02d8c476 100644 --- a/pom.xml +++ b/pom.xml @@ -241,7 +241,7 @@ 0.8.11 1.0.0 3.5.2 - 1.7.13 + 1.7.17 3.2.1 @@ -1853,6 +1853,14 @@ ${java.version} test + + + org.jline.terminal.impl.ffm.* + true @@ -1931,7 +1939,7 @@ scala-2.13 2.13 - 2.13.8 + 2.13.14 -scala${scala.binary.version}