You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "James Duong (JIRA)" <ji...@apache.org> on 2018/06/12 17:48:00 UTC

[jira] [Commented] (CALCITE-2359) Inconsistent behavior when casting interval literals to integer

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

James Duong commented on CALCITE-2359:
--------------------------------------

Pull request: https://github.com/apache/calcite/pull/730

> Inconsistent behavior when casting interval literals to integer
> ---------------------------------------------------------------
>
>                 Key: CALCITE-2359
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2359
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.17.0
>            Reporter: James Duong
>            Assignee: Julian Hyde
>            Priority: Major
>
> Ensure casting intervals to integers always returns the result in terms
> of the trailing unit.
> Currently we have the following behavior:
> - Casting a standalone day interval literal returns results in terms of the field.
> - Casting a standalone year interval literal returned results in terms of months.
> - Casting a day interval expression returned results in terms of milliseconds.
> - Casting a year interval expression returned results in terms of months.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)