{"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":7,"created_at":"2016-02-19T10:21:07Z","updated_at":"2016-02-20T00:35:55Z","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 > Here, it tries to find out data source by file extensions if the `format()` is not called.\r\n > The auto-detection is based on given paths and it recognizes glob pattern as well but\r\n > it does not recursively check the sub-paths even if the given paths are directories.\r\n > This source detection goes the following steps\r\n >\r\n >   1. Check `provider` and use this if this is not `null`.\r\n >   2. If `provider` is not given, then it tries to detect the source types by extension.\r\n >      at this point, if detects only if all the given paths have the same extension.\r\n >   3. if it fails to detect, use the datasource given to `spark.sql.sources.default`.\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/186467181","html_url":"https://github.com/apache/spark/pull/11270#issuecomment-186467181","issue_url":"https://api.github.com/repos/apache/spark/issues/11270","id":186467181,"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-20T00:35:55Z","updated_at":"2016-02-20T00:35:55Z","body":"**[Test build #51584 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/51584/consoleFull)** for PR 11270 at commit [`23ba726`](https://github.com/apache/spark/commit/23ba7266358a3de4800bb65da316c20f60bbf7a8)."}}