Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-2240

Extend rule to push predicates into CASE statement

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.17.0
    • Component/s: None
    • Labels:
      None

      Description

      CaseShuttle may make the optimization but the functions return value doesn't depend on that.

      For the following query the =1 is not pushed into the case.

      select empno from emp where case when sal > 1000 then empno else sal end = 1
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kgyrtkirk Zoltan Haindrich
                Reporter:
                kgyrtkirk Zoltan Haindrich
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: