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

incorrect result set for query that projects a windowed aggregate

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment