CloverDew commented on issue #13157: URL: https://github.com/apache/seatunnel/issues/13157#issuecomment-7152357346
Hi @wuhainan @DanielLeens , a status update from the Flink side: #11960 has been merged into dev, so its checkpointed data-plane protocol is now the baseline for this issue. The merged Flink protocol establishes the following invariants: - For each table, schema changes and their dependent data records travel through the same keyed, ordered path. Records using the old schema must drain before the schema change is applied, and records using the new schema must remain gated by that schema-control sequence. - Exactly one sink gate per table owns the physical DDL. Compact schema controls are broadcast to the sink writers and replayed in sequence after recovery. - Pending DDL, buffered records, applied control sequences, and the latest target schemas are maintained as checkpointed protocol state. One protocol boundary needs to be explicit: when Flink schema evolution is enabled, incremental.parallelism must remain 1. A value greater than 1 is rejected at job startup. This is a correctness invariant of the protocol, not a temporary implementation limitation. Sink writers may still run in parallel, but multiple incremental readers must not independently produce schema controls. Therefore, the “parallel execution” verification requested by this issue must be performed within this boundary. A transform-side implementation for this issue must not: - relax or bypass the incremental.parallelism = 1 validation; - introduce another schema coordinator or an independent control path; - allow parallel readers to emit schema controls independently; - bypass the per-table sink DDL owner; or - change the existing ordering, dependency-gating, checkpoint, or replay semantics. The remaining scope should make SQL Transform a protocol-preserving consumer of schema changes: 1. Consume each schema change in the established order. 2. Update the transform’s runtime input schema and recalculate its projection. 3. Emit the resulting output schema change before any dependent transformed records. 4. Avoid propagating upstream columns that are excluded by the SQL projection. 5. Fail clearly when a schema change cannot be transformed safely. 6. Preserve the existing control sequence and recovery semantics across checkpoints and savepoints. The SQL Transform behavior in #12284 may be used as a semantic reference, but the Flink implementation must integrate with the protocol from #11960 rather than importing or creating a separate coordination mechanism. If the transform implementation reveals a genuine need to change any of these protocol invariants, that change should first be handled as a separate design discussion. It should not be introduced as a workaround within this issue or its follow-up PR. -- 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]
