Skip to content

Commit 4450d18

Browse files
Merge pull request #22 from cloudsufi/OAuth-issue-fix
[PLUGIN-1734] Upgrading the driver version from 3.13.24 to 3.14.4
2 parents 2337b5d + 624637f commit 4450d18

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<powermock.version>1.7.4</powermock.version>
4848
<guice.version>4.0</guice.version>
4949
<opencsv.version>2.4</opencsv.version>
50-
<snowflake-jdbc.version>3.13.24</snowflake-jdbc.version>
50+
<snowflake-jdbc.version>3.14.4</snowflake-jdbc.version>
5151
</properties>
5252

5353
<repositories>

src/main/java/io/cdap/plugin/snowflake/sink/batch/SnowflakeSinkConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ public void validate(Schema inputSchema, FailureCollector failureCollector) {
9898
* @param schema input schema to check
9999
*/
100100
private void validateInputSchema(Schema schema, FailureCollector failureCollector) {
101-
// schema can be null in case it is a macro
102-
if (schema == null) {
101+
// return if schema is null or if any of the connection properties or table name is macro
102+
if (schema == null || !canConnect() || containsMacro(PROPERTY_TABLE_NAME)) {
103103
return;
104104
}
105105

0 commit comments

Comments
 (0)