ujc714 opened a new pull request #2616:
URL: https://github.com/apache/hive/pull/2616


   ### What changes were proposed in this pull request?
   Fix a bug in HiveExpandDistinctAggregatesRule.getGroupingIdValue() which 
causes "COUNT(DISTINCT COL)" function returns wrong result.
   
   ### Why are the changes needed?
   If there are more than 32 COUNT(DISTINCT COL)" function in a query, the 
values returned from HiveExpandDistinctAggregatesRule.getGroupingIdValue() 
overflow so these COUNT functions return 0.
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   
   ### How was this patch tested?
   mvn test -Dtest=TestMiniTezCliDriver -Dqfile=multi_count_distinct.q


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to