[Bug] Incorrectly including tables matching excludingTablePattern in combined mode cdc #4163
Open
2 tasks done
Labels
bug
Something isn't working
Search before asking
Paimon version
master
Compute Engine
flink
Minimal reproduce step
What doesn't meet your expectations?
non_pk_101 obviously matches the excludingTablePattern and needs to be excluded. Since non_pk_101 is a non-primary key table, MySqlChunkSplitter will report an error:
Caused by: org.apache.flink.table.api.ValidationException: Incremental snapshot for tables requires primary key, but table cdc_test.non_pk_101 doesn't have primary key.
combinedModeTableList func uses excluding pattern ?!(^db\.tbl$)|(^...$),and this will miss the newly table that matches excludingTablePattern and created when starting cdc job.
Anything else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: