Description
CAST(...) * (INTERVAL constant) results into Internal Error.
For example,
select cast(empno as Integer) * (INTERVAL '1' DAY) from emp
results into
java.lang.AssertionError: Internal error: invalid literal: INTERVAL '1' DAY
The reason is that INTERVAL constant is not extracted properly in the cases where this constant times a CAST() function
Attachments
Issue Links
- incorporates
-
CALCITE-928 Parsing Issue with Interval
- Closed