DanielLeens commented on issue #13361:
URL: https://github.com/apache/seatunnel/issues/13361#issuecomment-7062349575

   Classification: A / Transform-V2 Calcite timestamp runtime representation.
   
   Thank you for extending the experiment to `TIME`, timestamp comparison, both 
timestamp types, and current `dev` at `7029c0969a`. This is useful evidence. 
`TIME` is not the same failure: the current adapter deliberately uses 
milliseconds for `TIME`, and projection completes. It should not broaden this 
timestamp fix.
   
   The timestamp result does rule out an epoch-millisecond conversion as a fix. 
It removes the cast but changes `.123456` and `.123789` into the same value, so 
projection, arithmetic, equality, and ordering are all incorrect. We must not 
trade a visible exception for silent data corruption.
   
   Please do not submit that millisecond conversion. Keep the work within the 
Calcite adapter/type boundary and preserve the existing SeaTunnel timestamp 
types and connector APIs, but first provide a small technical proposal or 
prototype that identifies a Calcite physical representation and adapter path 
that can carry six fractional digits through projection, comparison, and 
whole-second arithmetic. If the current Calcite representation cannot do so, 
that limitation must be made explicit and resolved before a behavior-changing 
PR is proposed; precision must not be silently rounded down.
   
   The eventual focused regression needs `TIMESTAMP` and `TIMESTAMP_TZ`, 
standalone projection, interval arithmetic, equality, inequality, ordering, 
null controls, and distinct values within the same millisecond. A direct-engine 
test plus the `FakeSource -> Calcite -> Console` path remains the right initial 
scope. The MySQL CDC scenario is still optional follow-up evidence, not a 
reason to alter connector code.
   


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