{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/15101","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/15101/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/15101/comments","events_url":"https://api.github.com/repos/apache/spark/issues/15101/events","html_url":"https://github.com/apache/spark/pull/15101","id":177018469,"number":15101,"title":"[SPARK-17114][SQL] Fix aggregates grouped by literals with empty input","user":{"login":"hvanhovell","id":9616802,"avatar_url":"https://avatars.githubusercontent.com/u/9616802?v=3","gravatar_id":"","url":"https://api.github.com/users/hvanhovell","html_url":"https://github.com/hvanhovell","followers_url":"https://api.github.com/users/hvanhovell/followers","following_url":"https://api.github.com/users/hvanhovell/following{/other_user}","gists_url":"https://api.github.com/users/hvanhovell/gists{/gist_id}","starred_url":"https://api.github.com/users/hvanhovell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hvanhovell/subscriptions","organizations_url":"https://api.github.com/users/hvanhovell/orgs","repos_url":"https://api.github.com/users/hvanhovell/repos","events_url":"https://api.github.com/users/hvanhovell/events{/privacy}","received_events_url":"https://api.github.com/users/hvanhovell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-14T20:55:46Z","updated_at":"2016-09-14T23:30:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/15101","html_url":"https://github.com/apache/spark/pull/15101","diff_url":"https://github.com/apache/spark/pull/15101.diff","patch_url":"https://github.com/apache/spark/pull/15101.patch"},"body":"## What changes were proposed in this pull request?\r\nThis PR fixes an issue with aggregates that have an empty input, and use a literals as their grouping keys. These aggregates are currently interpreted as aggregates **without** grouping keys, this triggers the ungrouped code path (which aways returns a single row).\r\n\r\nThis PR fixes the `RemoveLiteralFromGroupExpressions` optimizer rule, which changes the semantics of the Aggregate by eliminating all literal grouping keys.\r\n\r\n## How was this patch tested?\r\nAdded tests to `SQLQueryTestSuite`."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/247188373","html_url":"https://github.com/apache/spark/pull/15101#issuecomment-247188373","issue_url":"https://api.github.com/repos/apache/spark/issues/15101","id":247188373,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T23:30:08Z","updated_at":"2016-09-14T23:30:08Z","body":"**[Test build #65398 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/65398/consoleFull)** for PR 15101 at commit [`25eee30`](https://github.com/apache/spark/commit/25eee308137c9ec034f8326e23de46958e7a8b20).\n * This patch passes all tests.\n * This patch merges cleanly.\n * This patch adds no public classes."}}
{"actor":{"display_login":"SparkQA"}}