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

   > [@sainimal1ba-hue](https://github.com/sainimal1ba-hue) What's going on 
now? I've been pretty busy lately, so I haven't really kept up.
   
   @corgy-w No problem about keeping up, here's where things are.
   
   I wrote the design points from the discussion into a proposal and posted it 
to the dev list ([DISCUSS] Column default values: typed contract for the DDL 
pipeline). The archived thread is here: 
https://www.mail-archive.com/[email protected]/msg01346.html
   
   No responses on the list yet, so here's the short version of what it covers:
   
   - A typed DefaultValue model in seatunnel-api, so the default value survives 
the whole path: source parsing to column model to sink DDL.
   - A closed v1 vocabulary: typed literals, explicit NULL, and 
CURRENT_TIMESTAMP / CURRENT_TIME / CURRENT_DATE. Anything outside it is marked 
UNSUPPORTED instead of being passed through as a string.
   - Fail the schema operation by default when a default can't be expressed on 
the target, with an opt-in to drop it and warn instead.
   - One central converter does the semantic normalization, and each dialect 
renders its own SQL from the typed value.
   - v1 scope is MySQL to MySQL. Cross-engine CDC mapping can come after that.
   
   If this direction looks right to you and @DanielLeens, I'll turn it into a 
STIP draft next and we can settle the remaining details there. If you want to 
change any point first, just say it and I'll fold it in.


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