Description
Conversion from TIMESTAMP to TIMESTAMP_WITH_LOCAL_TIME_ZONE loses precision
String ts = "1992-01-18 02:30:00.123"; assertQuery(format("select TIMESTAMP '{}'::TIMESTAMP WITH LOCAL TIME ZONE ", ts)) .returns(LocalDateTime.parse(ts, DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS")) .atZone(ZoneId.systemDefault()) .toInstant()) .check(); // Expected: 1992-01-17T22:30:00.123Z <class java.time.Instant> // Actual: 1992-01-17T22:30:00Z <class java.time.Instant>
Attachments
Issue Links
- blocks
-
IGNITE-19274 Sql. Jdbc client. Support TIMESTAMP WITH LOCAL TIME ZONE type
- Resolved
- is caused by
-
IGNITE-21551 Sql. Enable TIMESTAMP_WITH_LOCAL_TIME_ZONE data type
- Resolved
- is related to
-
IGNITE-15622 Calcite. TIME and TIMESTAMP types are trim milliseconds.
- Resolved
- links to