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

[Feature][CDCSOURCE] Supports filter data #2388

Open
3 tasks done
stdnt-xiao opened this issue Oct 14, 2023 · 2 comments
Open
3 tasks done

[Feature][CDCSOURCE] Supports filter data #2388

stdnt-xiao opened this issue Oct 14, 2023 · 2 comments
Labels
Invalid Invalid
Milestone

Comments

@stdnt-xiao
Copy link
Contributor

stdnt-xiao commented Oct 14, 2023

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Description

Expect to support data filtering to achieve bidirectional synchronization of multi-center databases. Use filtering functionality to prevent data loops. like:
https://www.confluent.io/blog/sync-databases-and-remove-silos-with-kafka-cdc/

My current idea is to improve the parameters in 'flink-kafka-connector' and filter the data based on 'sink.filter.pattern' rules in the 'write' function.

Have any better suggestions?
thx.

EXECUTE CDCSOURCE jobname WITH (
'connector' = 'mysql-cdc',
'hostname' = '127.0.0.1',
'port' = '3306',
'username' = 'dlink',
'password' = 'dlink',
'checkpoint' = '3000',
'scan.startup.mode' = 'initial',
'parallelism' = '1',
'table-name' = 'test.student,test.score',
'sink.connector'='datastream-kafka',
'sink.brokers'='127.0.0.1:9092',
'sink.filter.pattern': '$[?(@.SRC == "SQLSRV")]',
'sink.filter.model": 'exclude'
)

Use case

No response

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@stdnt-xiao stdnt-xiao added the Waiting for reply Waiting for reply label Oct 14, 2023
@stdnt-xiao stdnt-xiao changed the title [Feature][CDCSOURCE] supports filter datarow [Feature][CDCSOURCE] Supports filter data Oct 14, 2023
@aiwenmo aiwenmo removed the Waiting for reply Waiting for reply label Oct 15, 2023
@aiwenmo
Copy link
Contributor

aiwenmo commented Oct 15, 2023

Worth a try.

Copy link

github-actions bot commented Feb 1, 2024

Hello, this issue has not been active for more than 30 days. This issue will be closed in 7 days if there is no response. If you have any questions, you can comment and reply.

你好, 这个 issue 30 天内没有活跃,7 天后将关闭,如需回复,可以评论回复。

@github-actions github-actions bot added the Invalid Invalid label Feb 1, 2024
@Zzm0809 Zzm0809 added this to the Roadmap milestone Mar 13, 2024
@Zzm0809 Zzm0809 moved this to Discussion in Dinky Roadmap Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Invalid Invalid
Projects
Status: Discussion
Development

No branches or pull requests

3 participants