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

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0
    • Component/s: None

      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

              • Assignee:
                kgyrtkirk Zoltan Haindrich
                Reporter:
                kgyrtkirk Zoltan Haindrich
              • Votes:
                0 Vote for this issue
                Watchers:
                3 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