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

xiong duan commented on CALCITE-6592:
-------------------------------------

Fixed in 
[fb7eddea|https://github.com/apache/calcite/commit/fb7eddea9b4b49eea9d855370d840b3400f11966].
 Thanks for the rewiew [~zabetak] [~mbudiu] and [~caicancai] .

> Add test for RelMdPredicates pull up predicate from UNION when it's input 
> predicates include NULL VALUE
> -------------------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-6592
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6592
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: xiong duan
>            Priority: Major
>              Labels: pull-request-available
>
> The RelNode:
> {code:java}
> LogicalUnion(all=[true])
>   LogicalValues(tuples=[[{ NULL }]])
>   LogicalValues(tuples=[[{ 131 }]]){code}
>  The predicate is '$0 == 131'
> {code:java}
> LogicalUnion(all=[true])
>   LogicalValues(tuples=[[{ 11 }]])
>   LogicalValues(tuples=[[{ 131 }]])
> {pulled[SEARCH($0, Sarg[11, 131])]}{code}
> The Predicate is SEARCH($0, Sarg[11, 131]).
> So the first RelNode's Predicate should be NONE or SEARCH($0, Sarg[null, 
> 131]) or (NULL, =($0, 5)).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to