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

Destinations CDK: Set default namespace lower in the async framework call stack #38086

Conversation

edgao
Copy link
Contributor

@edgao edgao commented May 9, 2024

Copy link

vercel bot commented May 9, 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 May 10, 2024 5:18pm

@octavia-squidington-iii octavia-squidington-iii added the CDK Connector Development Kit label May 9, 2024
@edgao
Copy link
Contributor Author

edgao commented May 9, 2024

@gisripa I got sketched out by some of our catalog/stream handling when I was moving the default namespace stuff into CatalogParser. This PR pushes that logic from AsyncStreamConsumer into BufferEnqueue, which I think means:

  • all async framework code operates on the "real" record/state/stream_status messages (with null namespace)
  • and all destinations code still operates on the nonnull namespace

(I need to restack #38075 onto this pr now)

@edgao edgao force-pushed the edgao/better_default_namespace_tracking branch from 82331ab to ec47982 Compare May 9, 2024 16:19
@edgao edgao force-pushed the destinations_refreshes_cdk_changes branch from d361d45 to 3dfed9e Compare May 9, 2024 18:19
@edgao edgao force-pushed the edgao/better_default_namespace_tracking branch from ec47982 to 0c254d5 Compare May 9, 2024 18:19
@@ -244,20 +244,6 @@ abstract class AbstractJdbcDestination<DestinationState : MinimumDestinationStat
outputRecordCollector: Consumer<AirbyteMessage>
): SerializedAirbyteMessageConsumer? {
val database = getDatabase(getDataSource(config))
// Short circuit for non-v2 destinations.
Copy link
Contributor Author

@edgao edgao May 9, 2024

Choose a reason for hiding this comment

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

pre-dv2 destinations no longer exist. Delete this.

(sort of... technically they exist, but we'll just bring them up to scratch when we next work on them)

@edgao edgao force-pushed the edgao/better_default_namespace_tracking branch 4 times, most recently from 03051ed to d570a3d Compare May 9, 2024 18:44
@edgao edgao force-pushed the destinations_refreshes_cdk_changes branch from 3dfed9e to a3bb96c Compare May 10, 2024 00:06
@edgao edgao force-pushed the edgao/better_default_namespace_tracking branch from d570a3d to eb2deb2 Compare May 10, 2024 00:06
@edgao edgao force-pushed the destinations_refreshes_cdk_changes branch from a3bb96c to eca8010 Compare May 10, 2024 17:10
@edgao edgao force-pushed the edgao/better_default_namespace_tracking branch from eb2deb2 to 1571a5f Compare May 10, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants