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

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

After fixing the CALCITE-6599(RelMdPredicates should pull up more predicates 
from VALUES when there are several literals) this PR becomes simple. Because we 
extract the {{IS NULL}} not the {{[=($0, null)]}} from the VALUES. So I change 
this summary to about the UNION unit tests.

> 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