sainimal1ba-hue commented on issue #13372: URL: https://github.com/apache/seatunnel/issues/13372#issuecomment-7062247890
> Classification: F / API and Connector-V2 DDL default-value contract (STIP-46). > > Thank you for turning the [#13217](https://github.com/apache/seatunnel/issues/13217) discussion into a bounded proposal. The closed v1 vocabulary and the MySQL-to-MySQL first path make the problem reviewable; this STIP remains **Under Review** and is not an implementation authorization yet. > > Before code is split out, please record three decisions in the STIP: (1) the exact persistence and restore compatibility boundary for an additive default-value field in the table/column model; (2) how JDBC metadata and CDC fields distinguish typed literals, explicit `NULL`, current-time tokens, and unsupported expressions without dialect re-parsing; and (3) the rollout rule for the proposed default failure behavior, including the existing-job compatibility and migration/documentation path. > > The first implementation should remain limited to the shared model plus one MySQL catalog/CDC-to-MySQL DDL path. Its acceptance matrix needs normal literals, explicit `NULL`, all supported current-time tokens, an unsupported expression under both policies, and an end-to-end auto-create-table check. Other connectors should not be changed until that contract is accepted. Thanks for the review. All three decisions are recorded in the STIP now. 1. Persistence boundary: the typed default sits beside the existing column default field in v1. Columns built from a raw string keep working and stay uninterpreted until they pass through the converter, copies and schema-change events carry both fields, older payloads restore as raw-string-only and get classified like any other input, and absent default versus explicit NULL keep separate representations through replay and upgrade. 2. Classification: one generic rule set driven by the column's type, with no dialect parsing on the way in. The accepted literal types are listed exactly, the three current-time keywords are matched without arguments, and everything else goes to UNSUPPORTED with the raw string kept. UNSUPPORTED is never turned into target SQL. 3. Rollout: FAIL stays the default for new and restored jobs alike. DROP_AND_WARN is a sink option next to the existing schema mode options: the column is created without a DEFAULT clause, data keeps loading, a warning is logged per column with the raw value, and a sink metric counts the drops. Migration path is the release notes plus the sink docs. The first delivery is also pinned down: shared model plus converter, MySQL metadata and CDC into the MySQL sink, auto-create path only. The test plan carries the acceptance matrix from your last paragraph. -- 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]
