Github user HyukjinKwon commented on the pull request: https://github.com/apache/spark/pull/11270#issuecomment-187031213 I submitted some more commits. In summary, 1. Added a `DataSourceDetect` class separatly. 2. Now, it only picks a single file. If the given path is directory, it goes deep and picks a single file if the directory does not have the extension. 3. I did not remove `sqlContext.conf.defaultDataSourceName` here as I see it is referred from relatively a lot of classes (so I thought I could do this in another PR).
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org