aboutsummaryrefslogtreecommitdiff
path: root/LICENSE
diff options
context:
space:
mode:
authorwindpiger <songjun@outlook.com>2017-01-27 17:17:17 -0800
committergatorsmile <gatorsmile@gmail.com>2017-01-27 17:17:17 -0800
commit1b5ee2003c368d18a5f8c17c2a869ef5770c60a1 (patch)
treed73dcb492c9e0b14e868a68eff748a498af5ecc9 /LICENSE
parentbb1a1fe05e293c480c88123d4c83a6b8c25f6e2e (diff)
downloadspark-1b5ee2003c368d18a5f8c17c2a869ef5770c60a1.tar.gz
spark-1b5ee2003c368d18a5f8c17c2a869ef5770c60a1.tar.bz2
spark-1b5ee2003c368d18a5f8c17c2a869ef5770c60a1.zip
[SPARK-19359][SQL] clear useless path after rename a partition with upper-case by HiveExternalCatalog
## What changes were proposed in this pull request? 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. ## How was this patch tested? unit test added Author: windpiger <songjun@outlook.com> Closes #16700 from windpiger/clearUselessPathAfterRenamPartition.
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions