sainimal1ba-hue commented on issue #13217:
URL: https://github.com/apache/seatunnel/issues/13217#issuecomment-7073384317

   > [@sainimal1ba-hue](https://github.com/sainimal1ba-hue) thanks for writing 
up STIP-46 so quickly.
   > 
   > Going by your summary, the first two points read as covered:
   > 
   > * **Additive compatibility:** the typed field sits beside the existing 
one, with constructor, copy, schema-event and serialized-metadata behavior 
spelled out for old values. An absent default and a literal `NULL` stay 
distinct through replay and upgrade.
   > * **Closed v1 semantics:** the literal types are named exactly, and 
`UNSUPPORTED` keeps the raw string and never becomes guessed target SQL.
   > 
   > Your comment reaches me cut off at "The drop-and-warn mode has its", so I 
can't see the rest. Could you confirm the remaining two points here?
   > 
   > 1. **Failure policy:** what does STIP-46 specify for the opt-in 
drop-and-warn mode? I'm looking for the configuration contract, the observable 
warning/metric, and the resulting target-schema state.
   > 2. **Bounded first delivery:** does it name the one MySQL source/target 
pair and the auto-create path as the initial slice? It should also include 
target DDL assertions for escaped strings, numeric/decimal values, absent 
versus `NULL`, current-time defaults, and a metadata/replay compatibility case.
   > 
   > Please also post the direct link to STIP-46 in this thread if it isn't 
already in the part I can't see.
   > 
   > As before, please hold the implementation PR until the design has 
maintainer consensus, since the STIP is its acceptance contract.
   > 
   > [@corgy-w](https://github.com/corgy-w) the design is now written up as 
STIP-46, and the `[DISCUSS]` thread on the dev list still has no responses per 
the earlier update. Your feedback on either would be very welcome when you have 
time.
   
   No idea why it clipped on your end, here are the remaining two.
   
   Failure policy: DROP_AND_WARN is a MySQL sink option, default_value_policy, 
with FAIL as the default, sitting with the existing schema mode options. FAIL 
behaves the same for new jobs and restored jobs, so nothing depends on how a 
job was started. Under DROP_AND_WARN the target column is created without a 
DEFAULT clause, data keeps loading, one warning is logged per affected column 
naming the column and the raw value, and a counter on the sink metrics tracks 
how often it dropped. A default is never rewritten into something else. 
Migration path is the release notes plus the sink docs, with STIP-46 linked 
from both.
   
   Bounded first delivery: yes, it names the pair. The first slice is the 
shared model plus the converter and one path only, MySQL catalog metadata and 
MySQL-CDC fields into the MySQL sink, limited to auto-create. Other connectors 
stay untouched. The DDL assertions are pinned in the test plan: escaped strings 
with doubled quotes and backslashes, numeric and decimal values, absent default 
versus explicit NULL, every supported current-time token, an unsupported 
expression under both policies, a metadata/replay round trip where the rendered 
DDL comes back unchanged and absent-versus-NULL stays distinct, and the 
end-to-end auto-create check that the target table keeps its DEFAULT clauses.


-- 
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]

Reply via email to