Skip to content

Commit

Permalink
SNOW-913746 upgrade jdbc 3.14.3 (snowflakedb#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-japatel authored and EduardHantig committed Feb 1, 2024
1 parent 855c401 commit 0ca83cf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@
<dependency>
<groupId>net.snowflake</groupId>
<artifactId>snowflake-jdbc</artifactId>
<version>3.13.30</version>
<version>3.14.3</version>
</dependency>

<!-- Ingest SDK for copy staged file into snowflake table -->
Expand Down
2 changes: 1 addition & 1 deletion pom_confluent.xml
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@
<dependency>
<groupId>net.snowflake</groupId>
<artifactId>snowflake-jdbc</artifactId>
<version>3.13.30</version>
<version>3.14.3</version>
</dependency>

<!-- Ingest SDK for copy staged file into snowflake table -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@ protected static Properties generateProxyParametersIfRequired(Map<String, String
proxyProperties.put(SFSessionProperty.PROXY_USER.getPropertyKey(), username);
proxyProperties.put(SFSessionProperty.PROXY_PASSWORD.getPropertyKey(), password);
}
// There is a change in JDBC version 3.13.31 which causes NPE if this is not added.
// https://github.com/snowflakedb/snowflake-jdbc/blob/master/src/main/java/net/snowflake/client/jdbc/SnowflakeUtil.java#L614
proxyProperties.put(SFSessionProperty.GZIP_DISABLED.getPropertyKey(), "false");
}
return proxyProperties;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ public void testInternalStageWithProxy() throws SnowflakeSQLException {
proxyProperties.put(SFSessionProperty.PROXY_PORT.getPropertyKey(), "3128");
proxyProperties.put(SFSessionProperty.PROXY_USER.getPropertyKey(), "admin");
proxyProperties.put(SFSessionProperty.PROXY_PASSWORD.getPropertyKey(), "test");
// required otherwise JDBC version 3.13.31 throws NPE
proxyProperties.put(SFSessionProperty.GZIP_DISABLED.getPropertyKey(), "false");

// Create new snowflake connection service
Map<String, String> config = TestUtils.getConf();
Expand Down

0 comments on commit 0ca83cf

Please sign in to comment.