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

incorrect result set for query that projects a windowed aggregate

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • PTF-Windowing
    • 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

          There are no Sub-Tasks for this issue.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: