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: DiscoverOperation supports isResumable #43406

Merged
merged 2 commits into from
Aug 8, 2024

Conversation

postamar
Copy link
Contributor

@postamar postamar commented Aug 8, 2024

What

Add support for RFR in the Bulk CDK.
Also rename the MetadataQuerier::primaryKeys method to primaryKey, which I forgot to do in a previous change.

Fixes https://github.com/airbytehq/airbyte-internal-issues/issues/9043

How

Update the airbyte-protocol dependency and populate the isResumable flag in the stream object during a DISCOVER operation.

Review guide

User Impact

None

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

Copy link

vercel bot commented Aug 8, 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) Visit Preview Aug 8, 2024 8:44pm

@octavia-squidington-iii octavia-squidington-iii added the CDK Connector Development Kit label Aug 8, 2024
@postamar postamar requested a review from a team August 8, 2024 19:59
@@ -68,6 +67,7 @@ class DiscoverOperation(
airbyteStream.withSourceDefinedPrimaryKey(
if (isValidPK) discoveredStream.primaryKeyColumnIDs else listOf(),
)
airbyteStream.isResumable = airbyteStream.sourceDefinedPrimaryKey.isNotEmpty()
Copy link
Contributor

Choose a reason for hiding this comment

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

A pleasantly concise change!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also not one that will age particularly well; but I prefer to punt rather than anticipating future needs. Conceivably, a stream may not have a PK and yet still be resumable, and vice-versa.

@postamar
Copy link
Contributor Author

postamar commented Aug 8, 2024

CI is failing on integration tests, but nothing alarming. I'll adjust and merge.

@postamar postamar enabled auto-merge (squash) August 8, 2024 20:45
@postamar postamar merged commit a16cc58 into master Aug 8, 2024
27 checks passed
@postamar postamar deleted the postamar/bulk-cdk-bump-airbyte-protocol branch August 8, 2024 20:47
LouisAuneau pushed a commit to LouisAuneau/airbyte that referenced this pull request Aug 13, 2024
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