Skip to content

Commit

Permalink
Downgrade JDBC to 3.13.30 (#783)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-rcheng authored Feb 6, 2024
1 parent 6f1e339 commit 85b692c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@
<dependency>
<groupId>net.snowflake</groupId>
<artifactId>snowflake-jdbc</artifactId>
<version>3.14.3</version>
<version>3.13.30</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 @@ -379,7 +379,7 @@
<dependency>
<groupId>net.snowflake</groupId>
<artifactId>snowflake-jdbc</artifactId>
<version>3.14.3</version>
<version>3.13.30</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 @@ -302,9 +302,10 @@ protected static Properties generateProxyParametersIfRequired(Map<String, String
proxyProperties.put(SFSessionProperty.PROXY_USER.getPropertyKey(), username);
proxyProperties.put(SFSessionProperty.PROXY_PASSWORD.getPropertyKey(), password);
}
// TODO: uncomment this when JDBC version is upgraded past 3.13.31
// 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");
// proxyProperties.put(SFSessionProperty.GZIP_DISABLED.getPropertyKey(), "false");
}
return proxyProperties;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@ 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");
// TODO: add back when upgrading past 3.13.31
// required otherwise JDBC version 3.13.31 throws NPE
proxyProperties.put(SFSessionProperty.GZIP_DISABLED.getPropertyKey(), "false");
// proxyProperties.put(SFSessionProperty.GZIP_DISABLED.getPropertyKey(), "false");

// Create new snowflake connection service
Map<String, String> config = TestUtils.getConf();
Expand Down
2 changes: 1 addition & 1 deletion test/perf_test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<dependency>
<groupId>net.snowflake</groupId>
<artifactId>snowflake-jdbc</artifactId>
<version>3.13.13</version>
<version>3.13.30</version>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
Expand Down

0 comments on commit 85b692c

Please sign in to comment.