Skip to content

Commit

Permalink
Try fix shaded client sdk classes (from source branch)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dseweryn committed Dec 13, 2024
1 parent f75f737 commit dfe5d54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ private Properties loadProperties() throws IOException {
private Connection getConnection()
throws IOException, ClassNotFoundException, SQLException, NoSuchAlgorithmException,
InvalidKeySpecException {
Class.forName("net.snowflake.client.jdbc.SnowflakeDriver");
try {
Class.forName("net.snowflake.client.jdbc.SnowflakeDriver");
} catch (ClassNotFoundException e) {
Class.forName("net.snowflake.ingest.internal.net.snowflake.client.jdbc.SnowflakeDriver");
}

Properties loadedProps = loadProperties();

Expand Down
8 changes: 0 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1503,14 +1503,6 @@
<pattern>org.roaringbitmap</pattern>
<shadedPattern>${shadeBase}.org.roaringbitmap</shadedPattern>
</relocation>
<relocation>
<pattern>net.snowflake.client</pattern>
<shadedPattern>${shadeBase}.net.snowflake.client</shadedPattern>
</relocation>
<relocation>
<pattern>com.snowflake.client</pattern>
<shadedPattern>${shadeBase}.com.snowflake.client</shadedPattern>
</relocation>
<relocation>
<pattern>com.amazonaws</pattern>
<shadedPattern>${shadeBase}.com.amazonaws</shadedPattern>
Expand Down

0 comments on commit dfe5d54

Please sign in to comment.