{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/8888","labels_url":"https://api.github.com/repos/apache/spark/issues/8888/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/8888/comments","events_url":"https://api.github.com/repos/apache/spark/issues/8888/events","html_url":"https://github.com/apache/spark/pull/8888","id":108009709,"number":8888,"title":"[SPARK-10474] [SQL] Aggregation fails to allocate memory for pointer array (round 2)","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":10,"created_at":"2015-09-23T21:24:29Z","updated_at":"2015-09-23T23:42:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/8888","html_url":"https://github.com/apache/spark/pull/8888","diff_url":"https://github.com/apache/spark/pull/8888.diff","patch_url":"https://github.com/apache/spark/pull/8888.patch"},"body":"This patch reverts most of the changes in a previous fix #8827.\r\n\r\nThe real cause of the issue is that in `TungstenAggregate`'s prepare method we only reserve 1 page, but later when we switch to sort-based aggregation we try to acquire 1 page AND a pointer array. The longer-term fix should be to reserve also the pointer array, but for now ***we will simply not track the pointer array***. (Note that elsewhere we already don't track the pointer array, e.g. [here](https://github.com/apache/spark/blob/a18208047f06a4244703c17023bb20cbe1f59d73/sql/core/src/main/java/org/apache/spark/sql/execution/UnsafeKVExternalSorter.java#L88))\r\n\r\nNote: This patch reuses the unit test added in #8827 so it doesn't show up in the diff."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/142761172","html_url":"https://github.com/apache/spark/pull/8888#issuecomment-142761172","issue_url":"https://api.github.com/repos/apache/spark/issues/8888","id":142761172,"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-09-23T23:42:02Z","updated_at":"2015-09-23T23:42:02Z","body":"Merged build finished. Test FAILed."}}