{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/11270","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/11270/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/11270/comments","events_url":"https://api.github.com/repos/apache/spark/issues/11270/events","html_url":"https://github.com/apache/spark/pull/11270","id":134827732,"number":11270,"title":"[SPARK-8000][SQL] Support for auto-detecting data sources.","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":14,"created_at":"2016-02-19T10:21:07Z","updated_at":"2016-02-23T00:43:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/11270","html_url":"https://github.com/apache/spark/pull/11270","diff_url":"https://github.com/apache/spark/pull/11270.diff","patch_url":"https://github.com/apache/spark/pull/11270.patch"},"body":"https://issues.apache.org/jira/browse/SPARK-8000\r\n\r\nThis PR adds the support for detecting data source by extension.\r\n\r\nAs I described in comments, detection follows the steps below:\r\n\r\n> Detection steps follows:\r\n>  1. Firstly, this tries to check if one of the given paths has the extension. If it has,\r\n>   it detects data source based on that.\r\n>  2. If the path does not have an extension, then it tries to find a single leaf file from\r\n>   the gien path and then it tries to find an extension. If it has, it detects data source\r\n>   based on that.\r\n>  3. If this even fails, then it tries to read Parquet \"magic number\" to decide.\r\n\r\n\r\nEach tests has been added for each datasource.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/187455120","html_url":"https://github.com/apache/spark/pull/11270#issuecomment-187455120","issue_url":"https://api.github.com/repos/apache/spark/issues/11270","id":187455120,"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":"2016-02-23T00:43:05Z","updated_at":"2016-02-23T00:43:05Z","body":"Merged build finished. Test FAILed."}}