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

NOT IN condition is not handled correctly with predicate push down

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.1.0
    • None
    • None
    • None

    Description

      With predicate pushdown enabled, NOT IN conditions are treated as FALSE.

      Example (pkey is a partition key)

      hive> select * from test;
      OK
      test.key        test.val        test.pkey
      a       1       a
      b       2       a
      c       3       a
      a       1       b
      b       2       b
      c       3       b
      Time taken: 0.171 seconds, Fetched: 6 row(s)
      hive> set hive.optimize.ppd=false;
      hive> select * from test where not pkey in ('a');
      OK
      test.key        test.val        test.pkey
      a       1       b
      b       2       b
      c       3       b
      Time taken: 0.237 seconds, Fetched: 3 row(s)
      hive> set hive.optimize.ppd=true;
      hive> select * from test where not pkey in ('a');
      OK
      test.key        test.val        test.pkey
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            tzenmyo Teruyoshi Zenmyo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: