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

Aggregate Function on partitioned column return wrong result when there is an empty partition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.1
    • None
    • Query Processor
    • None

    Description

      hive2.0.1
      create table testmax(id int) partitioned by (dt int);
      insert into table testmax partition(dt=11) values(1);
      alter table testmax add partition(dt=22);
      select max(dt) from testmax;
      The result is:
      22
      expected result is:
      11

      when use hive2.3.3 ,the result is right , but I can not find out which issue fixed this

      Attachments

        Activity

          People

            Unassigned Unassigned
            alleyne-b libo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: