Skip to content

Commit 89308f7

Browse files
Snowflake source: keep session alive to avoid breaking connection (#9567)
* Snowflake source: keep session alive to avoid breaking connection * Snowflake source: bump version * Snowflake source: updated seed specs
1 parent df4b4d6 commit 89308f7

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

airbyte-config/init/src/main/resources/config/STANDARD_SOURCE_DEFINITION/e2d65910-8c8b-40a1-ae7d-ee2416b2bfa2.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"sourceDefinitionId": "e2d65910-8c8b-40a1-ae7d-ee2416b2bfa2",
33
"name": "Snowflake",
44
"dockerRepository": "airbyte/source-snowflake",
5-
"dockerImageTag": "0.1.4",
5+
"dockerImageTag": "0.1.5",
66
"documentationUrl": "https://docs.airbyte.io/integrations/sources/snowflake",
77
"icon": "snowflake.svg"
88
}

airbyte-config/init/src/main/resources/seed/source_definitions.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@
676676
- name: Snowflake
677677
sourceDefinitionId: e2d65910-8c8b-40a1-ae7d-ee2416b2bfa2
678678
dockerRepository: airbyte/source-snowflake
679-
dockerImageTag: 0.1.4
679+
dockerImageTag: 0.1.5
680680
documentationUrl: https://docs.airbyte.io/integrations/sources/snowflake
681681
icon: snowflake.svg
682682
sourceType: database

airbyte-config/init/src/main/resources/seed/source_specs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6997,7 +6997,7 @@
69976997
- - "client_secret"
69986998
oauthFlowOutputParameters:
69996999
- - "refresh_token"
7000-
- dockerImage: "airbyte/source-snowflake:0.1.4"
7000+
- dockerImage: "airbyte/source-snowflake:0.1.5"
70017001
spec:
70027002
documentationUrl: "https://docs.airbyte.io/integrations/sources/snowflake"
70037003
connectionSpecification:

airbyte-integrations/connectors/source-snowflake/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ ENV APPLICATION source-snowflake
1616

1717
COPY --from=build /airbyte /airbyte
1818

19-
LABEL io.airbyte.version=0.1.4
19+
LABEL io.airbyte.version=0.1.5
2020
LABEL io.airbyte.name=airbyte/source-snowflake

airbyte-integrations/connectors/source-snowflake/src/main/java/io.airbyte.integrations.source.snowflake/SnowflakeSource.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,15 @@ public JsonNode toDatabaseConfig(final JsonNode config) {
3939
.put("host", config.get("host").asText())
4040
.put("username", config.get("username").asText())
4141
.put("password", config.get("password").asText())
42-
.put("connection_properties", String.format("role=%s;warehouse=%s;database=%s;schema=%s;JDBC_QUERY_RESULT_FORMAT=%s;",
42+
.put("connection_properties", String.format("role=%s;warehouse=%s;database=%s;schema=%s;JDBC_QUERY_RESULT_FORMAT=%s;CLIENT_SESSION_KEEP_ALIVE=%s;",
4343
config.get("role").asText(),
4444
config.get("warehouse").asText(),
4545
config.get("database").asText(),
4646
config.get("schema").asText(),
4747
// Needed for JDK17 - see
4848
// https://stackoverflow.com/questions/67409650/snowflake-jdbc-driver-internal-error-fail-to-retrieve-row-count-for-first-arrow
49-
"JSON"))
49+
"JSON",
50+
true))
5051
.build());
5152
}
5253

docs/integrations/sources/snowflake.md

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ Your database user should now be ready for use with Airbyte.
7575

7676
| Version | Date | Pull Request | Subject |
7777
| :--- | :--- | :--- | :--- |
78+
| 0.1.5 | 2022-01-19 | [9567](https://github.com/airbytehq/airbyte/pull/9567) | Added parameter for keeping JDBC session alive |
7879
| 0.1.4 | 2021-12-30 | [9203](https://github.com/airbytehq/airbyte/pull/9203) | Update connector fields title/description |
7980
| 0.1.3 | 2021-01-11 | [9304](https://github.com/airbytehq/airbyte/pull/9304) | Upgrade version of JDBC driver |
8081
| 0.1.2 | 2021-10-21 | [7257](https://github.com/airbytehq/airbyte/pull/7257) | Fixed parsing of extreme values for FLOAT and NUMBER data types |

0 commit comments

Comments
 (0)