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

Julian Hyde commented on CALCITE-6714:
--------------------------------------

Looks serious, and the fix should be simple. Let's get this into 1.39.

> Cast literal to interval gives the wrong result if literal is casted
> --------------------------------------------------------------------
>
>                 Key: CALCITE-6714
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6714
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Aleksey Plekhanov
>            Assignee: Aleksey Plekhanov
>            Priority: Major
>              Labels: pull-request-available
>
> Expression:
> {noformat}
> cast(cast(1 as integer) as interval minute)
> {noformat}
> Returns 17 minutes instead of 1 minute.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to