Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.15.0
-
None
Description
I am using date_add() to create a sequence of timestamps:
select date_add(timestamp '1970-01-01 00:00:00', cast(concat('PT',107374,'M') as interval minute)) timestamp_id from (values(1)); +--------------------------+ | timestamp_id | +--------------------------+ | 1970-01-25 20:31:12.704 | +--------------------------+ 1 row selected (0.121 seconds)
When I add one more, I get an older timestamp:
select date_add(timestamp '1970-01-01 00:00:00', cast(concat('PT',107375,'M') as interval minute)) timestamp_id from (values(1)); +--------------------------+ | timestamp_id | +--------------------------+ | 1969-12-07 03:29:25.408 | +--------------------------+ 1 row selected (0.126 seconds)
Attachments
Issue Links
- is related to
-
DRILL-4782 TO_TIME function cannot separate time from date time string
- Closed