[
https://issues.apache.org/jira/browse/CALCITE-6714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17904714#comment-17904714
]
Aleksey Plekhanov commented on CALCITE-6714:
--------------------------------------------
[~mbudiu], [~caicancai]. thank you for review!
> 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
> Fix For: 1.39.0
>
>
> 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)