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

   I checked the type-system override with SeaTunnel's bundled Calcite 1.38.0. 
Raising the limit lets both `TIMESTAMP` and `TIMESTAMP_WITH_LOCAL_TIME_ZONE` 
report precision 6, but their Enumerable values still use `long` or `Long`. 
`TimestampString` distinguishes `.123456` from `.123789`. Both convert to the 
same runtime value, `1718469010123` milliseconds. The 28 Calcite adapter source 
files are unchanged on `dev` at `efecb179` from the earlier comparison test.
   
   I propose waiting for a precision-preserving Enumerable timestamp 
representation under 
[CALCITE-5266](https://issues.apache.org/jira/browse/CALCITE-5266) before 
changing the SeaTunnel adapter. Raising the type precision alone leaves 
comparison and interval arithmetic on the existing millisecond path. Once the 
runtime can preserve six digits, the adapter can map both existing SeaTunnel 
types to it and run the projection, comparison, interval, and null cases 
through the direct engine and the FakeSource job.
   


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