This is an automated email from the ASF dual-hosted git repository.

yao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 99ffcaa13b36 [SPARK-48436][SQL][TESTS] Use `c.m.c.j.Driver` instead of 
`c.m.j.Driver` in `MySQLNamespaceSuite`
99ffcaa13b36 is described below

commit 99ffcaa13b36c9ffa5582dfeec29438fa58c3e73
Author: panbingkun <[email protected]>
AuthorDate: Wed May 29 10:04:45 2024 +0800

    [SPARK-48436][SQL][TESTS] Use `c.m.c.j.Driver` instead of `c.m.j.Driver` in 
`MySQLNamespaceSuite`
    
    ### What changes were proposed in this pull request?
    The pr aims to use `com.mysql.cj.jdbc.Driver` instead of 
`com.mysql.jdbc.Driver` in `MySQLNamespaceSuite`
    
    ### Why are the changes needed?
    - The full class name of `mysql driver` has changed from 
`com.mysql.jdbc.Driver` (is deprecated) to `com.mysql.cj.jdbc.Driver`,
    
    - Eliminate warnings:
    <img width="953" alt="image" 
src="https://github.com/apache/spark/assets/15246973/8b135f30-4f89-4d10-a57a-35574e2331a9";>
    
    ### Does this PR introduce _any_ user-facing change?
    No.
    
    ### How was this patch tested?
    - Manually test.
    - Pass GA.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    No.
    
    Closes #46773 from panbingkun/SPARK-48436.
    
    Authored-by: panbingkun <[email protected]>
    Signed-off-by: Kent Yao <[email protected]>
---
 .../test/scala/org/apache/spark/sql/jdbc/v2/MySQLNamespaceSuite.scala   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/v2/MySQLNamespaceSuite.scala
 
b/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/v2/MySQLNamespaceSuite.scala
index d2a7aa775826..2b607fccd171 100644
--- 
a/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/v2/MySQLNamespaceSuite.scala
+++ 
b/connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/v2/MySQLNamespaceSuite.scala
@@ -40,7 +40,7 @@ class MySQLNamespaceSuite extends DockerJDBCIntegrationSuite 
with V2JDBCNamespac
 
   val map = new CaseInsensitiveStringMap(
     Map("url" -> db.getJdbcUrl(dockerIp, externalPort),
-      "driver" -> "com.mysql.jdbc.Driver").asJava)
+      "driver" -> "com.mysql.cj.jdbc.Driver").asJava)
 
   catalog.initialize("mysql", map)
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to