Skip to content

Commit

Permalink
🐛 Destination snowflake: fix check (airbytehq#34528)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgao authored and jatinyadav-cc committed Feb 26, 2024
1 parent 749bcde commit ae1c007
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ data:
connectorSubtype: database
connectorType: destination
definitionId: 424892c4-daac-4491-b35d-c6688ba547ba
dockerImageTag: 3.5.2
dockerImageTag: 3.5.3
dockerRepository: airbyte/destination-snowflake
documentationUrl: https://docs.airbyte.com/integrations/destinations/snowflake
githubIssueLabel: destination-snowflake
Expand All @@ -14,12 +14,8 @@ data:
name: Snowflake
registries:
cloud:
# 3.5.2 is broken; pinning back to the last known-good version
dockerImageTag: 3.4.22
enabled: true
oss:
# 3.5.2 is broken; pinning back to the last known-good version
dockerImageTag: 3.4.22
enabled: true
releaseStage: generally_available
releases:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ public void insertRecordsInternal(final JdbcDatabase database,
@Override
protected void insertRecordsInternalV2(final JdbcDatabase jdbcDatabase, final List<PartialAirbyteMessage> list, final String s, final String s1)
throws Exception {
// Snowflake doesn't have standard inserts... so we probably never want to do this
throw new UnsupportedOperationException("Snowflake does not use the native JDBC DV2 interface");
// Snowflake doesn't have standard inserts... so we don't do this at real runtime.
// Intentionally do nothing. This method is called from the `check` method.
// It probably shouldn't be, but this is the easiest path to getting this working.
}

protected String generateFilesList(final List<String> files) {
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/destinations/snowflake.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ Otherwise, make sure to grant the role the required permissions in the desired n

| Version | Date | Pull Request | Subject |
|:----------------|:-----------|:-----------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 3.5.3 | 2024-01-25 | [\#34528](https://github.com/airbytehq/airbyte/pull/34528) | Fix spurious `check` failure (`UnsupportedOperationException: Snowflake does not use the native JDBC DV2 interface`) |
| 3.5.2 | 2024-01-24 | [\#34458](https://github.com/airbytehq/airbyte/pull/34458) | Improve error reporting |
| 3.5.1 | 2024-01-24 | [\#34501](https://github.com/airbytehq/airbyte/pull/34501) | Internal code changes for Destinations V2 |
| 3.5.0 | 2024-01-24 | [\#34462](https://github.com/airbytehq/airbyte/pull/34462) | Upgrade CDK to 0.14.0 |
Expand Down

0 comments on commit ae1c007

Please sign in to comment.