Skip to content
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 redshift: Switch back to jooq execution; add e2e special characters test #34562

Merged
merged 10 commits into from
Feb 9, 2024

Conversation

edgao
Copy link
Contributor

@edgao edgao commented Jan 26, 2024

followup to #34544.

  • Add testcases
    • verify special character handling
    • and exercise a larger sync (this test case takes <1.5 minutes on my laptop, so only slightly slower than the other test cases in this file)
  • Revert redshift to using jooq execution instead of jdbc execution

Arguably these test cases belong in DATs, not T+D tests. At some point we should really reenable those :P

I'll submit two more PRs stacked on this one for updating the snowflake+bigquery expectedrecords files.

Copy link

vercel bot commented Jan 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Feb 9, 2024 6:53pm

@octavia-squidington-iii octavia-squidington-iii added area/connectors Connector related issues area/documentation Improvements or additions to documentation CDK Connector Development Kit labels Jan 26, 2024
Copy link
Contributor

github-actions bot commented Jan 26, 2024

Before Merging a Connector Pull Request

Wow! 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:

  • PR name follows PR naming conventions
  • Breaking changes are considered. If a Breaking Change is being introduced, ensure an Airbyte engineer has created a Breaking Change Plan.
  • Connector version has been incremented in the Dockerfile and metadata.yaml according to our Semantic Versioning for Connectors guidelines
  • You've updated the connector's metadata.yaml file any other relevant changes, including a breakingChanges entry for major version bumps. See metadata.yaml docs
  • Secrets in the connector's spec are annotated with airbyte_secret
  • All documentation files are up to date. (README.md, bootstrap.md, docs.md, etc...)
  • Changelog updated in docs/integrations/<source or destination>/<name>.md with an entry for the new version. See changelog example
  • Migration guide updated in docs/integrations/<source or destination>/<name>-migrations.md with an entry for the new version, if the version is a breaking change. See migration guide example
  • If set, you've ensured the icon is present in the platform-internal repo. (Docs)

If the checklist is complete, but the CI check is failing,

  1. Check for hidden checklists in your PR description

  2. Toggle the github label checklist-action-run on/off to re-run the checklist CI.

@edgao edgao force-pushed the edgao/dv2/special_characters branch from 1430936 to c23c973 Compare January 26, 2024 16:17
@octavia-squidington-iii octavia-squidington-iii removed the area/documentation Improvements or additions to documentation label Jan 26, 2024
@edgao edgao marked this pull request as ready for review January 26, 2024 16:41
@edgao edgao requested a review from a team as a code owner January 26, 2024 16:41
// but need to not escape bound strings.
// Instead, we force jooq to always inline params,
// and always call escapeStringLiteral() on the string values.
new Settings().withStatementType(StatementType.STATIC_STATEMENT));
Copy link
Contributor

@gisripa gisripa Jan 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was confused reading their docs. This will switch from prepared statement to inlined statement.
There is another setting .withParamType(ParamType.INLINED) which i think probably is what we are intending to do ? maybe the test will verify the expectation.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm. just saw your resolved comment.

@edgao
Copy link
Contributor Author

edgao commented Jan 30, 2024

/publish-java-cdk

🕑 https://github.com/airbytehq/airbyte/actions/runs/7714955845

# Conflicts:
#	airbyte-cdk/java/airbyte-cdk/README.md
#	airbyte-cdk/java/airbyte-cdk/core/src/main/resources/version.properties
#	airbyte-integrations/connectors/destination-redshift/metadata.yaml
#	docs/integrations/destinations/redshift.md
@edgao
Copy link
Contributor Author

edgao commented Feb 9, 2024

/publish-java-cdk

🕑 https://github.com/airbytehq/airbyte/actions/runs/7846841570
✅ Successfully published Java CDK version=0.20.0!

@edgao edgao enabled auto-merge (squash) February 9, 2024 16:44
@edgao edgao force-pushed the edgao/dv2/special_characters branch from 8aefa29 to e2e6523 Compare February 9, 2024 17:49
@edgao edgao merged commit 2b2408a into master Feb 9, 2024
21 checks passed
@edgao edgao deleted the edgao/dv2/special_characters branch February 9, 2024 19:08
xiaohansong pushed a commit that referenced this pull request Feb 13, 2024
jatinyadav-cc pushed a commit to ollionorg/datapipes-airbyte that referenced this pull request Feb 21, 2024
jatinyadav-cc pushed a commit to ollionorg/datapipes-airbyte that referenced this pull request Feb 26, 2024
jatinyadav-cc pushed a commit to ollionorg/datapipes-airbyte that referenced this pull request Feb 26, 2024
jatinyadav-cc pushed a commit to ollionorg/datapipes-airbyte that referenced this pull request Feb 26, 2024
xiaohansong pushed a commit that referenced this pull request Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation CDK Connector Development Kit checklist-action-run connectors/destination/redshift
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants