[
https://issues.apache.org/jira/browse/CALCITE-922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean Hsuan-Yi Chu updated CALCITE-922:
--------------------------------------
Summary: CAST(...) * (INTERVAL constant) results into Internal Error
(was: function(...) * (INTERVAL constant) results into Internal Error )
> CAST(...) * (INTERVAL constant) results into Internal Error
> ------------------------------------------------------------
>
> Key: CALCITE-922
> URL: https://issues.apache.org/jira/browse/CALCITE-922
> Project: Calcite
> Issue Type: Bug
> Components: core
> Reporter: Sean Hsuan-Yi Chu
> Assignee: Sean Hsuan-Yi Chu
>
> For example,
> {code}
> select cast(empno as Integer) * (INTERVAL '1' DAY)
> from emp
> {code}
> results into
> {code}
> java.lang.AssertionError: Internal error: invalid literal: INTERVAL '1' DAY
> {code}
> The reason is that INTERVAL constant is not represented properly in the cases
> where this constant times a function
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)