Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-11044

Some optimizable predicates being missed by constant propagation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • Query Planning
    • None

    Description

      Some of the qfile explain plans show some predicates that could be taken care of by running ConstantPropagate after the PartitionPruner:

      index_auto_unused.q:

      filterExpr: ((12.0 = 12.0) and (UDFToDouble(key) < 10.0)) (type: boolean)
      

      join28.q:

      predicate: ((11.0 = 11.0) and key is not null) (type: boolean)
      

      bucketsort_optimize_insert_7.q ("is not null" is unnecessary)

      predicate: (((key < 8) and key is not null) and ((key = 0) or (key = 5))) (type: boolean)
      

      Attachments

        1. HIVE-11044.2.patch
          39 kB
          Jason Dere
        2. HIVE-11044.1.patch
          38 kB
          Jason Dere

        Issue Links

          Activity

            People

              jdere Jason Dere
              jdere Jason Dere
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: