Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.18.0
-
None
Description
SQL 1:
select cast("timestamp" as timestamp) as t from "foodmart" order by t limit 1
Result:
T=1997-01-01 00:00:00
SQL 2:
select cast(cast("timestamp" as timestamp) as varchar) as t from "foodmart" order by t limit 1
Result:
T=852076800000
The second query should returns with the same format as the first one.
Attachments
Issue Links
- is part of
-
CALCITE-2932 DruidAdapterIT regression after 1.17 release
- Closed
- is related to
-
CALCITE-2590 Remove redundant CAST when operand has exactly the same type as it is casted to
- Closed
-
CALCITE-2695 Simplify casts which are only widening nullability
- Closed
- links to