-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Vector DB CDK: Delete cdc records #32496
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks, @flash1293 !
if current_stream.primary_key and current_stream.destination_sync_mode == DestinationSyncMode.append_dedup: | ||
metadata[METADATA_RECORD_ID_FIELD] = f"{stream_identifier}_{self._extract_primary_key(record, current_stream)}" | ||
return metadata | ||
if not current_stream.primary_key or not current_stream.destination_sync_mode == DestinationSyncMode.append_dedup: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit... Generally != or "is not" would be preferable for the "not equals" comparison.
Fixes #29827
This PR looks for the
_ab_cdc_deleted_at
field in records which signifies that this record got deleted in the source and does not produce any chunks out of it but deletes it in the destination