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)

Reply via email to