CryoThrust commented on issue #13404:
URL: https://github.com/apache/seatunnel/issues/13404#issuecomment-7151057295

   I would like to help with the mapping/compatibility part of the feasibility 
study, keeping runtime code and dependencies out for now. I checked the current 
`Column` representation and the tagged ODCS v3.2.0 schema. A few choices seem 
useful to settle before the MySQL-CDC → JDBC evaluation:
   
   | Contract element | Initial mapping boundary |
   | --- | --- |
   | `physicalName` / `name` | Explicit table/column matching, with a stated 
case policy; no inferred rename |
   | `required` | Compare with column nullability, separately from field 
presence and extra-column policy |
   | `logicalType: number` | Not enough to establish a DECIMAL precision/scale; 
the bounded MySQL subset needs explicit physical-type information |
   | Primary key | Compare ordered key columns; do not infer a nullability 
policy from the key flag alone |
   | Nested types, value quality and SLA | Report unsupported by this 
schema-only slice rather than treating them as compatible |
   
   For decimal compatibility, I would distinguish "the source changed to a 
wider type" from "the new source range still fits the consumer contract." With 
a fixed consumer `DECIMAL(18,4)`, source `DECIMAL(16,2)` fits its 14 integer 
digits, but `DECIMAL(18,2)` does not, despite having the same total precision 
as the consumer. Both integer capacity (`p - s`) and scale matter. This gives a 
useful regression against a precision-only comparison.
   
   The evaluation should also identify whether it checks the raw source schema 
or the schema after transforms/type conversion. `Column` carries distinct 
`dataType`, `sourceType` and `sinkType`; checking the source alone would not 
establish that the sink's eventual DDL satisfies the contract. I would record 
the ODCS standard version separately from contract ID/version and exact 
content, then use explicit compatible / incompatible / unsupported outcomes.
   
   If this part is not already taken, I can prepare the source-derived mapping 
and fixture matrix here first. The live pre-DDL and checkpoint/restore boundary 
would remain a separate piece of evidence; I have not run that evaluation or 
implemented a runtime hook.
   


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