{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/9099","labels_url":"https://api.github.com/repos/apache/spark/issues/9099/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/9099/comments","events_url":"https://api.github.com/repos/apache/spark/issues/9099/events","html_url":"https://github.com/apache/spark/pull/9099","id":111234231,"number":9099,"title":"[SPARK-11086][SPARKR] Use dropFactors column-wise instead of nested loop when createDataFrame","user":{"login":"zero323","id":1554276,"avatar_url":"https://avatars.githubusercontent.com/u/1554276?v=3","gravatar_id":"","url":"https://api.github.com/users/zero323","html_url":"https://github.com/zero323","followers_url":"https://api.github.com/users/zero323/followers","following_url":"https://api.github.com/users/zero323/following{/other_user}","gists_url":"https://api.github.com/users/zero323/gists{/gist_id}","starred_url":"https://api.github.com/users/zero323/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zero323/subscriptions","organizations_url":"https://api.github.com/users/zero323/orgs","repos_url":"https://api.github.com/users/zero323/repos","events_url":"https://api.github.com/users/zero323/events{/privacy}","received_events_url":"https://api.github.com/users/zero323/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":32,"created_at":"2015-10-13T17:55:15Z","updated_at":"2015-10-17T04:59:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/9099","html_url":"https://github.com/apache/spark/pull/9099","diff_url":"https://github.com/apache/spark/pull/9099.diff","patch_url":"https://github.com/apache/spark/pull/9099.patch"},"body":"Use `dropFactors` column-wise instead of nested loop when `createDataFrame` from a `data.frame`\r\n\r\nAt this moment SparkR createDataFrame is using nested loop to convert factors to character when called on a local data.frame.  It works but is incredibly slow especially with data.table (~ 2 orders of magnitude compared to PySpark / Pandas version on a DateFrame of size 1M rows x 2 columns).\r\n\r\nA simple improvement is to apply `dropFactor `column-wise and then reshape output list.\r\n\r\nIt should at least partially address [SPARK-8277](https://issues.apache.org/jira/browse/SPARK-8277).\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/148886104","html_url":"https://github.com/apache/spark/pull/9099#issuecomment-148886104","issue_url":"https://api.github.com/repos/apache/spark/issues/9099","id":148886104,"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-10-17T04:59:09Z","updated_at":"2015-10-17T04:59:09Z","body":"Merged build finished. Test PASSed."}}