You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2018/05/31 04:42:00 UTC

[jira] [Commented] (CALCITE-2344) Wrong constant reduction over windows function

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

Julian Hyde commented on CALCITE-2344:
--------------------------------------

Not true. Windows can be empty, e.g. {{BETWEEN INTERVAL '2' MINUTE PRECEDING AND INTERVAL '1' PRECEDING}}.

> Wrong constant reduction over windows function
> ----------------------------------------------
>
>                 Key: CALCITE-2344
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2344
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Laurent Goujon
>            Assignee: Laurent Goujon
>            Priority: Major
>
> {{RexUtil}} might incorrectly infer a IS NULL predicate would cause a reference over a window function to return null, but a window function type is never nullable.



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