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

Turning on hive.tez.bucket.pruning produce wrong results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.0, 4.0.0
    • 4.0.0-alpha-1
    • None
    • None

    Description

      Reproducer

      set hive.query.results.cache.enabled=false;
      set hive.optimize.ppd.storage=true;
      set hive.optimize.index.filter=true;
      
      set hive.tez.bucket.pruning=true; 
      
      
      CREATE TABLE `test_table`(                 
         `col_1` int,                                     
         `col_2` string,                                  
         `col_3` string)                                  
       CLUSTERED BY (                                     
         col_1)                                           
       INTO 4 BUCKETS;                                     
      
      insert into test_table values(1, 'one', 'ONE'), (2, 'two', 'TWO'), (3,'three','THREE'),(4,'four','FOUR');
      
      select * from test_table;
      
      explain select col_1, col_2, col_3 from test_table where col_1 <> 2 order by col_2;
      select col_1, col_2, col_3 from test_table where col_1 <> 2 order by col_2;
      
      

      Above sql query produce zero rows.

      Attachments

        1. HIVE-22121.4.patch
          18 kB
          Vineet Garg
        2. HIVE-22121.3.patch
          18 kB
          Vineet Garg
        3. HIVE-22121.2.patch
          11 kB
          Vineet Garg
        4. HIVE-22121.1patch
          2 kB
          Vineet Garg

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: