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

Extend rule to push predicates into CASE statement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.17.0
    • None
    • 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

              kgyrtkirk Zoltan Haindrich
              kgyrtkirk Zoltan Haindrich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: