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

Expose record metadata to mongo-cdc #476

Closed
bobby-richard opened this issue Sep 29, 2021 · 3 comments
Closed

Expose record metadata to mongo-cdc #476

bobby-richard opened this issue Sep 29, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@bobby-richard
Copy link
Contributor

Is your feature request related to a problem? Please describe.
It's possible to capture data from multiple mongo databases and collections with the connector, but there is no way to know which database or collection each record came from.

Describe the solution you'd like
The official flink debezium format provides a way to read debezium metadata fields when creating a table DDL (https://nightlies.apache.org/flink/flink-docs-release-1.13/docs/connectors/table/formats/debezium/#available-metadata). Something similar could be done to expose db and collection from the mongo source connector document.

I'm happy to take a stab at this if someone could point me in the right direction.

@bobby-richard bobby-richard added the enhancement New feature or request label Sep 29, 2021
@fsk119
Copy link
Member

fsk119 commented Sep 29, 2021

I think you can take a look at the FLIP about the design of the metadadta column. Flink has an good example in the PR[2].

[1] https://cwiki.apache.org/confluence/display/FLINK/FLIP-107%3A+Handling+of+metadata+in+SQL+connectors
[2] apache/flink#13732

@wuchong
Copy link
Member

wuchong commented Oct 9, 2021

I'm going to support metadata columns for mysql-cdc in the next days, see #249. I think it can be a good example for other connectors.

@leonardBang
Copy link
Contributor

Implemented in 65665eb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants