This is an automated email from the ASF dual-hosted git repository.
pan3793 pushed a commit to branch branch-4.x
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-4.x by this push:
new ebcf35db6e8d [SPARK-60104][BUILD][TEST] Switch Snowflake JDBC Driver
from fat to thin
ebcf35db6e8d is described below
commit ebcf35db6e8d99dbdd80db5b10a86f640c1c6e75
Author: Cheng Pan <[email protected]>
AuthorDate: Mon Oct 12 14:33:25 2026 +0800
[SPARK-60104][BUILD][TEST] Switch Snowflake JDBC Driver from fat to thin
### What changes were proposed in this pull request?
Switch Snowflake JDBC Driver from
[shaded](https://mvnrepository.com/artifact/net.snowflake/snowflake-jdbc) to
[thin](https://mvnrepository.com/artifact/net.snowflake/snowflake-jdbc-thin)
### Why are the changes needed?
The Snowflake JDBC Driver was introduced in SPARK-50666 as a test scope
dependency because `JDBCSuite` requires the JDBC driver defined by the built-in
`JdbcDialect` to be loadable.
While the
[shaded](https://mvnrepository.com/artifact/net.snowflake/snowflake-jdbc)
Snowflake JDBC Driver contains SPI entries that pollute the classpath and cause
the known issues
- https://github.com/snowflakedb/snowflake-jdbc/pull/2706
- https://github.com/snowflakedb/snowflake-jdbc/issues/2759
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
```
$ build/sbt "sql/testOnly *JDBCSuite -- -z SPARK-50666"
...
[info] Run completed in 5 seconds, 606 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: 34 s, completed Oct 9, 2026, 10:37:43 AM
```
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #59319 from pan3793/sf-jdbc-thin.
Authored-by: Cheng Pan <[email protected]>
Signed-off-by: Cheng Pan <[email protected]>
(cherry picked from commit 0e248f9c65e0a38696c01ad5ea8ebb8acbb0a6f4)
Signed-off-by: Cheng Pan <[email protected]>
---
pom.xml | 8 +++++++-
sql/core/pom.xml | 2 +-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 97c16232a53e..103a8e0ffa65 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1419,9 +1419,15 @@
</dependency>
<dependency>
<groupId>net.snowflake</groupId>
- <artifactId>snowflake-jdbc</artifactId>
+ <artifactId>snowflake-jdbc-thin</artifactId>
<version>${snowflake.jdbc.version}</version>
<scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>*</groupId>
+ <artifactId>*</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>com.teradata.jdbc</groupId>
diff --git a/sql/core/pom.xml b/sql/core/pom.xml
index 49e523314bb9..441f62c5c4f1 100644
--- a/sql/core/pom.xml
+++ b/sql/core/pom.xml
@@ -247,7 +247,7 @@
</dependency>
<dependency>
<groupId>net.snowflake</groupId>
- <artifactId>snowflake-jdbc</artifactId>
+ <artifactId>snowflake-jdbc-thin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]