yuxiqian opened a new pull request, #4545:
URL: https://github.com/apache/flink-cdc/pull/4545

   ## What is the purpose of this pull request?
   
   Prior to Flink CDC 3.6, route rules were matched case-insensitively.
   
   In Flink CDC 3.6, 
[FLINK-38779](https://issues.apache.org/jira/browse/FLINK-38779) replaced 
`Selectors` with Java regular expressions in `TableIdRouter` to support 
standard RegExp replacement rules. However, the new `Pattern` was compiled 
without `Pattern.CASE_INSENSITIVE`, unintentionally changing the long-standing 
route matching behavior to case-sensitive.
   
   As a result, existing route rules may no longer match when the database or 
table name casing differs from the emitted `TableId`. The source table then 
falls through without being routed, which is a backward-incompatible regression 
for jobs upgraded to Flink CDC 3.6.
   
   This PR restores the case-insensitive route matching behavior used before 
Flink CDC 3.6 while retaining the RegExp replacement support introduced by 
FLINK-38779.
   
   ## Brief change log
   
   Compile route rule patterns with `Pattern.CASE_INSENSITIVE` to restore the 
original behavior.
   
   ---
   
   ## Verifying this change
   
   Unit tests added.
   
   ## Documentation
   
   - Does this pull request introduce a new feature? no
   - If yes, how is the feature documented? not applicable
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (OpenAI Codex)
   
   Generated-by: OpenAI Codex (gpt-5.6-sol)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to