sainimal1ba-hue commented on issue #13217: URL: https://github.com/apache/seatunnel/issues/13217#issuecomment-7062267098
> [@sainimal1ba-hue](https://github.com/sainimal1ba-hue) thanks for posting the `[DISCUSS]` thread and for the summary. Yes, the direction looks right, so please go ahead and write it up as a STIP. The closed v1 vocabulary, fail-by-default policy, and MySQL to MySQL scope match the four points listed earlier in this thread. > > Going only by your summary here, these details from those points still need to be explicit and testable in the STIP: > > 1. **Additive compatibility.** State that the typed `DefaultValue` sits beside the existing `Column.defaultValue` field in v1. Enumerate constructor, copy, schema-event and serialized/catalog-metadata behavior for old values. Your summary mentions explicit `NULL`, but the STIP also needs to distinguish an absent default from a literal `NULL` and state that neither is reinterpreted during replay or upgrade. > 2. **Closed v1 semantics.** Name the exact literal types covered by "typed literals". Define the stored form of an `UNSUPPORTED` value, and state that it never becomes guessed target SQL. > 3. **Failure policy.** For the opt-in drop-and-warn mode, specify the configuration contract, the observable warning/metric, and the resulting target-schema state, so it cannot act as a silent fallback. > 4. **Bounded first delivery.** Name the one MySQL source/target pair and state the auto-create path as the initial slice. Include target DDL assertions for: > > * escaped strings > * numeric/decimal values > * absent versus `NULL` > * current-time defaults > * a metadata/replay compatibility case > > CDC evolution and cross-dialect mapping stay as later design decisions. > > Once the STIP is up, please link the resulting `[STIP-N]` issue here. As before, please hold the implementation PR until the design has maintainer consensus, since the STIP will serve as its acceptance contract. > > [@corgy-w](https://github.com/corgy-w) the summary above is the current state. There are no responses on the dev list yet, so your feedback on the `[DISCUSS]` thread or on the STIP would be very welcome when you have time. STIP-46 now covers the four points from your reply. The additive field is spelled out with constructor, copy, schema-event and serialized-metadata behavior for old values, and absent default vs literal NULL stay distinct through replay and upgrade. The v1 literal types are named exactly, and UNSUPPORTED keeps the raw string and never becomes guessed target SQL. The drop-and-warn mode has its option, the observable warning and metric, and the resulting target state, so it cannot act as a silent fallback. The first slice is pinned to the one MySQL pair through auto-create with the DDL assertions you listed, and CDC evolution plus cross-dialect mapping are marked as later decisions. Updated STIP: #13372. Implementation PR stays on hold until the design has consensus. -- 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]
