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

select constant in union all followed by group by gives wrong result

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.13.0, 0.14.0
    • 1.0.0
    • None
    • None

    Description

      Here is the the way to reproduce with q test:

      select key from (select '1' as key from src union all select key from src)tab group by key;

      will give

      OK
      NULL
      1

      This is not correct as src contains many other keys.

      Attachments

        1. HIVE-9053.01.patch
          14 kB
          Pengcheng Xiong
        2. HIVE-9053.02.patch
          14 kB
          Pengcheng Xiong
        3. HIVE-9053.03.patch
          13 kB
          Pengcheng Xiong
        4. HIVE-9053.04.patch
          18 kB
          Pengcheng Xiong
        5. HIVE-9053.patch-branch-1.0
          41 kB
          Pengcheng Xiong

        Issue Links

          Activity

            People

              pxiong Pengcheng Xiong
              pxiong Pengcheng Xiong
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: