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

fix wrong partition key definition after legacy state migration #36719

Merged

Conversation

lazebnyi
Copy link
Collaborator

@lazebnyi lazebnyi commented Apr 1, 2024

What

In the original PR, it was defined that after migration, the state format would be a partition dictionary with a parent key. However, in the PerPartitionCursor class, we filter cursor values by partition key, potentially causing us to lose ignore state if it's formatted after migration.

How

I've updated the LegacyToPerPartitionStateMigration class by replacing _get_parent_key with _get_partition_field.

@lazebnyi lazebnyi requested a review from a team as a code owner April 1, 2024 12:01
Copy link

vercel bot commented Apr 1, 2024

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

1 Ignored Deployment
Name Status Preview Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Apr 1, 2024 0:01am

@lazebnyi lazebnyi merged commit 604a2df into master Apr 1, 2024
30 checks passed
@lazebnyi lazebnyi deleted the lazebnyi/low_code_legacy_state_parent_key_to_partition_field branch April 1, 2024 15:08
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