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

incorrect result set for query that projects a windowed aggregate

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0
    • Component/s: PTF-Windowing
    • Labels:
      None

      Description

      Result set returned by Hive has one row instead of 5

      select avg(distinct tsint.csint) over () from tsint 
      
      create table  if not exists TSINT (RNUM int , CSINT smallint)
       ROW FORMAT DELIMITED FIELDS TERMINATED BY '|' LINES TERMINATED BY '\n' 
       STORED AS TEXTFILE;
      
      0|\N
      1|-1
      2|0
      3|1
      4|10
      

        Attachments

        1. HIVE-9534.4.patch
          15 kB
          Aihua Xu
        2. HIVE-9534.3.patch
          14 kB
          Aihua Xu
        3. HIVE-9534.2.patch
          14 kB
          Aihua Xu
        4. HIVE-9534.1.patch
          13 kB
          Aihua Xu

          Issue Links

            Activity

              People

              • Assignee:
                aihuaxu Aihua Xu
                Reporter:
                the6campbells N Campbell
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: