[ 
https://issues.apache.org/jira/browse/HIVE-5123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13770402#comment-13770402
 ] 

cyril liao commented on HIVE-5123:
----------------------------------

SELECT p_day,
       count(*) 
       from
    (SELECT p_day  ,uid,poid
     FROM t_app_bd_stat
     WHERE p_day >=20130910
         AND p_day<=20130917
         AND newuser =1
     GROUP BY p_day,uid,poid) tmp
GROUP BY p_day
ORDER BY p_day ASC

the result get a lot of lines with a same p_day value.
                
> group by on a same key producing wrong result
> ---------------------------------------------
>
>                 Key: HIVE-5123
>                 URL: https://issues.apache.org/jira/browse/HIVE-5123
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.11.0
>            Reporter: cyril liao
>
> grouping by on a same key twice will run a single mapreduce-job,producing 
> wrong result.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to