You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2017/02/07 17:38:41 UTC

[jira] [Commented] (SPARK-19359) partition path created by Hive should be deleted after rename a partition with upper-case

    [ https://issues.apache.org/jira/browse/SPARK-19359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15856376#comment-15856376 ] 

Apache Spark commented on SPARK-19359:
--------------------------------------

User 'cloud-fan' has created a pull request for this issue:
https://github.com/apache/spark/pull/16837

> partition path created by Hive should be deleted after rename a partition with upper-case
> -----------------------------------------------------------------------------------------
>
>                 Key: SPARK-19359
>                 URL: https://issues.apache.org/jira/browse/SPARK-19359
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>            Reporter: Song Jun
>            Assignee: Song Jun
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> Hive metastore is not case preserving and keep partition columns with lower case names. 
> If SparkSQL create a table with upper-case partion name use HiveExternalCatalog, when we rename partition, it first call the HiveClient to renamePartition, which will create a new lower case partition path, then SparkSql rename the lower case path to the upper-case.
> while if the renamed partition contains more than one depth partition ,e.g. A=1/B=2, hive renamePartition change to a=1/b=2, then SparkSql rename it to A=1/B=2, but the a=1 still exists in the filesystem, we should also delete it.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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