{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/23173","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/23173/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/23173/comments","events_url":"https://api.github.com/repos/apache/spark/issues/23173/events","html_url":"https://github.com/apache/spark/pull/23173","id":385435488,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0NDA3Mjk2","number":23173,"title":"[SPARK-26208][SQL] add headers to empty csv files when header=true","user":{"login":"koertkuipers","id":821284,"node_id":"MDQ6VXNlcjgyMTI4NA==","avatar_url":"https://avatars3.githubusercontent.com/u/821284?v=4","gravatar_id":"","url":"https://api.github.com/users/koertkuipers","html_url":"https://github.com/koertkuipers","followers_url":"https://api.github.com/users/koertkuipers/followers","following_url":"https://api.github.com/users/koertkuipers/following{/other_user}","gists_url":"https://api.github.com/users/koertkuipers/gists{/gist_id}","starred_url":"https://api.github.com/users/koertkuipers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koertkuipers/subscriptions","organizations_url":"https://api.github.com/users/koertkuipers/orgs","repos_url":"https://api.github.com/users/koertkuipers/repos","events_url":"https://api.github.com/users/koertkuipers/events{/privacy}","received_events_url":"https://api.github.com/users/koertkuipers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-11-28T20:05:14Z","updated_at":"2018-11-30T04:59:12Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/23173","html_url":"https://github.com/apache/spark/pull/23173","diff_url":"https://github.com/apache/spark/pull/23173.diff","patch_url":"https://github.com/apache/spark/pull/23173.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nAdd headers to empty csv files when header=true, because otherwise these files are invalid when reading.\r\n\r\n## How was this patch tested?\r\n\r\nAdded test for roundtrip of empty dataframe to csv file with headers and back in CSVSuite\r\n\r\nPlease review http://spark.apache.org/contributing.html before opening a pull request.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/443091731","html_url":"https://github.com/apache/spark/pull/23173#issuecomment-443091731","issue_url":"https://api.github.com/repos/apache/spark/issues/23173","id":443091731,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzA5MTczMQ==","user":{"login":"AmplabJenkins","id":4031291,"node_id":"MDQ6VXNlcjQwMzEyOTE=","avatar_url":"https://avatars3.githubusercontent.com/u/4031291?v=4","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":"2018-11-30T04:59:12Z","updated_at":"2018-11-30T04:59:12Z","author_association":"NONE","body":"Test PASSed.\nRefer to this link for build results (access rights to CI server needed): \nhttps://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/99486/\nTest PASSed."}}
{"actor":{"display_login":"AmplabJenkins"}}