{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/8038","labels_url":"https://api.github.com/repos/apache/spark/issues/8038/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/8038/comments","events_url":"https://api.github.com/repos/apache/spark/issues/8038/events","html_url":"https://github.com/apache/spark/pull/8038","id":99727392,"number":8038,"title":"[SPARK-9747] [SQL] Avoid starving an unsafe operator in aggregation","user":{"login":"andrewor14","id":2133137,"avatar_url":"https://avatars.githubusercontent.com/u/2133137?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewor14","html_url":"https://github.com/andrewor14","followers_url":"https://api.github.com/users/andrewor14/followers","following_url":"https://api.github.com/users/andrewor14/following{/other_user}","gists_url":"https://api.github.com/users/andrewor14/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewor14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewor14/subscriptions","organizations_url":"https://api.github.com/users/andrewor14/orgs","repos_url":"https://api.github.com/users/andrewor14/repos","events_url":"https://api.github.com/users/andrewor14/events{/privacy}","received_events_url":"https://api.github.com/users/andrewor14/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":43,"created_at":"2015-08-07T20:44:09Z","updated_at":"2015-08-11T03:38:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/8038","html_url":"https://github.com/apache/spark/pull/8038","diff_url":"https://github.com/apache/spark/pull/8038.diff","patch_url":"https://github.com/apache/spark/pull/8038.patch"},"body":"This is the sister patch to #8011, but for aggregation.\r\n\r\nIn a nutshell: create the `TungstenAggregationIterator` before computing the parent partition. Internally this creates a `BytesToBytesMap` which acquires a page in the constructor as of this patch. This ensures that the aggregation operator is not starved since we reserve at least 1 page in advance.\r\n\r\n@rxin @yhuai "},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/129691873","html_url":"https://github.com/apache/spark/pull/8038#issuecomment-129691873","issue_url":"https://api.github.com/repos/apache/spark/issues/8038","id":129691873,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T03:38:01Z","updated_at":"2015-08-11T03:38:01Z","body":"Merged build started."}}