Repository navigation
π Destination snowflake: Handle namespace/stream name/columns containing ${ - #30416
Conversation
Before Merging a Connector Pull RequestWow! What a great pull request you have here! π To merge this PR, ensure the following has been done/considered for each connector added or updated:
If the checklist is complete, but the CI check is failing,
|
${${
|
|
If it's not difficult, yes I'd say to remove the final |
Evan Tahler (evantahler)
left a comment
There was a problem hiding this comment.
There probably should be a test for a column with a ${} too
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
Evan Tahler (@evantahler) I added some commits which are individually reviewable, PTAL |
|
| Step | Result |
|---|---|
| Java Connector Unit Tests | β |
| Build connector tar | β |
| Build destination-snowflake docker image for platform linux/x86_64 | β |
| Java Connector Integration Tests | β |
| Validate airbyte-integrations/connectors/destination-snowflake/metadata.yaml | β |
| Connector version semver check | β |
| Connector version increment check | β |
| QA checks | β |
π View the logs here
βοΈ View runs for commit in Dagger Cloud
Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command
airbyte-ci connectors --name=destination-snowflake test
closes #30391
The underlying problem is that
EXECUTE IMMEDIATEthrows an error if you have a string or identifier containing the${bigram in your script block. Make two changes to support this:${is now replaced by__(double underscore) in table, schema, and column namesFor the original issue, this means we'll end up with a column
"__meta_ads}"... do we want to also turn that final}into an underscore?Notably: there's now a distinction between
escapeJsonIdentifierandescapeSqlIdentifier, because we still need to query the raw data as"_airbyte_data":"${foo}". This will be a merge conflict with Cynthia Yin (@cynthiaxyin) 's 9b1d1f5#diff-e6c24d3a3e554cd6197d2bc046dcf7b1926e25d01fdae9108b7a56fe306d8e91 :(