You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Haisheng Yuan (JIRA)" <ji...@apache.org> on 2018/10/11 08:34:00 UTC

[jira] [Commented] (CALCITE-2620) Simplify "coalesce(null,x)" to "x"

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

Haisheng Yuan commented on CALCITE-2620:
----------------------------------------

This can be fixed using patch in https://github.com/apache/calcite/pull/836/files, which I closed.

> Simplify "coalesce(null,x)" to "x"
> ----------------------------------
>
>                 Key: CALCITE-2620
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2620
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.18.0
>            Reporter: pengzhiwei
>            Assignee: Julian Hyde
>            Priority: Major
>
> "coalesce(x0,x1,.....)" can be simplified if any of "xi" is null literal.
> e.g.  "coalesce(null,x)" can simplify to "x", "coalesce(x,null,y)" can simplify to "coalesce(x,y)"



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)