Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.19.0
-
None
-
None
Description
For sql like
Select cast("timestamp" as date) as t from "foodmart" order by t limit 1
It produces results:
3242-06-03
while it expects to be:
1997-01-01
You can past the code
@Test public void testCastTimestamp() { final String sql = "Select cast(\"timestamp\" as date) as t" + " from \"foodmart\" order by t limit 1"; sql(sql, FOODMART) .returnsOrdered("T=1997-01-01 00:00:00") .queryContains( druidChecker("UTC")); }
in DruidAdapterIT2 and reproduce it.