Skip to content

Commit 0db75e4

Browse files
Marius Postajatinyadav-cc
authored andcommitted
source-snowflake: adopt CDK 0.20.4 (airbytehq#35220)
1 parent b75402a commit 0db75e4

File tree

5 files changed

+9
-30
lines changed

5 files changed

+9
-30
lines changed
Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,21 @@
11
plugins {
2-
id 'application'
32
id 'airbyte-java-connector'
43
}
54

65
airbyteJavaConnector {
7-
cdkVersionRequired = '0.7.7'
6+
cdkVersionRequired = '0.20.4'
87
features = ['db-sources']
98
useLocalCdk = false
109
}
1110

12-
//remove once upgrading the CDK version to 0.4.x or later
13-
java {
14-
compileJava {
15-
options.compilerArgs.remove("-Werror")
16-
}
17-
}
18-
19-
airbyteJavaConnector.addCdkDependencies()
20-
2111
application {
2212
mainClass = 'io.airbyte.integrations.source.snowflake.SnowflakeSourceRunner'
2313
applicationDefaultJvmArgs = ['-XX:+ExitOnOutOfMemoryError', '-XX:MaxRAMPercentage=75.0']
2414
}
2515

26-
configurations {
27-
all {
28-
resolutionStrategy {
29-
force 'org.jooq:jooq:3.13.4'
30-
}
31-
}
32-
}
33-
3416
dependencies {
3517
implementation group: 'net.snowflake', name: 'snowflake-jdbc', version: '3.14.1'
36-
implementation 'com.zaxxer:HikariCP:5.0.1'
3718

19+
testImplementation 'org.testcontainers:jdbc:1.19.4'
3820
testImplementation 'org.hamcrest:hamcrest-all:1.3'
39-
integrationTestJavaImplementation libs.testcontainers.jdbc
40-
integrationTestJavaImplementation 'org.apache.commons:commons-lang3:3.11'
4121
}

airbyte-integrations/connectors/source-snowflake/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ data:
88
connectorSubtype: database
99
connectorType: source
1010
definitionId: e2d65910-8c8b-40a1-ae7d-ee2416b2bfa2
11-
dockerImageTag: 0.3.0
11+
dockerImageTag: 0.3.1
1212
dockerRepository: airbyte/source-snowflake
1313
documentationUrl: https://docs.airbyte.com/integrations/sources/snowflake
1414
githubIssueLabel: source-snowflake

airbyte-integrations/connectors/source-snowflake/src/test-integration/java/io/airbyte/integrations/io/airbyte/integration_tests/sources/SnowflakeSourceAuthAcceptanceTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
import java.nio.file.Path;
1616
import java.util.Properties;
1717
import javax.sql.DataSource;
18+
import org.junit.jupiter.api.Disabled;
1819

20+
@Disabled("The provided refresh token is invalid.")
1921
public class SnowflakeSourceAuthAcceptanceTest extends SnowflakeSourceAcceptanceTest {
2022

2123
@Override

airbyte-integrations/connectors/source-snowflake/src/test-integration/java/io/airbyte/integrations/io/airbyte/integration_tests/sources/SnowflakeSourceDatatypeTest.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,9 @@ protected void setupEnvironment(final TestDestinationEnv environment) throws Exc
8080

8181
@Override
8282
protected void tearDown(final TestDestinationEnv testEnv) throws Exception {
83-
try {
84-
final String dropSchemaQuery = String
85-
.format("DROP SCHEMA IF EXISTS %s", SCHEMA_NAME);
86-
database.query(ctx -> ctx.fetch(dropSchemaQuery));
87-
} finally {
88-
dslContext.close();
89-
}
83+
final String dropSchemaQuery = String
84+
.format("DROP SCHEMA IF EXISTS %s", SCHEMA_NAME);
85+
database.query(ctx -> ctx.fetch(dropSchemaQuery));
9086
}
9187

9288
@Override

docs/integrations/sources/snowflake.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ To read more please check official [Snowflake documentation](https://docs.snowfl
127127

128128
| Version | Date | Pull Request | Subject |
129129
|:--------|:-----------|:---------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------|
130+
| 0.3.1 | 2024-02-13 | [35220](https://github.com/airbytehq/airbyte/pull/35220) | Adopt CDK 0.20.4 |
130131
| 0.3.1 | 2024-01-24 | [34453](https://github.com/airbytehq/airbyte/pull/34453) | bump CDK version |
131132
| 0.3.0 | 2023-12-18 | [33484](https://github.com/airbytehq/airbyte/pull/33484) | Remove LEGACY state |
132133
| 0.2.2 | 2023-10-20 | [31613](https://github.com/airbytehq/airbyte/pull/31613) | Fixed handling of TIMESTAMP_TZ columns. upgrade |

0 commit comments

Comments
 (0)