leonardBang commented on code in PR #4540: URL: https://github.com/apache/flink-cdc/pull/4540#discussion_r4060674008
########## docs/content.zh/docs/core-concept/schema-evolution.md: ########## @@ -75,6 +75,29 @@ pipeline: 在此模式下,所有架构更改事件都将被 `SchemaOperator` 默默接收,并且永远不会尝试将它们应用于下游接收器。 当您的下游接收器尚未准备好进行任何架构更改,但想要继续从未更改的列中接收数据时,这很有用。 +## 已有目标表的安全 Schema 扩展 + +设置 Sink 选项 `existing-table.schema-expansion.mode` 来控制框架在初始 `CreateTableEvent` 遇到已有目标表时的处理方式,默认值为 `OFF`。对于实现了该能力的 Sink,框架可能将缺失的普通非键物理列按 nullable 补充,并安全拓宽普通非键列类型;派生的 DDL 事件会记录在日志中。 + +| 模式 | 已有目标表 | 目标表不存在 | 失败处理 | +|---|---|---|---| +| `OFF` | 不检查、不扩展,保持 Sink 原行为 | Sink 原生建表 | 不适用 | Review Comment: `OFF` looks like a value of boolean config, could you introduce a new value ? -- 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]
