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

For replica identity full don't create pkey on snowflake #1478

Merged
merged 2 commits into from
Mar 12, 2024

Conversation

iskakaushik
Copy link
Contributor

@iskakaushik iskakaushik commented Mar 12, 2024

We create primary key indexes on the destination table in Snowflake CDC. For Replica Identity Full on a table, we assume all columns to be primary keys and replay that to the destination.
But if one of those columns on the source have null values, our normalize records step fails saying NULL result in a non-nullable column
This PR fixes this by not creating Primary Keys on the target for replica identity full

@heavycrystal
Copy link
Contributor

comment on why we're doing this would be nice

Copy link
Contributor

@Amogh-Bharadwaj Amogh-Bharadwaj left a comment

Choose a reason for hiding this comment

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

Functionally tested with replica identity full table. No constraints found on the destination

@Amogh-Bharadwaj
Copy link
Contributor

comment on why we're doing this would be nice

Added

@Amogh-Bharadwaj Amogh-Bharadwaj merged commit ad65c28 into main Mar 12, 2024
7 checks passed
@Amogh-Bharadwaj Amogh-Bharadwaj deleted the remove-pkey-for-ri-full branch March 12, 2024 19:54
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.

4 participants