{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/15064","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/15064/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/15064/comments","events_url":"https://api.github.com/repos/apache/spark/issues/15064/events","html_url":"https://github.com/apache/spark/pull/15064","id":176488017,"number":15064,"title":"[SPARK-17509][SQL]When wrapping catalyst datatype to Hive data type avoid…","user":{"login":"sitalkedia","id":11507549,"avatar_url":"https://avatars.githubusercontent.com/u/11507549?v=3","gravatar_id":"","url":"https://api.github.com/users/sitalkedia","html_url":"https://github.com/sitalkedia","followers_url":"https://api.github.com/users/sitalkedia/followers","following_url":"https://api.github.com/users/sitalkedia/following{/other_user}","gists_url":"https://api.github.com/users/sitalkedia/gists{/gist_id}","starred_url":"https://api.github.com/users/sitalkedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sitalkedia/subscriptions","organizations_url":"https://api.github.com/users/sitalkedia/orgs","repos_url":"https://api.github.com/users/sitalkedia/repos","events_url":"https://api.github.com/users/sitalkedia/events{/privacy}","received_events_url":"https://api.github.com/users/sitalkedia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2016-09-12T21:21:04Z","updated_at":"2016-09-16T19:52:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/15064","html_url":"https://github.com/apache/spark/pull/15064","diff_url":"https://github.com/apache/spark/pull/15064.diff","patch_url":"https://github.com/apache/spark/pull/15064.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nWhen wrapping catalyst datatypes to Hive data type, wrap function was doing an expensive pattern matching which was consuming around 11% of cpu time. Avoid the pattern matching by returning the wrapper only once and reuse it.\r\n\r\n## How was this patch tested?\r\n\r\nTested by running the job on cluster and saw around 8% cpu improvements.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/247692961","html_url":"https://github.com/apache/spark/pull/15064#issuecomment-247692961","issue_url":"https://api.github.com/repos/apache/spark/issues/15064","id":247692961,"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-16T19:52:39Z","updated_at":"2016-09-16T19:52:39Z","body":"**[Test build #65503 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/65503/consoleFull)** for PR 15064 at commit [`b15eda1`](https://github.com/apache/spark/commit/b15eda19035a09010b7608326752ef3660c276b9)."}}
{"actor":{"display_login":"SparkQA"}}