linjianchang commented on code in PR #3844:
URL: https://github.com/apache/flink-cdc/pull/3844#discussion_r1914672737
##########
docs/content.zh/docs/connectors/pipeline-connectors/mysql.md:
##########
@@ -77,6 +77,32 @@ pipeline:
parallelism: 4
```
+## 多数据源示例
+
+单数据源,从多个 MySQL 读取数据同步到 Doris 的 Pipeline 可以定义如下:
+
+```yaml
+source:
+ type: mysql_mutiple
Review Comment:
> ```yaml
> sources:
> - type: mysql
> name: mysql-instance-00
> hostname: localhost
> port: 3306
> ....
> - type: mysql
> name: mysql-instance-01
> hostname: localhost
> port: 3307
> ....
> ```
>
> And the corresponding PipelineDef looks like this:
>
> ```java
> public class PipelineDef {
> @Nullable private List<SourceDef> sources;
> private final SourceDef source;
> ...
> }
> ```
>
> If the `sources` is not null then we use these data sources, otherwise we
use `source` to build up DataStream. In this way, the previous usage will not
be affected. I want to hear your opinion. @yuxiqian @ChaomingZhangCN
It has been modified according to comments, please review it again, thanks!
--
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]