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

bulk-cdk-toolkit-extract-jdbc: add namespaceKind constant #44767

Merged
merged 3 commits into from
Aug 27, 2024

Conversation

postamar
Copy link
Contributor

What

This came to be after thinking about #44607 . Fundamentally, there's an ambiguity whether namespace refers to a JDBC schema or a JDBC catalog. This PR makes it configurable via a micronaut property. For example, for source-mysql-v2, add airbyte.connector.extract.jdbc.namespace-kind: catalog to the resource file application.yml. See airbyte-enterprise for other examples of similarly configured properties: https://github.com/airbytehq/airbyte-enterprise/blob/master/airbyte-integrations/connectors/source-firetruck/src/main/resources/application.yml

How

Adds a namespaceKind field to the Constants Micronaut singleton. Makes the JdbcMetadataQuerier.Factory depend on that singleton.

Review guide

The first commit contains the actual change. The next commit moves the Constants object out of the read and into the jdbc module but otherwise is a purely mechanical change.

User Impact

None

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

@postamar postamar requested a review from a team as a code owner August 26, 2024 14:30
Copy link

vercel bot commented Aug 26, 2024

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

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Aug 27, 2024 5:51pm

@octavia-squidington-iii octavia-squidington-iii added the CDK Connector Development Kit label Aug 26, 2024
@postamar postamar mentioned this pull request Aug 26, 2024
2 tasks
@postamar postamar requested a review from xiaohansong August 27, 2024 17:18
Copy link
Contributor

@xiaohansong xiaohansong left a comment

Choose a reason for hiding this comment

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

thanks!

@postamar postamar merged commit 67e82e1 into master Aug 27, 2024
31 checks passed
@postamar postamar deleted the postamar/jdbc-metadata-query-namespace-type branch August 27, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CDK Connector Development Kit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants