Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-24384 SharedWorkOptimizer improvements
  3. HIVE-24365

SWO should not create complex and redundant filter expressions

    XMLWordPrintableJSON

Details

    Description

      for q88 we have complex and mostly unreadable filter expressions; because before merging 2 branches the TS filterexpression is pushed into a FIL operator.

      consider 3 scans with filters: (A,B,C)
      initially we have

       
      T(A)
      T(B)
      T(C)
      

      after merging A,B

      T(A || B) -> FIL(A)
                -> FIL(B)
      T(C)
      

      right now if we merge C as well:

      T(A || B || C) -> FIL(A AND (A || B))
                     -> FIL(B AND (A || B))
                     -> FIL(C)
      

      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:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m