You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Yury Gerzhedovich (Jira)" <ji...@apache.org> on 2021/09/29 14:29:00 UTC

[jira] [Updated] (IGNITE-15555) Calcite engine. Operator MINUS_DATE for days, hours, and minutes returns wrong result

     [ https://issues.apache.org/jira/browse/IGNITE-15555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yury Gerzhedovich updated IGNITE-15555:
---------------------------------------
    Labels: calcite calcite2-required calcite3-required ignite-3  (was: calcite)

> Calcite engine. Operator MINUS_DATE for days, hours, and minutes returns wrong result
> -------------------------------------------------------------------------------------
>
>                 Key: IGNITE-15555
>                 URL: https://issues.apache.org/jira/browse/IGNITE-15555
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Aleksey Plekhanov
>            Assignee: Aleksey Plekhanov
>            Priority: Major
>              Labels: calcite, calcite2-required, calcite3-required, ignite-3
>
> For example, all queries:
> {noformat}
> SELECT (DATE '2021-01-02' - DATE '2021-01-01') DAYS
> SELECT (DATE '2021-01-02' - DATE '2021-01-01') HOURS
> SELECT (DATE '2021-01-02' - DATE '2021-01-01') MINUTES{noformat}
> Returns {{86400000}} (the same value as for {{SECONDS}})
> But this operator works correctly with MONTHS and SECONDS time units.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)