davidzollo opened a new issue, #13404: URL: https://github.com/apache/seatunnel/issues/13404
### Search before asking - [x] Searched existing Apache SeaTunnel issues and pull requests for ODCS and data contract validation. ### Description A versioned data contract gives producers and consumers a shared definition of a dataset's schema, quality expectations, and service levels. SeaTunnel already represents table schemas through `CatalogTable` and can propagate CDC schema changes on supported connector paths. An ODCS compatibility check would let pipeline operators compare a schema against the consumer's declared expectations before the pipeline writes data or applies a schema change downstream. This issue proposes a feasibility study. The first proof of concept could use a single table in a MySQL-CDC to JDBC pipeline with a versioned ODCS YAML file. - Map the contract's field names, types, and nullability to SeaTunnel's table schema. Document type mappings that are ambiguous or unsupported. Assess whether field semantics and ownership can be preserved as metadata. - Check the initial schema before the first sink write. For CDC, evaluate a check before sink-side DDL is applied, using the schema that the change would produce. Report the contract version, table, field, and reason for a mismatch. - Compare running checks in CI with Data Contract CLI against an opt-in runtime check in SeaTunnel. CI can validate a contract before deployment, while runtime checks could catch drift that appears after a CDC job starts. Evaluate deployment, dependency, and licensing implications before choosing an integration. - Record which quality and freshness checks can run externally and which would need additional runtime support. Keep existing job behavior when no contract is configured. The expected output is a mapping and compatibility table, a small reproducible proof of concept, and a recommendation on whether to proceed with a SeaTunnel integration. ### Usage Scenario An `orders` pipeline has a contract that requires `order_id` to remain non-null and `amount` to keep its declared decimal precision and scale. The proof of concept should show that the initial matching schema passes, the addition of an optional column passes under a policy that permits it, and dropping a required field or narrowing the declared decimal type is reported before the corresponding sink DDL is applied. ### Related issues - #11355 tracks visibility into schema evolution decisions. - #11785 tracks schema evolution coordination across parallel sink writers. - [SeaTunnel schema evolution documentation](https://github.com/apache/seatunnel/blob/dev/docs/en/introduction/configuration/schema-evolution.md) - [Open Data Contract Standard](https://github.com/bitol-io/open-data-contract-standard) - [Data Contract CLI](https://cli.datacontract.com/) -- 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]
