{"action":"opened","number":220,"pull_request":{"url":"https://api.github.com/repos/databricks/spark-csv/pulls/220","id":54628941,"html_url":"https://github.com/databricks/spark-csv/pull/220","diff_url":"https://github.com/databricks/spark-csv/pull/220.diff","patch_url":"https://github.com/databricks/spark-csv/pull/220.patch","issue_url":"https://api.github.com/repos/databricks/spark-csv/issues/220","number":220,"state":"open","locked":false,"title":"Inconsistent result for DROPMALFORMED with pruned scan and unnecessarily casting all values when no fields are required","user":{"login":"HyukjinKwon","id":6477701,"avatar_url":"https://avatars.githubusercontent.com/u/6477701?v=3","gravatar_id":"","url":"https://api.github.com/users/HyukjinKwon","html_url":"https://github.com/HyukjinKwon","followers_url":"https://api.github.com/users/HyukjinKwon/followers","following_url":"https://api.github.com/users/HyukjinKwon/following{/other_user}","gists_url":"https://api.github.com/users/HyukjinKwon/gists{/gist_id}","starred_url":"https://api.github.com/users/HyukjinKwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HyukjinKwon/subscriptions","organizations_url":"https://api.github.com/users/HyukjinKwon/orgs","repos_url":"https://api.github.com/users/HyukjinKwon/repos","events_url":"https://api.github.com/users/HyukjinKwon/events{/privacy}","received_events_url":"https://api.github.com/users/HyukjinKwon/received_events","type":"User","site_admin":false},"body":"https://github.com/databricks/spark-csv/issues/218 https://github.com/databricks/spark-csv/issues/219\r\n\r\nIn this PR, I made the pruned scan try to parse all the values in columns when DROPMALFORMED is enabled and return only required fields.\r\n\r\nIn addition, I changed the condition for table scan. If required columns are empty, then it just produces empty rows.","created_at":"2015-12-28T02:36:47Z","updated_at":"2015-12-28T02:36:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/databricks/spark-csv/pulls/220/commits","review_comments_url":"https://api.github.com/repos/databricks/spark-csv/pulls/220/comments","review_comment_url":"https://api.github.com/repos/databricks/spark-csv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/databricks/spark-csv/issues/220/comments","statuses_url":"https://api.github.com/repos/databricks/spark-csv/statuses/17f2ca98a2c0a3eb3451c0e8be7ba1dc403f9175","head":{"label":"HyukjinKwon:ISSUE-218-non-all-cast","ref":"ISSUE-218-non-all-cast","sha":"17f2ca98a2c0a3eb3451c0e8be7ba1dc403f9175","user":{"login":"HyukjinKwon","id":6477701,"avatar_url":"https://avatars.githubusercontent.com/u/6477701?v=3","gravatar_id":"","url":"https://api.github.com/users/HyukjinKwon","html_url":"https://github.com/HyukjinKwon","followers_url":"https://api.github.com/users/HyukjinKwon/followers","following_url":"https://api.github.com/users/HyukjinKwon/following{/other_user}","gists_url":"https://api.github.com/users/HyukjinKwon/gists{/gist_id}","starred_url":"https://api.github.com/users/HyukjinKwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HyukjinKwon/subscriptions","organizations_url":"https://api.github.com/users/HyukjinKwon/orgs","repos_url":"https://api.github.com/users/HyukjinKwon/repos","events_url":"https://api.github.com/users/HyukjinKwon/events{/privacy}","received_events_url":"https://api.github.com/users/HyukjinKwon/received_events","type":"User","site_admin":false},"repo":{"id":44584908,"name":"spark-csv","full_name":"HyukjinKwon/spark-csv","owner":{"login":"HyukjinKwon","id":6477701,"avatar_url":"https://avatars.githubusercontent.com/u/6477701?v=3","gravatar_id":"","url":"https://api.github.com/users/HyukjinKwon","html_url":"https://github.com/HyukjinKwon","followers_url":"https://api.github.com/users/HyukjinKwon/followers","following_url":"https://api.github.com/users/HyukjinKwon/following{/other_user}","gists_url":"https://api.github.com/users/HyukjinKwon/gists{/gist_id}","starred_url":"https://api.github.com/users/HyukjinKwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HyukjinKwon/subscriptions","organizations_url":"https://api.github.com/users/HyukjinKwon/orgs","repos_url":"https://api.github.com/users/HyukjinKwon/repos","events_url":"https://api.github.com/users/HyukjinKwon/events{/privacy}","received_events_url":"https://api.github.com/users/HyukjinKwon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HyukjinKwon/spark-csv","description":"CSV data source for Spark SQL and DataFrames","fork":true,"url":"https://api.github.com/repos/HyukjinKwon/spark-csv","forks_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/forks","keys_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/teams","hooks_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/hooks","issue_events_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/issues/events{/number}","events_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/events","assignees_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/assignees{/user}","branches_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/branches{/branch}","tags_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/tags","blobs_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/git/refs{/sha}","trees_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/statuses/{sha}","languages_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/languages","stargazers_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/stargazers","contributors_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/contributors","subscribers_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/subscribers","subscription_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/subscription","commits_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/commits{/sha}","git_commits_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/git/commits{/sha}","comments_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/comments{/number}","issue_comment_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/issues/comments{/number}","contents_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/contents/{+path}","compare_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/merges","archive_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/downloads","issues_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/issues{/number}","pulls_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/pulls{/number}","milestones_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/milestones{/number}","notifications_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/labels{/name}","releases_url":"https://api.github.com/repos/HyukjinKwon/spark-csv/releases{/id}","created_at":"2015-10-20T05:48:06Z","updated_at":"2015-10-20T05:48:07Z","pushed_at":"2015-12-28T02:30:41Z","git_url":"git://github.com/HyukjinKwon/spark-csv.git","ssh_url":"git@github.com:HyukjinKwon/spark-csv.git","clone_url":"https://github.com/HyukjinKwon/spark-csv.git","svn_url":"https://github.com/HyukjinKwon/spark-csv","homepage":"http://databricks.com/","size":354,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"databricks:master","ref":"master","sha":"fb1976df79e4bab59e9e6f9246bc7225eba44d02","user":{"login":"databricks","id":4998052,"avatar_url":"https://avatars.githubusercontent.com/u/4998052?v=3","gravatar_id":"","url":"https://api.github.com/users/databricks","html_url":"https://github.com/databricks","followers_url":"https://api.github.com/users/databricks/followers","following_url":"https://api.github.com/users/databricks/following{/other_user}","gists_url":"https://api.github.com/users/databricks/gists{/gist_id}","starred_url":"https://api.github.com/users/databricks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/databricks/subscriptions","organizations_url":"https://api.github.com/users/databricks/orgs","repos_url":"https://api.github.com/users/databricks/repos","events_url":"https://api.github.com/users/databricks/events{/privacy}","received_events_url":"https://api.github.com/users/databricks/received_events","type":"Organization","site_admin":false},"repo":{"id":27461793,"name":"spark-csv","full_name":"databricks/spark-csv","owner":{"login":"databricks","id":4998052,"avatar_url":"https://avatars.githubusercontent.com/u/4998052?v=3","gravatar_id":"","url":"https://api.github.com/users/databricks","html_url":"https://github.com/databricks","followers_url":"https://api.github.com/users/databricks/followers","following_url":"https://api.github.com/users/databricks/following{/other_user}","gists_url":"https://api.github.com/users/databricks/gists{/gist_id}","starred_url":"https://api.github.com/users/databricks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/databricks/subscriptions","organizations_url":"https://api.github.com/users/databricks/orgs","repos_url":"https://api.github.com/users/databricks/repos","events_url":"https://api.github.com/users/databricks/events{/privacy}","received_events_url":"https://api.github.com/users/databricks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/databricks/spark-csv","description":"CSV data source for Spark SQL and DataFrames","fork":false,"url":"https://api.github.com/repos/databricks/spark-csv","forks_url":"https://api.github.com/repos/databricks/spark-csv/forks","keys_url":"https://api.github.com/repos/databricks/spark-csv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/databricks/spark-csv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/databricks/spark-csv/teams","hooks_url":"https://api.github.com/repos/databricks/spark-csv/hooks","issue_events_url":"https://api.github.com/repos/databricks/spark-csv/issues/events{/number}","events_url":"https://api.github.com/repos/databricks/spark-csv/events","assignees_url":"https://api.github.com/repos/databricks/spark-csv/assignees{/user}","branches_url":"https://api.github.com/repos/databricks/spark-csv/branches{/branch}","tags_url":"https://api.github.com/repos/databricks/spark-csv/tags","blobs_url":"https://api.github.com/repos/databricks/spark-csv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/databricks/spark-csv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/databricks/spark-csv/git/refs{/sha}","trees_url":"https://api.github.com/repos/databricks/spark-csv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/databricks/spark-csv/statuses/{sha}","languages_url":"https://api.github.com/repos/databricks/spark-csv/languages","stargazers_url":"https://api.github.com/repos/databricks/spark-csv/stargazers","contributors_url":"https://api.github.com/repos/databricks/spark-csv/contributors","subscribers_url":"https://api.github.com/repos/databricks/spark-csv/subscribers","subscription_url":"https://api.github.com/repos/databricks/spark-csv/subscription","commits_url":"https://api.github.com/repos/databricks/spark-csv/commits{/sha}","git_commits_url":"https://api.github.com/repos/databricks/spark-csv/git/commits{/sha}","comments_url":"https://api.github.com/repos/databricks/spark-csv/comments{/number}","issue_comment_url":"https://api.github.com/repos/databricks/spark-csv/issues/comments{/number}","contents_url":"https://api.github.com/repos/databricks/spark-csv/contents/{+path}","compare_url":"https://api.github.com/repos/databricks/spark-csv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/databricks/spark-csv/merges","archive_url":"https://api.github.com/repos/databricks/spark-csv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/databricks/spark-csv/downloads","issues_url":"https://api.github.com/repos/databricks/spark-csv/issues{/number}","pulls_url":"https://api.github.com/repos/databricks/spark-csv/pulls{/number}","milestones_url":"https://api.github.com/repos/databricks/spark-csv/milestones{/number}","notifications_url":"https://api.github.com/repos/databricks/spark-csv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/databricks/spark-csv/labels{/name}","releases_url":"https://api.github.com/repos/databricks/spark-csv/releases{/id}","created_at":"2014-12-03T00:56:21Z","updated_at":"2015-12-26T06:59:38Z","pushed_at":"2015-12-23T09:52:26Z","git_url":"git://github.com/databricks/spark-csv.git","ssh_url":"git@github.com:databricks/spark-csv.git","clone_url":"https://github.com/databricks/spark-csv.git","svn_url":"https://github.com/databricks/spark-csv","homepage":"http://databricks.com/","size":617,"stargazers_count":294,"watchers_count":294,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":129,"mirror_url":null,"open_issues_count":66,"forks":129,"open_issues":66,"watchers":294,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/databricks/spark-csv/pulls/220"},"html":{"href":"https://github.com/databricks/spark-csv/pull/220"},"issue":{"href":"https://api.github.com/repos/databricks/spark-csv/issues/220"},"comments":{"href":"https://api.github.com/repos/databricks/spark-csv/issues/220/comments"},"review_comments":{"href":"https://api.github.com/repos/databricks/spark-csv/pulls/220/comments"},"review_comment":{"href":"https://api.github.com/repos/databricks/spark-csv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/databricks/spark-csv/pulls/220/commits"},"statuses":{"href":"https://api.github.com/repos/databricks/spark-csv/statuses/17f2ca98a2c0a3eb3451c0e8be7ba1dc403f9175"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":40,"deletions":12,"changed_files":2}}