Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The zero literal value for TIMESTAMP WITH LOCAL TIME ZONE type is used in `org.apache.calcite.rex.RexBuilder`
case TIMESTAMP_WITH_LOCAL_TIME_ZONE: return new TimestampString(0, 0, 0, 0, 0, 0); //TimestampString(int year, int month, int day, int h, int m, int s)
the month and day should never be zero, I think the zero value should be '1970-01-01 00:00:00'(epoch 0 second).
Attachments
Issue Links
- is related to
-
CALCITE-1947 Add time/timestamp with local time zone types to optimizer
- Closed
- links to