hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phabricator (JIRA)" <>
Subject [jira] [Commented] (HIVE-5657) TopN produces incorrect results with count(distinct)
Date Thu, 31 Oct 2013 20:54:19 GMT


Phabricator commented on HIVE-5657:

sershe has commented on the revision "HIVE-5657 [jira] TopN produces incorrect results with

  ql/src/java/org/apache/hadoop/hive/ql/exec/ this changes the
meaning to now refer to the field "this.value". Is it intended? Previously it was not used.
Perhaps the first "if" should be removed if not used on purpose


To: JIRA, navis
Cc: sershe

> TopN produces incorrect results with count(distinct)
> ----------------------------------------------------
>                 Key: HIVE-5657
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Sergey Shelukhin
>            Assignee: Navis
>            Priority: Critical
>         Attachments: D13797.1.patch, D13797.2.patch, HIVE-5657.1.patch.txt, example.patch
> Attached patch illustrates the problem.
> limit_pushdown test has various other cases of aggregations and distincts, incl. count-distinct,
that work correctly (that said, src dataset is bad for testing these things because every
count, for example, produces one record only), so something must be special about this.
> I am not very familiar with distinct- code and these nuances; if someone knows a quick
fix feel free to take this, otherwise I will probably start looking next week. 

This message was sent by Atlassian JIRA

View raw message