fix: Add hotfix for Snowflake plugin driver (#19876)

*  Updated the snowflake jdbc version from 3.13.25 to 3.13.26
* Added a new property "jdbc_query_result_format" with value as json in order to fix an issue where queries were returning empty results when executed through Appsmith (https://github.com/appsmithorg/appsmith/issues/19784)

_Originally posted by @what-the-diff[bot] in https://github.com/appsmithorg/appsmith/issues/19876#issuecomment-1387026558_
This commit is contained in:
Arpit Mohan 2023-01-18 14:22:24 +01:00 committed by GitHub
commit d9439009de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 33 deletions

View File

@ -24,42 +24,10 @@
</properties>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webflux</artifactId>
<exclusions>
<exclusion>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>net.snowflake</groupId>
<artifactId>snowflake-jdbc</artifactId>
<version>3.13.25</version>
<version>3.13.26</version>
</dependency>
<dependency>

View File

@ -98,6 +98,8 @@ public class SnowflakePlugin extends BasePlugin {
properties.setProperty("db", String.valueOf(datasourceConfiguration.getProperties().get(1).getValue()));
properties.setProperty("schema", String.valueOf(datasourceConfiguration.getProperties().get(2).getValue()));
properties.setProperty("role", String.valueOf(datasourceConfiguration.getProperties().get(3).getValue()));
/* Ref: https://github.com/appsmithorg/appsmith/issues/19784 */
properties.setProperty("jdbc_query_result_format", "json");
return Mono
.fromCallable(() -> {