Skip to content

[cdc] fix special regex characters unescaped in excluded table patterns#7619

Open
ziyanTOP wants to merge 1 commit intoapache:masterfrom
ziyanTOP:master
Open

[cdc] fix special regex characters unescaped in excluded table patterns#7619
ziyanTOP wants to merge 1 commit intoapache:masterfrom
ziyanTOP:master

Conversation

@ziyanTOP
Copy link
Copy Markdown

@ziyanTOP ziyanTOP commented Apr 10, 2026

Purpose

In combined mode, when building the excluding pattern for CDC table monitoring, special regex characters (e.g., $) in table names were not properly escaped. This caused incorrect table matching.

Fix: Use Pattern.quote() to escape the full qualified table name before inserting it into the regex pattern, ensuring exact literal matching.

#7617

Tests

@ziyanTOP ziyanTOP changed the title [cdc] Escape special regex characters in excluded table patterns[#7617](https://github.com/apache/paimon/issues/7617) [cdc] fix special regex characters unescaped in excluded table patterns Apr 10, 2026
@ziyanTOP ziyanTOP marked this pull request as ready for review April 10, 2026 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant