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

   Thanks @hutiefang76 for posting the standalone probe and rerunning it 
against `org.apache.seatunnel:seatunnel-shade-calcite:1.38.0-3.0.1`.
   
   The probe checks the two facts the earlier conclusion rests on:
   
   - **Declared precision:** with the `getMaxPrecision` override, both 
`TIMESTAMP` and `TIMESTAMP_WITH_LOCAL_TIME_ZONE` accept precision 6.
   - **Runtime carrier:** `getJavaClass` still returns `long` for the required 
type and `Long` for the nullable one. The two `TimestampString` values 
`.123456` and `.123789` order as distinct but return the same 
`getMillisSinceEpoch()`, which you reported earlier as `1718469010123`.
   
   So the position is unchanged. A type-precision-only change or an 
epoch-millisecond adapter change would both leave projection, comparison, and 
interval arithmetic on the millisecond path. No SeaTunnel adapter PR should be 
opened on either basis, and this Issue stays open as blocked on a 
precision-preserving Enumerable timestamp representation, tracked under 
CALCITE-5266.
   
   Remaining asks:
   
   1. Please make sure the console output of the rerun is recorded here next to 
the source: the two per-type lines and the `distinct TimestampString` line.
   2. Please keep this probe as the gate for reopening the adapter work. Once a 
bundled Calcite version no longer reports `long`/`Long` as the carrier, or no 
longer collapses the two values to one millisecond, post that result here 
before any adapter proposal.
   3. A proposal at that point still needs to cover:
      - both `TIMESTAMP` and `TIMESTAMP_TZ`;
      - standalone projection;
      - whole-second arithmetic;
      - equality, inequality, and ordering;
      - null controls;
      - two distinct values in the same millisecond;
      - runs through both the direct engine and the FakeSource job, as you 
outlined.
   
      The existing SeaTunnel timestamp types and connector APIs stay out of 
scope.
   
   <!-- streview-comment:2562 -->


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