{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/11759","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/11759/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/11759/comments","events_url":"https://api.github.com/repos/apache/spark/issues/11759/events","html_url":"https://github.com/apache/spark/pull/11759","id":141214669,"number":11759,"title":"[SPARK-13930][SQL] Apply fast serialization on collect limit operator","user":{"login":"viirya","id":68855,"avatar_url":"https://avatars.githubusercontent.com/u/68855?v=3","gravatar_id":"","url":"https://api.github.com/users/viirya","html_url":"https://github.com/viirya","followers_url":"https://api.github.com/users/viirya/followers","following_url":"https://api.github.com/users/viirya/following{/other_user}","gists_url":"https://api.github.com/users/viirya/gists{/gist_id}","starred_url":"https://api.github.com/users/viirya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viirya/subscriptions","organizations_url":"https://api.github.com/users/viirya/orgs","repos_url":"https://api.github.com/users/viirya/repos","events_url":"https://api.github.com/users/viirya/events{/privacy}","received_events_url":"https://api.github.com/users/viirya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-16T09:19:29Z","updated_at":"2016-03-16T09:37:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/11759","html_url":"https://github.com/apache/spark/pull/11759","diff_url":"https://github.com/apache/spark/pull/11759.diff","patch_url":"https://github.com/apache/spark/pull/11759.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nJIRA: https://issues.apache.org/jira/browse/SPARK-13930\r\n\r\nRecently the fast serialization has been introduced to collecting DataFrame/Dataset (#11664). The same technology can be used on collect limit operator too.\r\n\r\n## How was this patch tested?\r\n\r\nAdd a benchmark for collect limit to `BenchmarkWholeStageCodegen`.\r\n\r\nWithout this patch:\r\n\r\n    model name      : Westmere E56xx/L56xx/X56xx (Nehalem-C)\r\n    collect limit:                      Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative\r\n    -------------------------------------------------------------------------------------------\r\n    collect limit 1 million                  3413 / 3768          0.3        3255.0       1.0X\r\n    collect limit 2 millions                9728 / 10440          0.1        9277.3       0.4X\r\n\r\nWith this patch:\r\n\r\n    model name      : Westmere E56xx/L56xx/X56xx (Nehalem-C)\r\n    collect limit:                      Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative\r\n    -------------------------------------------------------------------------------------------\r\n    collect limit 1 million                   833 / 1284          1.3         794.4       1.0X\r\n    collect limit 2 millions                 3348 / 4005          0.3        3193.3       0.2X\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/197228487","html_url":"https://github.com/apache/spark/pull/11759#issuecomment-197228487","issue_url":"https://api.github.com/repos/apache/spark/issues/11759","id":197228487,"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-03-16T09:37:33Z","updated_at":"2016-03-16T09:37:33Z","body":"**[Test build #53310 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/53310/consoleFull)** for PR 11759 at commit [`d1306ad`](https://github.com/apache/spark/commit/d1306ade2efa407ce0785650d08aef4129aab2c3)."}}