GitHub user gatorsmile opened a pull request:
https://github.com/apache/spark/pull/16448
[SPARK-19048] [SQL] Delete Partition Location when Dropping Managed
Partitioned Tables in InMemoryCatalog
### What changes were proposed in this pull request?
The data in the managed table should be deleted after table is dropped.
However, if the partition location is not under the location of the partitioned
table, it is not dropped as expected. Users can specify any location for the
partition when they adding a partition.
This PR is to delete partition location when dropping managed partitioned
tables stored in `InMemoryCatalog`.
### How was this patch tested?
Added test cases for both HiveExternalCatalog and InMemoryCatalog
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gatorsmile/spark unsetSerdeProp
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/16448.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 #16448
----
commit 1dc12b31b5cbc1e4087e9d4030e7d4be55ebaab0
Author: gatorsmile <[email protected]>
Date: 2017-01-01T17:36:34Z
fix.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]