-
Notifications
You must be signed in to change notification settings - Fork 65
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
Fixes #50 (Handle Deleted documents (Good First Issue)) #80
Conversation
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.
Thanks For PR!
Some Comments
var documentToProcess map[string]any | ||
switch record.OperationType { | ||
case "delete": | ||
documentToProcess = map[string]any{ |
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.
document to process will only contain id (id of deleted object) in case of delete.
|
||
if documentToProcess != nil { | ||
handleObjectID(documentToProcess) | ||
rawRecord := types.CreateRawRecord(utils.GetKeysHash(documentToProcess, constants.MongoPrimaryID), documentToProcess, 0) |
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.
here, the last argument of CreateRawRecord takes the delete timestamp which can be taken from CDC delete metadata.
@kuldeep27396 can you please update here? |
@kuldeep27396 closing this as its stale, and already being implemented as a part of iceberg writer. |
Sure, Thanks..Will try to check another issues when I find some time..
…On Sat, Mar 22, 2025 at 3:45 PM Shubham Baldava ***@***.***> wrote:
@kuldeep27396 <https://github.com/kuldeep27396> closing this as its
stale, and already being implemented as a part of iceberg writer.
—
Reply to this email directly, view it on GitHub
<#80 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOXQDBTG3AUAR7KQSIJRC3T2VUZ5HAVCNFSM6AAAAABWJIGNECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBVGE4TMNZZGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
[image: shubham19may]*shubham19may* left a comment (datazip-inc/olake#80)
<#80 (comment)>
@kuldeep27396 <https://github.com/kuldeep27396> closing this as its
stale, and already being implemented as a part of iceberg writer.
—
Reply to this email directly, view it on GitHub
<#80 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOXQDBTG3AUAR7KQSIJRC3T2VUZ5HAVCNFSM6AAAAABWJIGNECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONBVGE4TMNZZGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Description
This PR implements proper handling of deleted documents in MongoDB Change Data Capture (CDC). Previously, the system only handled insert and update operations while skipping delete operations. The implementation now properly captures and processes delete operations in the CDC stream, including metadata such as deletion timestamp and namespace information.
Fixes #50 (Handle Deleted documents (Good First Issue))
Type of change
How Has This Been Tested?
NA
Screenshots or Recordings
N/A - Backend changes only
Related PR's:
#51
Key Changes: