You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Zoltan Haindrich (JIRA)" <ji...@apache.org> on 2018/12/07 16:40:00 UTC

[jira] [Created] (CALCITE-2731) Case statements are simplified with unsafe conditions

Zoltan Haindrich created CALCITE-2731:
-----------------------------------------

             Summary: Case statements are simplified with unsafe conditions
                 Key: CALCITE-2731
                 URL: https://issues.apache.org/jira/browse/CALCITE-2731
             Project: Calcite
          Issue Type: Bug
            Reporter: Zoltan Haindrich
            Assignee: Zoltan Haindrich


In CALCITE-1413 we were cautious to not simplify 
{code}
CASE a=0 THEN 0 ELSE 1/a END
{code}
and it seemed good; however: {{RexProgramBuilder}} is also invokes simplify - but the protection at that point is not able to work, because it sees only references:
{code}
CASE $1 THEN $2 ELSE $3 END
{code}




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