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

2018-10-12 Thread pengzhiwei (JIRA)


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

pengzhiwei edited comment on CALCITE-2620 at 10/13/18 4:10 AM:
---

[~julianhyde],In  -CALCITE-2506- this issue has not fixed. I fix it in the 
[PR882|https://github.com/apache/calcite/pull/882] ,Please take a look.


was (Author: pzw2018):
[~julianhyde],In  -CALCITE-2506- this issue has not fixed. I fix it in the 
[PR882|https://github.com/apache/calcite/pull/882] 

> 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)


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

2018-10-12 Thread pengzhiwei (JIRA)


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

pengzhiwei edited comment on CALCITE-2620 at 10/13/18 4:09 AM:
---

[~julianhyde],In  -CALCITE-2506- this issue has not fixed. I fix it in the 
[PR882|https://github.com/apache/calcite/pull/882] 


was (Author: pzw2018):
[~julianhyde],In  -CALCITE-2506- this issue has not fixed. I fix it in the 
[PR882|https://github.com/apache/calcite/pull/882]

> 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)


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

2018-10-12 Thread pengzhiwei (JIRA)


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

pengzhiwei edited comment on CALCITE-2620 at 10/13/18 4:09 AM:
---

[~julianhyde],In  -CALCITE-2506- this issue has not fixed. I fix it in the 
[PR882|https://github.com/apache/calcite/pull/882]


was (Author: pzw2018):
[~julianhyde],In  -CALCITE-2506- this issue has not fixed. I fix it in the 
[PR882|[http://example.com|https://github.com/apache/calcite/pull/882]]

> 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)