Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Druid time expressions return numeric values in form of ms (instead of formatted timestamp). Because of this expressions/function which expects its argument as string type ended up returning different values for time expressions input.
e.g.
SELECT SUBSTRING(to_date(datetime0),4) FROM tableau_orc.calcs; | 4-07-25 | SELECT SUBSTRING(to_date(datetime0),4) FROM druid_tableau.calcs; | 0022400000 | SELECT CONCAT(to_date(datetime0),' 00:00:00') FROM tableau_orc.calcs; | 2004-07-17 00:00:00 | SELECT CONCAT(to_date(datetime0),' 00:00:00') FROM druid_tableau.calcs; | 1090454400000 00:00:00 |
Druid needs explicit cast to make this work
Attachments
Attachments
Issue Links
- duplicates
-
HIVE-20341 Druid Needs Explicit CASTs from Timestamp to STRING when the output of timestamp function is used as String
- Resolved