{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/14537","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/14537/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/14537/comments","events_url":"https://api.github.com/repos/apache/spark/issues/14537/events","html_url":"https://github.com/apache/spark/pull/14537","id":169869084,"number":14537,"title":"[SPARK-16948][SQL] Querying empty partitioned orc tables  throws exceptions","user":{"login":"rajeshbalamohan","id":323339,"avatar_url":"https://avatars.githubusercontent.com/u/323339?v=3","gravatar_id":"","url":"https://api.github.com/users/rajeshbalamohan","html_url":"https://github.com/rajeshbalamohan","followers_url":"https://api.github.com/users/rajeshbalamohan/followers","following_url":"https://api.github.com/users/rajeshbalamohan/following{/other_user}","gists_url":"https://api.github.com/users/rajeshbalamohan/gists{/gist_id}","starred_url":"https://api.github.com/users/rajeshbalamohan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajeshbalamohan/subscriptions","organizations_url":"https://api.github.com/users/rajeshbalamohan/orgs","repos_url":"https://api.github.com/users/rajeshbalamohan/repos","events_url":"https://api.github.com/users/rajeshbalamohan/events{/privacy}","received_events_url":"https://api.github.com/users/rajeshbalamohan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-08T08:30:45Z","updated_at":"2016-08-09T22:10:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/14537","html_url":"https://github.com/apache/spark/pull/14537","diff_url":"https://github.com/apache/spark/pull/14537.diff","patch_url":"https://github.com/apache/spark/pull/14537.patch"},"body":"## What changes were proposed in this pull request?\r\nQuerying empty partitioned ORC tables from spark-sql throws exception with `spark.sql.hive.convertMetastoreOrc=true`.  This is due to the fact that the inferschema() would end up throwing `FileNotFoundException` when no files are present in partitioned orc tables.  Patch attempts to fix it, wherein it would fall back to metastore based schema information. \r\n\r\n## How was this patch tested?\r\nIncluded unit tests and also tested it in small scale cluster.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/238708148","html_url":"https://github.com/apache/spark/pull/14537#issuecomment-238708148","issue_url":"https://api.github.com/repos/apache/spark/issues/14537","id":238708148,"user":{"login":"rajeshbalamohan","id":323339,"avatar_url":"https://avatars.githubusercontent.com/u/323339?v=3","gravatar_id":"","url":"https://api.github.com/users/rajeshbalamohan","html_url":"https://github.com/rajeshbalamohan","followers_url":"https://api.github.com/users/rajeshbalamohan/followers","following_url":"https://api.github.com/users/rajeshbalamohan/following{/other_user}","gists_url":"https://api.github.com/users/rajeshbalamohan/gists{/gist_id}","starred_url":"https://api.github.com/users/rajeshbalamohan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajeshbalamohan/subscriptions","organizations_url":"https://api.github.com/users/rajeshbalamohan/orgs","repos_url":"https://api.github.com/users/rajeshbalamohan/repos","events_url":"https://api.github.com/users/rajeshbalamohan/events{/privacy}","received_events_url":"https://api.github.com/users/rajeshbalamohan/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T22:10:25Z","updated_at":"2016-08-09T22:10:25Z","body":"Thanks @mallman . Fixed review comments in latest commit."}}
{"actor":{"display_login":"rajeshbalamohan"}}