You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Pengcheng Xiong (JIRA)" <ji...@apache.org> on 2015/10/24 06:43:27 UTC

[jira] [Updated] (CALCITE-935) Improve ReduceExpressionRule to deal with multiple "equals to literal" in predicate

     [ https://issues.apache.org/jira/browse/CALCITE-935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pengcheng Xiong updated CALCITE-935:
------------------------------------
    Attachment: CALCITE-935.01.patch

> Improve ReduceExpressionRule to deal with multiple "equals to literal" in predicate
> -----------------------------------------------------------------------------------
>
>                 Key: CALCITE-935
>                 URL: https://issues.apache.org/jira/browse/CALCITE-935
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Pengcheng Xiong
>            Assignee: Julian Hyde
>         Attachments: CALCITE-935.01.patch
>
>
> In ReduceExpressionRule.java,
> L396-397:
> final ImmutableMap<RexNode, RexLiteral> constants =
>        predicateConstants(predicates);
> The query is "select * from src where (key='12' and key is
> null);" Here 'key' is a string type and it is one of the columns of 'src'
> table.
> Then we will have predicates [=($0, '12'), isnull($0)], which is the input of the
> predicateConstants, and the function will return "{$0='12'}"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)