Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.32.0
Description
Converting java.sql types to unix timestamps requires extra steps to also convert to the correct calendar. Unix timestamps should follow the proleptic Gregorian calendar as defined by ISO-8601. Java uses the standard Gregorian calendar for java.sql types and switches to the Julian calendar for dates before the Gregorian shift.
The DateTimeUtils class in Avatica correctly handles the calendar conversions. Calcite should use those methods since its own methods do not currently convert between calendars.
Attachments
Issue Links
- depends upon
-
CALCITE-2989 Use ISO-8601 calendar when converting between java.sql types and UNIX timestamps
- Closed
-
CALCITE-5480 Release Avatica 1.23.0
- Closed
- is related to
-
CALCITE-5341 Upgrade Calcite to Avatica 1.23.0
- Closed
- relates to
-
CALCITE-5678 Calcite should reject date literals not satisfying Gregorian calendar, per SQL standard
- Closed
- links to