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

PruneEmptyRules does not handle the all attribute of SetOp correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.40.0
    • None

    Description

      select * from emp where deptno = 10 
      union 
      select * from emp where 1=0

      should be optimized to :

      select distinct * from emp where deptno = 10 

      but now is:

      select * from emp where deptno = 10 

       

      Attachments

        Issue Links

          Activity

            People

              jensen Zhen Chen
              jensen Zhen Chen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: