mongo-kafka icon indicating copy to clipboard operation
mongo-kafka copied to clipboard

Implemented a new id strategy in the Sink Connector

Open crossleyjuan opened this issue 3 years ago • 4 comments

Recently I'd a request from my customer where they explained that when the _id is provided in the kafka stream there's no way to convert this to ObjectId to keep it consistent with the other records in the collection, checking the different Id Providers it looks like there's no implementation of the ObjectId when it's provided, as such I've implemented a custom Id Provider that receives the string either in the Key or in the Value and converts this to an ObjectId, this way the customer will keep consistency with the previous records created using standard driver.

crossleyjuan avatar Nov 22 '21 15:11 crossleyjuan

hi, thanks for the PR @crossleyjuan , we have exactly the same need / constraints in our actual product.

Any guys in the mongodb core team can evaluate this pr / need ?

M3lkior avatar Mar 09 '22 10:03 M3lkior

@crossleyjuan That's really great !! Waiting to be merged :)

fabienOuedraogo avatar Mar 09 '22 11:03 fabienOuedraogo

Hi there, Any chance this PR could be reviewed soon?

wesleysantos-ws avatar Jun 21 '22 03:06 wesleysantos-ws

Hi team, Any chance this PR could be reviewed?

belldoor avatar Sep 01 '23 02:09 belldoor