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

ASF subversion and git services commented on IMPALA-14525:
----------------------------------------------------------

Commit 02d2e168cca7f321bc01d23dcf5a78f3c0891563 in impala's branch 
refs/heads/master from Steve Carlin
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=02d2e168c ]

IMPALA-14525 addendum: For simplify, nulls should only be treated as false for 
filters

The previous fix for IMPALA-14525 simplifies expressions. Calcite has a
parameter for the simplify method which allows "unknown" expressions to
be treated as "unknown" or "false". For filters, we do want to treat Unknowns
as False since a filter can only be true or false. However for expressions
in other parts of the code like select (e.g. select 1 in (NULL) ), the null
needs to be treated as "unknown" so that the simplify method can return null
for this expression.

Change-Id: I673162f253f983e0c95d01b1f8d2731881f9ad7b
Reviewed-on: http://gerrit.cloudera.org:8080/23951
Reviewed-by: Michael Smith <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


> Calcite Planner: Add support for RexSimplify
> --------------------------------------------
>
>                 Key: IMPALA-14525
>                 URL: https://issues.apache.org/jira/browse/IMPALA-14525
>             Project: IMPALA
>          Issue Type: Sub-task
>            Reporter: Steve Carlin
>            Assignee: Steve Carlin
>            Priority: Major
>             Fix For: Impala 5.0.0
>
>
> RexSimplify does quite a few optimizations on the expressions that we should 
> be using.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to