Hive multi group by single reducer optimization fails when aggregation with no keys followed by query with no aggregations --------------------------------------------------------------------------------------------------------------------------
Key: HIVE-2812 URL: https://issues.apache.org/jira/browse/HIVE-2812 Project: Hive Issue Type: Bug Affects Versions: 0.9.0 Reporter: Kevin Wilfong Assignee: Kevin Wilfong In multi insert queries where one subquery involves an aggregation with no distinct or group by keys and is followed by a query without any aggregations, like the following, Hive will attempt to add a group by operator for the query without aggregations, causing semantic analysis to fail. FROM src INSERT OVERWRITE TABLE table1 SELECT count(*) INSERT OVERWRITE TABLE table2 SELECT key; -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira