GitHub user gengliangwang opened a pull request: https://github.com/apache/spark/pull/23186
[SPARK-26230][SQL]FileIndex: if case sensitive, validate partitions with original column names ## What changes were proposed in this pull request? Partition column name is required to be unique under the same directory. The following paths are invalid partitioned directory: ``` hdfs://host:9000/path/a=1 hdfs://host:9000/path/b=2 ``` If case sensitive, the following paths should be invalid too: ``` hdfs://host:9000/path/a=1 hdfs://host:9000/path/A=2 ``` Since column 'a' and 'A' are different, and it is wrong to use either one as the column name in partition schema. Also, there is a `TODO` comment in the code. This PR is to resolve the problem. ## How was this patch tested? Add unit test You can merge this pull request into a Git repository by running: $ git pull https://github.com/gengliangwang/spark SPARK-26230 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/23186.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 #23186 ---- commit 6d052130051a21b9aa7c3ffce56a556bee129a5e Author: Gengliang Wang <gengliang.wang@...> Date: 2018-11-30T09:23:32Z if case sensitive, validate partitions with original column names ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org