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

Constant field will be wrongly propagated in grouping sets

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.3.8, 3.1.3, 4.0.0-alpha-2
    • None
    • Query Planning

    Description

      Reproduce issue:

      
      create table tb1 (key string, value string);
      
      insert into tb1 values("a", "b");
      
      with mid1 as (
          select 'test_value' as test_field, * from tb1
      )
      select key, nvl(test_field, 'default_test_value')
      from mid1 group by key, test_field
      grouping sets(key, test_field, (key, test_field));
      
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              uncleGen Genmao Yu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m