You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (JIRA)" <ji...@apache.org> on 2018/12/03 11:55:00 UTC

[jira] [Resolved] (SPARK-26230) FileIndex: if case sensitive, validate partitions with original column names

     [ https://issues.apache.org/jira/browse/SPARK-26230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wenchen Fan resolved SPARK-26230.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0

Issue resolved by pull request 23186
[https://github.com/apache/spark/pull/23186]

> FileIndex: if case sensitive, validate partitions with original column names
> ----------------------------------------------------------------------------
>
>                 Key: SPARK-26230
>                 URL: https://issues.apache.org/jira/browse/SPARK-26230
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Gengliang Wang
>            Assignee: Gengliang Wang
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> 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` in the code. This PR is to resolve the problem.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org