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

Filter not pushed within join

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Query Planning
    • None

    Description

      explain cbo select count(*) from part where p_partkey <> ALL (select p_partkey from part)
      
      HiveAggregate(group=[{}], agg#0=[count()])
        HiveFilter(condition=[AND(OR(IS NULL($4), =($1, 0)), OR(IS NOT NULL($0), =($1, 0), IS NOT NULL($4)), OR(>=($2, $1), =($1, 0), IS NOT NULL($4), IS NULL($0)))])
          HiveProject(p_partkey=[$0], c=[$3], ck=[$4], p_partkey0=[$1], i826=[$2])
            HiveJoin(condition=[true], joinType=[inner], algorithm=[none], cost=[{27.0 rows, 0.0 cpu, 0.0 io}])
              HiveJoin(condition=[=($0, $1)], joinType=[left], algorithm=[none], cost=[{51.0 rows, 0.0 cpu, 0.0 io}])
                HiveProject(p_partkey=[$0])
                  HiveTableScan(table=[[qtest, part]], table:alias=[part])
                HiveProject(p_partkey=[$0], i826=[true])
                  HiveAggregate(group=[{0}])
                    HiveFilter(condition=[IS NOT NULL($0)])
                      HiveTableScan(table=[[qtest, part]], table:alias=[part])
              HiveProject(c=[$0], ck=[$1])
                HiveAggregate(group=[{}], c=[COUNT()], ck=[COUNT($0)])
                  HiveTableScan(table=[[qtest, part]], table:alias=[part])
      

      Attachments

        Activity

          People

            vgarg Vineet Garg
            vgarg Vineet Garg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: