{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/11023","labels_url":"https://api.github.com/repos/apache/spark/issues/11023/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/11023/comments","events_url":"https://api.github.com/repos/apache/spark/issues/11023/events","html_url":"https://github.com/apache/spark/pull/11023","id":130614181,"number":11023,"title":"[SPARK-13137][SQL] NullPoingException in schema inference for CSV when the first line is empty","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-02T08:42:58Z","updated_at":"2016-02-02T08:49:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/11023","html_url":"https://github.com/apache/spark/pull/11023","diff_url":"https://github.com/apache/spark/pull/11023.diff","patch_url":"https://github.com/apache/spark/pull/11023.patch"},"body":"https://issues.apache.org/jira/browse/SPARK-13137\r\n\r\nThis PR adds a filter in schema inference so that it does not emit NullPointException.\r\n\r\nAlso, I removed `MAX_COMMENT_LINES_IN_HEADER `but instead used a monad chaining with `filter()` and `first()`.\r\n\r\nLastly, I simply added a newline rather than adding a new file for this so that this is covered with the original tests."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/178452692","html_url":"https://github.com/apache/spark/pull/11023#issuecomment-178452692","issue_url":"https://api.github.com/repos/apache/spark/issues/11023","id":178452692,"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-02-02T08:49:26Z","updated_at":"2016-02-02T08:49:26Z","body":"**[Test build #50563 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/50563/consoleFull)** for PR 11023 at commit [`5214e8a`](https://github.com/apache/spark/commit/5214e8a281e77da5d4451a29a553352959af84ab)."}}