wq557520 opened a new issue, #8997:
URL: https://github.com/apache/seatunnel/issues/8997

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   
在MySQL-CDC里面先用正则过滤了一部分的表,然后再用TableMerge二次过滤,但是在TableMerge里面设置的取2025年3月的不生效,只有Source里面的取2025年表生效了
   
   ### SeaTunnel Version
   
   2.3.9
   
   ### SeaTunnel Config
   
   ```conf
   env {
     parallelism = 4
     job.mode = "STREAMING"
     checkpoint.interval = 10000
   }
   
   source {
     MySQL-CDC {
       plugin_output = "gaea_mysql_cdc"
       base-url = 
"jdbc:mysql://xxxxxxx/dbname?serverTimezone=GMT%2b8&useUnicode=true&characterEncoding=UTF-8&rewriteBatchedStatements=true&useSSL=false"
       username = "xxxxx"
       password = "xxxxxxxxx!@#"
       database-names = ["xxxxx"]
       table-pattern = "gaea.payorder2025\\d+"
     }
   }
   
   transform {
     Metadata {
       plugin_input = "gaea_mysql_cdc"
       plugin_output = "add_table_name_output"
       metadata_fields {
          Table = __tablename
       }
     }
   TableMerge {
       plugin_input = "add_table_name_output"
       plugin_output = "table_filter_output"
   
       table_match_regex = "gaea.payorder202503\\d+"
       database = "gaea"
       table = "ods_gaea__payorder"
     }
   }
   sink {
     StarRocks {
       plugin_input = "table_name_split_output"
       # StarRocks 连接配置
       base-url = "jdbc:mysql://xxxxxxxxxxxxx:9030/prod_reports"
       nodeUrls = ["xxxx:8030","xxxx:8030","xxxx:8030"]
       database = "xxxx"
   #  如果没有设置该值,则表名与上游表名相同
       table = "xxxxxxxx"
       username = "xxxxx"
       password = "xxxxxxxxxxxxxxxxx"   
      }
   
   }
   ```
   
   ### Running Command
   
   ```shell
   ./bin/seatunnel.sh --config /root/seatunnel/payorder.config --async -n 
ods_payorder
   ```
   
   ### Error Exception
   
   ```log
   NONE
   ```
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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