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

Laurent Goujon commented on CALCITE-2344:
-----------------------------------------

So I guess there are two issues?
1/ the return type of some aggregate functions (min/max/... but not count) 
should be nullable but isn't
2/ if the return type is not nullable, a wrong inference in RexUtil causes 
parser to barf

My patch seems to address 2/ but I didn't realize about 1/ for sure.

> 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)

Reply via email to