drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Hsuan-Yi Chu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-3950) CAST(...) * (Interval Constant) gives Internal Exception
Date Tue, 20 Oct 2015 18:06:27 GMT

    [ https://issues.apache.org/jira/browse/DRILL-3950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14965483#comment-14965483
] 

Sean Hsuan-Yi Chu commented on DRILL-3950:
------------------------------------------

originated from Calcite: 
https://issues.apache.org/jira/browse/CALCITE-922

> CAST(...) * (Interval Constant) gives Internal Exception
> --------------------------------------------------------
>
>                 Key: DRILL-3950
>                 URL: https://issues.apache.org/jira/browse/DRILL-3950
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Query Planning & Optimization
>            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 extracted properly in the cases where this
constant times a CAST() function



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message