GitHub user dongjoon-hyun opened a pull request: https://github.com/apache/spark/pull/22134
[SPARK-25143][SQL] Support data source name mapping configuration ## What changes were proposed in this pull request? Currently, for better UX, Apache Spark provides data source backward compatibility by using the predefined built-in `backwardCompatibilityMap`. - https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSource.scala#L564 Although this mapping table is maintained carefully, but it's not flexible when we have multiple implementations like Avro/CSV/ORC. This introduced many additional options to decide which implementation will be use for the registered `shortName` (like `csv`, `orc`, `avro`). This PR aims to extend Spark backward-compatibility-mapping capability by allowing users provide a custom mapping in a general manner as configuration. If a user faces some issue with the provided mapping, he/she can override it by configuration. Also, this will reduce the complexity in the code, too. ## How was this patch tested? Pass the Jenkins with a newly added test case. You can merge this pull request into a Git repository by running: $ git pull https://github.com/dongjoon-hyun/spark SPARK-25143 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/22134.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 #22134 ---- commit e477a8ed6d2ea331be357a6fbbb3d55c504971b1 Author: Dongjoon Hyun <dongjoon@...> Date: 2018-08-17T12:27:32Z [SPARK-25143][SQL] Support data source name mapping configuration ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org