{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/23130","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/23130/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/23130/comments","events_url":"https://api.github.com/repos/apache/spark/issues/23130/events","html_url":"https://github.com/apache/spark/pull/23130","id":384008654,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzMzMxNzk5","number":23130,"title":"[SPARK-26161][SQL] Ignore empty files in load","user":{"login":"MaxGekk","id":1580697,"node_id":"MDQ6VXNlcjE1ODA2OTc=","avatar_url":"https://avatars1.githubusercontent.com/u/1580697?v=4","gravatar_id":"","url":"https://api.github.com/users/MaxGekk","html_url":"https://github.com/MaxGekk","followers_url":"https://api.github.com/users/MaxGekk/followers","following_url":"https://api.github.com/users/MaxGekk/following{/other_user}","gists_url":"https://api.github.com/users/MaxGekk/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxGekk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxGekk/subscriptions","organizations_url":"https://api.github.com/users/MaxGekk/orgs","repos_url":"https://api.github.com/users/MaxGekk/repos","events_url":"https://api.github.com/users/MaxGekk/events{/privacy}","received_events_url":"https://api.github.com/users/MaxGekk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-11-24T17:54:52Z","updated_at":"2018-11-27T19:17:27Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/23130","html_url":"https://github.com/apache/spark/pull/23130","diff_url":"https://github.com/apache/spark/pull/23130.diff","patch_url":"https://github.com/apache/spark/pull/23130.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nIn the PR, I propose filtering out all empty files inside of `FileSourceScanExec` and exclude them from file splits. It should reduce overhead of opening and reading files without any data, and as consequence datasources will not produce empty partitions for such files.\r\n\r\n## How was this patch tested?\r\n\r\nAdded a test which creates an empty and non-empty files. If empty files are ignored in load, Text datasource in the `wholetext` mode must create only one partition for non-empty file.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/442182235","html_url":"https://github.com/apache/spark/pull/23130#issuecomment-442182235","issue_url":"https://api.github.com/repos/apache/spark/issues/23130","id":442182235,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjE4MjIzNQ==","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-27T19:17:27Z","updated_at":"2018-11-27T19:17:27Z","author_association":"NONE","body":"Merged build finished. Test PASSed."}}
{"actor":{"display_login":"AmplabJenkins"}}