[
https://issues.apache.org/jira/browse/CALCITE-6025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17768875#comment-17768875
]
Julian Hyde commented on CALCITE-6025:
--
I don't think we should simplify DECODE. Why? I think of DECODE as syntactic
sugar for CASE. As such, simplify should work on the CASE expression that has
been created from DECODE. If generating SQL for a dialect that supports DECODE,
we could convert CASE back to DECODE.
> Simplify DECODE function
>
>
> Key: CALCITE-6025
> URL: https://issues.apache.org/jira/browse/CALCITE-6025
> Project: Calcite
> Issue Type: Improvement
>Reporter: Wenzhuang Zhu
>Assignee: Wenzhuang Zhu
>Priority: Minor
>
> RexSimplify.simplify supports COALESCE and CASE, but DECODE is not supported.
>
> DECODE function: decode(, , [, ,
> ]...[, ])
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)