{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/7199","labels_url":"https://api.github.com/repos/apache/spark/issues/7199/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/7199/comments","events_url":"https://api.github.com/repos/apache/spark/issues/7199/events","html_url":"https://github.com/apache/spark/pull/7199","id":92744773,"number":7199,"title":"[SPARK-8501] [SQL] Avoids reading schema from empty ORC files","user":{"login":"liancheng","id":230655,"avatar_url":"https://avatars.githubusercontent.com/u/230655?v=3","gravatar_id":"","url":"https://api.github.com/users/liancheng","html_url":"https://github.com/liancheng","followers_url":"https://api.github.com/users/liancheng/followers","following_url":"https://api.github.com/users/liancheng/following{/other_user}","gists_url":"https://api.github.com/users/liancheng/gists{/gist_id}","starred_url":"https://api.github.com/users/liancheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liancheng/subscriptions","organizations_url":"https://api.github.com/users/liancheng/orgs","repos_url":"https://api.github.com/users/liancheng/repos","events_url":"https://api.github.com/users/liancheng/events{/privacy}","received_events_url":"https://api.github.com/users/liancheng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-07-02T22:00:55Z","updated_at":"2015-07-03T01:33:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/7199","html_url":"https://github.com/apache/spark/pull/7199","diff_url":"https://github.com/apache/spark/pull/7199.diff","patch_url":"https://github.com/apache/spark/pull/7199.patch"},"body":"ORC writes empty schema (`struct<>`) to ORC files containing zero rows.  This is OK for Hive since the table schema is managed by the metastore. But it causes trouble when reading raw ORC files via Spark SQL since we have to discover the schema from the files.\r\n\r\nNotice that the ORC data source always avoids writing empty ORC files, but it's still problematic when reading Hive tables which contain empty part-files."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/118207976","html_url":"https://github.com/apache/spark/pull/7199#issuecomment-118207976","issue_url":"https://api.github.com/repos/apache/spark/issues/7199","id":118207976,"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-07-03T01:33:20Z","updated_at":"2015-07-03T01:33:20Z","body":"Merged build started."}}