Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4f9e6ed

Browse files
committed
[SPARK-55590][SQL][TESTS] Addmysql-connector-j test dependency tosql/core module
### What changes were proposed in this pull request?This PR aims to add `mysql-connector-j` test dependency to `sql/core` module.### Why are the changes needed?`JDBCSuite` requires `mysql-connector-j` client. Previously, it seems that `MariaDB` connector are used unintentionally. We should fix this.https://github.com/apache/spark/blob/cb3ff7234c2c649bc0b6bb4b1c3465fb1e955600/sql/core/src/test/scala/org/apache/spark/sql/jdbc/JDBCSuite.scala#L1413-L1420### Does this PR introduce _any_ user-facing change?No.### How was this patch tested?Pass the CIs.**BEFORE**```$ build/sbt "sql/testOnly org.apache.spark.sql.jdbc.JDBCSuite -- -zSPARK-18419"...[info] JDBCSuite:08:32:54.125 WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable08:32:55.894 ERROR org.apache.spark.sql.execution.datasources.jdbc.connection.ConnectionProvider: Failed to load built-in provider.[info] -SPARK-18419: Fix `asConnectionProperties` to filter case-insensitively *** FAILED *** (13 milliseconds)[info] java.sql.SQLException: No suitable driver...```**AFTER**```$ build/sbt "sql/testOnly org.apache.spark.sql.jdbc.JDBCSuite -- -zSPARK-18419"...[info] JDBCSuite:[info] -SPARK-18419: Fix `asConnectionProperties` to filter case-insensitively (13 milliseconds)[info] Run completed in 2 seconds, 967 milliseconds.[info] Total number of tests run: 1[info] Suites: completed 1, aborted 0[info] Tests: succeeded 1, failed 0, canceled 0, ignored 0, pending 0[info] All tests passed.[success] Total time: 19 s, completed Feb 18, 2026, 8:32:08 AM```### Was this patch authored or co-authored using generative AI tooling?No.Closes#54367 from dongjoon-hyun/SPARK-55590.Authored-by: Dongjoon Hyun <dongjoon@apache.org>Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
1 parentcb3ff72 commit4f9e6ed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎sql/core/pom.xml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,12 @@
190190
<version>2.3.232</version>
191191
<scope>test</scope>
192192
</dependency>
193+
<dependency>
194+
<groupId>com.mysql</groupId>
195+
<artifactId>mysql-connector-j</artifactId>
196+
<version>${mysql.connector.version}</version>
197+
<scope>test</scope>
198+
</dependency>
193199
<dependency>
194200
<groupId>org.mariadb.jdbc</groupId>
195201
<artifactId>mariadb-java-client</artifactId>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp