Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-9132 CBO: Calcite Operator To Hive Operator (Calcite Return Path)
  3. HIVE-14610

CBO: Calcite Operator To Hive Operator(Calcite Return Path): Fix wrong result in input30

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0
    • CBO
    • None

    Description

      Setup:

      set hive.mapred.mode=nonstrict;
      
      create table dest30(a int);
      create table tst_dest30(a int);
      
      set hive.test.mode=true;
      set hive.test.mode.prefix=tst_;
      
      insert overwrite table dest30
      select count(1) from src;  
      

      Query:

       select * from tst_dest30; 

      Expected Result:

       10 

      Actual Result:

       500 

      Turning on hive test mode is suppose to generate sampling (implicit tablesample clause) but return path isn't honoring hive.test.mode flag

      Attachments

        1. HIVE-14610.2.patch
          5 kB
          Vineet Garg
        2. HIVE-14610.1.patch
          5 kB
          Vineet Garg

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: