[
https://issues.apache.org/jira/browse/CALCITE-2555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16613563#comment-16613563
]
pengzhiwei edited comment on CALCITE-2555 at 9/13/18 2:26 PM:
--------------------------------------------------------------
Hi [~vladimirsitnikov],I have made the simplify to a more generic which can
simplify any strong type of operator with null operand.Can you have a review
for me?Thanks!
was (Author: pzw2018):
Hi [~vladimirsitnikov],I have made the simplify to a more generic which can
simplify any strong type of operator with null operand.
> RexSimplify: >=(true, null) could be simplified to null
> -------------------------------------------------------
>
> Key: CALCITE-2555
> URL: https://issues.apache.org/jira/browse/CALCITE-2555
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Affects Versions: 1.17.0
> Reporter: Vladimir Sitnikov
> Assignee: Julian Hyde
> Priority: Major
> Labels: newbie
>
> {code:java}
> @Test public void simplifyComparisonWithNull() {
> checkSimplify2(ge(trueLiteral, falseLiteral), "true", "true");
> checkSimplify2(ge(trueLiteral, nullBool), "null", "false");
> checkSimplify2(ge(nullBool, nullBool), "null", "false");
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)