Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
Hive CAST('<literal>' as DATE) is handled by Java's Date.valueOf and thus expects yyyy-mm-dd. In Hive SELECT CAST('1' as DATE); yields NULL but in Calcite is 0001-12-31.
I'm opening this as Calcite issue to track HIVE-15708 (migrate to Calcite 1.12) blockers, not sure if solution will require Calcite changes.
Attachments
Issue Links
- Blocked
-
HIVE-15708 Upgrade calcite version to 1.12
- Closed
- is duplicated by
-
CALCITE-1653 Pass an expression executor to RexUtil.simplify for constant reduction
- Closed
- is related to
-
CALCITE-1653 Pass an expression executor to RexUtil.simplify for constant reduction
- Closed