[ 
https://issues.apache.org/jira/browse/FLINK-40152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18097733#comment-18097733
 ] 

Xin Chen edited comment on FLINK-40152 at 7/21/26 3:33 AM:
-----------------------------------------------------------

[~bruceqiu] Hi there, I can assign this to you, but when I tried to verify your 
fix, I couldn't find the `tableFilters.setDataCollectionFilters` method. Thanks 
for your patience in explaining this:

!image-2026-07-21-11-31-30-773.png!
 

Debezium-core version is:  debezium-core-1.9.8.Final
 


was (Author: JIRAUSER298666):
[~bruceqiu] Hi there, I can assign this to you, but when I tried to verify your 
fix, I couldn't find the `tableFilters.setDataCollectionFilters` method. Thanks 
for your patience in explaining this:

!image-2026-07-21-11-31-30-773.png!
 
 

> PostgreSQL CDC connector captures case-variant tables when only one is 
> specified
> --------------------------------------------------------------------------------
>
>                 Key: FLINK-40152
>                 URL: https://issues.apache.org/jira/browse/FLINK-40152
>             Project: Flink
>          Issue Type: Bug
>          Components: Flink CDC
>    Affects Versions: cdc-3.5.0, cdc-3.6.0
>            Reporter: Xin Chen
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: image-2026-07-21-11-31-30-773.png
>
>
> == Problem ==
> When PostgreSQL has two tables with the same name but different cases (e.g., 
> `mytable` and `MyTable`), specifying only one table in `table-name` causes 
> Flink CDC to capture BOTH tables.
> == Root Cause ==
> Debezium's `table.include.list` uses `Pattern.CASE_INSENSITIVE` for regex 
> matching by default (see `io.debezium.util.Strings#includes()`). This causes 
> `public.mytable` to also match `public.MyTable`.
> The issue is in `TableDiscoveryUtils.listTables()`:
> {code:java}
> Set<TableId> capturedTables =
>     allTableIds.stream()
>         .filter(t -> tableFilters.dataCollectionFilter().isIncluded(t))
>         .collect(Collectors.toSet()); {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to