GitHub user marmbrus opened a pull request: https://github.com/apache/spark/pull/11572
[SPARK-13664][SQL] Cleanup Data Source resolution Follow-up to #11509, that simply refactors the interface that we use when resolving a pluggable `DataSource`. - Multiple functions share the same set of arguments so we make this a case class `DataSource`. Actual resolution is now done by calling a function. - Instead of having multiple methods named `apply` (some of which do writing some of which do reading) we now explicitly have `resolveRelation(...)` and `write(...)`. - Get rid of `Array[String]` since this is an internal API and was forcing us to call `toArray` in a bunch of places. You can merge this pull request into a Git repository by running: $ git pull https://github.com/marmbrus/spark dataSourceResolution Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/11572.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #11572 ---- commit 36969f8671ed396e9ed2027b8ee2c7435bbf7dfc Author: Michael Armbrust <mich...@databricks.com> Date: 2016-03-08T02:18:44Z [SPARK-13664][SQL] Cleanup Data Source resolution ---- --- 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