-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Destination Snowflake SQL compilation error #9006
🐛 Destination Snowflake SQL compilation error #9006
Conversation
vmaltsev seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
/test connector=connectors/destination-snowflake
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add something to the documentation (or spec.json) saying that this transformation will happen automatically? other than that, this looks good to me
updated spec.json |
/publish connector=connectors/destination-snowflake
|
@@ -32,7 +32,7 @@ public static Connection getConnection(final JsonNode config) throws SQLExceptio | |||
properties.put("warehouse", config.get("warehouse").asText()); | |||
properties.put("database", config.get("database").asText()); | |||
properties.put("role", config.get("role").asText()); | |||
properties.put("schema", config.get("schema").asText()); | |||
properties.put("schema", nameTransformer.getIdentifier(config.get("schema").asText())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@edgao this is a good candidate for the testing ticket
@VitaliiMaltsev sorry, missed this in my review - can you add a unit test to prevent regression? It'll probably require mocking the static method |
@edgao i think that connection mocking is not enough so i created integration test for more realistic test scenario https://github.com/airbytehq/airbyte/pull/9065/files . Please review |
What
Syncing Google Analytics <> Snowflake and getting error:
35mdestination�[0m - 2021-12-16 19:33:49 ERROR LineGobbler(voidCall):82 - Exception in thread "main" net.snowflake.client.jdbc.SnowflakeSQLException: SQL compilation error:
�[35mdestination�[0m - 2021-12-16 19:33:49 ERROR LineGobbler(voidCall):82 - syntax error line 1 at position 39 unexpected 'Pages'.
How
Updated jdbc connection parameter schema to follow Snowflake naming convention
Recommended reading order
x.java
y.python
🚨 User Impact 🚨
There should be no visible impact on users
Pre-merge Checklist
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/SUMMARY.md
docs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampledocs/integrations/README.md
airbyte-integrations/builds.md
Airbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described hereUpdating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described hereConnector Generator
-scaffold
in their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates
then checking in your changes