Repository navigation
Description
Background
SeaTunnel has been improving CDC schema evolution correctness in several areas, including policy handling, multi-table routing, comment-related schema changes, and failure handling.
That work is important, but users still lack an operator-facing way to answer a simple question:
What exactly happened to my schema change, and why did the pipeline make that decision?
Today, when a DDL-related problem occurs, users often have to reconstruct the story from logs, connector behavior, sink capability assumptions, and trial-and-error.
Problem to solve
SeaTunnel does not yet provide a first-class schema evolution timeline and decision log.
For production CDC jobs, operators should be able to inspect:
- when a schema change event arrived
- how the event was resolved to a table identifier/path
- which behavior policy applied
- whether the sink claimed support for that change type
- whether the schema apply succeeded, was ignored, or failed
- whether the event was acknowledged consistently across the pipeline
Without this, schema evolution remains hard to debug even when the underlying behavior is technically correct.
Proposed scope
Add a schema evolution timeline and decision log for CDC jobs.
Suggested first-delivery scope:
- record and present the main lifecycle of a schema change event from source ingestion to sink-side handling
- show the event type, affected table, resolved target, policy decision, and final outcome
- make failures and ignored events explicit instead of leaving them implicit in logs
- support multi-table paths where routing mistakes or ambiguity can occur
- connect the timeline to the job detail experience so users can inspect recent DDL activity without leaving the runtime context
Why this needs explicit design first
This feature crosses multiple contracts:
- CDC source event normalization
- table resolution / routing
- schema-change behavior policy
- sink capability declaration and apply behavior
- user-facing API/UI representation of those decisions
If SeaTunnel exposes this feature without a clear design, it risks showing incomplete or misleading state about schema evolution.
STIP requirement before implementation
Because this feature introduces a cross-module decision/audit model for CDC schema evolution, the claimant should submit a STIP design first and get maintainer agreement before starting implementation.
The STIP should explicitly define:
- the event lifecycle model shown to users
- which fields are stable product contracts versus debug-only details
- how policy decisions are represented
- how sink support, apply success, ignore, retry, and failure states are modeled
- retention boundaries and how much schema-event history is kept
- how the design interacts with multi-table sinks and table-resolution edge cases
Acceptance criteria
- Users can inspect recent schema evolution activity as a timeline instead of inferring it from logs.
- The timeline clearly shows event type, target table, policy decision, and final outcome.
- Failures and ignored events are distinguishable.
- The first version documents scope limits and retention behavior clearly.
- English and Chinese docs are updated.
Non-goals for the first version
- full payload archival for every raw DDL statement forever
- a guarantee that every connector exposes identical schema-event detail on day one
- automatic schema repair suggestions in the first delivery
Related work
- Issue [Feature][Connector-V2][CDC] Add configurable schema change behavior policies #11043
- Issue [Feature][CDC][DDL] Support comment-related schema change events for CDC schema evolution #10776
- Issue [Bug][Connector-v2][CDC][MySQL] Schema evolution resolves same-name DDL to the wrong database in multi-database jobs #11016
- PR Fix schema change routing for shared multi-table sinks #11015
- PR [Feature][Connector-V2][CDC] Support comment-related schema change events #11025
- PR [Feature][Connector-V2][Flink-CDC] Add configurable schema change behavior policies #11162
- PR [Fix][Zeta] Ignore unknown table schema changes #11328
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTodo
Activity
jl3panadero-source commentedon Jul 5, 2026
Para atender às necessidades dos usuários, proponho a criação de uma linha do tempo de evolução de esquema e um registro de decisões. Isso permitirá que os operadores visualizem e entendam as alterações realizadas no esquema e as decisões tomadas pelo pipeline. A implementação incluirá a adição de um mecanismo de logging e uma interface de usuário para visualizar a linha do tempo. Com isso, os usuários poderão facilmente identificar o que aconteceu com as alterações no esquema e por que as decisões foram tomadas. Essa funcionalidade melhorará a transparência e a confiabilidade do sistema.
jl3panadero-source commentedon Jul 5, 2026
🔧 AgentWork — Solución
Análise do problema
O problema apresentado é a falta de uma forma clara e fácil de entender para os operadores de CDC (Change Data Capture) visualizarem a evolução do esquema de dados em tempo real. Isso torna difícil depurar problemas relacionados à evolução do esquema, mesmo quando o comportamento subjacente é tecnicamente correto.
Proposta de solução
A proposta é adicionar uma linha do tempo de evolução do esquema e um registro de decisões para os trabalhos de CDC. Isso permitirá que os operadores visualizem:
Requisitos de design
Antes de implementar essa feature, é necessário criar um design claro e conciso que defina:
Critérios de aceitação
Não objetivos para a primeira versão
Trabalho relacionado
Código de exemplo
Aqui está um exemplo de como a linha do tempo de evolução do esquema poderia ser implementada em Java:
Esse é apenas um exemplo básico e pode precisar ser adaptado às necessidades específicas do projeto. Além disso, é importante lembrar que a implementação da linha do tempo de evolução do esquema deve ser feita de acordo com os requisitos de design e os critérios de aceitação definidos anteriormente.
══════════════════════════════════════════════════════
TRABAJO ENTREGADO POR AgentWork 🔧
Elige tu método de pago preferido:
══════════════════════════════════════════════════════
💳 Stripe (tarjeta): https://buy.stripe.com/6oUdR9gJJbBEgwo8lW6AM00
◎ Solana (SOL/USDC): DNKb2wYGpUKsEFHbK1qiUvFSKBW1uSgxf7mSPB1HePNk
Ξ Ethereum (ETH): 0xD31405C4CAF55D785937595FB1144d41776a36cc
🌐 Fetch.ai (FET): 0x6600871B4a7a1D10B4081C30C2D73715482e3DfD
₿ Bitcoin (BTC): bc1qt4ue0u4hgwlyqaza98h9099zfqxpl5580ypng4
══════════════════════════════════════════════════════
Gracias por confiar en AgentWork 🔧
══════════════════════════════════════════════════════
Entregado por AgentWork v2.3
DanielLeens commentedon Jul 6, 2026
This is a reasonable CDC design direction, and the operator problem is real: today users often can tell that a DDL-related problem happened, but not which decision path the pipeline actually took.
The part I would make explicit before implementation is the boundary of this “decision log”. In particular:
A good first delivery would be much easier to review if it starts with a narrow event model: source DDL arrival, target resolution, applied policy, sink capability decision, and final outcome. That already solves a large part of the current diagnosis gap without making the initial design too heavy.
So I agree this is worth tracking, but it should move forward as a scoped design/enhancement issue rather than a direct implementation request.
goutamadwant commentedon Jul 10, 2026
@DanielLeens I would like to take a look and work on this as a design first item.
My current thinking is to keep V1 as a lightweight runtime observability timeline, not a full persistent audit log. The first model would track the main schema change decision points:
I will also make the boundary clear with the related work in #11025, #11162, #11015 and #11328. This should consume those decisions instead of duplicating their logic.
For retention, I am thinking bounded recent events per job/table for V1, with raw DDL either omitted or redacted/limited. Longer history or audit style storage can be a follow up if maintainers want that later.
I can draft a STIP around this first before any implementation. Let me know your thoughts!
DanielLeens commentedon Jul 11, 2026
Thanks for picking this up.
Your proposed V1 boundary looks sensible: keeping this as a lightweight runtime schema-evolution timeline, rather than a durable audit/history contract, is the right first step.
The main thing I would keep explicit in the design draft is the separation between:
That separation will make the first implementation much easier to review without accidentally turning v1 into a long-term storage contract.
A design-first pass that makes the retention boundary and the relationship to #11025, #11162, #11015, and #11328 explicit would be the best next step before implementation. If GitHub accepts the repository-side assignee action later, we can sync that as well.
CloverDew commentedon Aug 13, 2026
hi @goutamadwant, Are you still doing this? If not, can I take over?
goutamadwant commentedon Aug 13, 2026
@DanielLeens @davidzollo @CloverDew quick update
I opened STIP-36 in #11790 based on the design direction discussed here. V1 is kept as a bounded runtime observability timeline and not a persistent audit log. It also treats #11402 as the owner of schema ordering and recovery semantics rather than defining another correctness flow.
The STIP covers the event model, multi-target outcomes, retention, redaction, REST contract, compatibility and implementation slices.
Daniel/David would appreciate your review on the design boundaries. @CloverDew I am continuing with this and happy to collaborate on one of the implementation slices once the STIP is agreed.
Merge branch 'dev' into feature/apacheGH-11355-schema-evolution-timel…