gilboom opened a new issue, #294: URL: https://github.com/apache/doris-flink-connector/issues/294
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues. ### Version Doris flink connector: flink-doris-connector-1.17-1.5.0 ### What's Wrong? When I use `--single-sink` flag to start my flink job, the task will report error: ```text Caused by: java.lang.IllegalArgumentException: Can't find any matched tables, please check your configured database-name: [svc_dw] and table-name: [((svc_dw)\.(null))(?!(svc_dw\.(upload_histories|supported_schemas))$)] ``` I try to figure out the question and I found the code that causes the question: ```java protected String getSyncTableList(List<String> syncTables) { if (!singleSink) { return syncTables.stream() .map(v -> getTableListPrefix() + "\\." + v) .collect(Collectors.joining("|")); } // includingTablePattern and ^excludingPattern String includingPattern = String.format("(%s)\\.(%s)", getTableListPrefix(), includingTables); if (StringUtils.isNullOrWhitespaceOnly(excludingTables)) { return includingPattern; } else { String excludingPattern = String.format("?!(%s\\.(%s))$", getTableListPrefix(), excludingTables); return String.format("(%s)(%s)", includingPattern, excludingPattern); } } ``` If I use `--excluding-tables` flag but not use `--including-tables` flag with `--single-sink` flagļ¼the mysql flink cdc source will get the `--table-name` with value: `((svc_dw)\.(null))(?!(svc_dw\.(upload_histories|supported_schemas))$)` ### What You Expected? Start the flink job successfully with `--single-sink` and `--excluding-tables` flags. ### How to Reproduce? Start a flink job with `--single-sink` and `--excluding-tables` flags and without `--including-tables` flag. ### Anything Else? _No response_ ### Are you willing to submit PR? - [X] 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
