GitHub user cloud-fan opened a pull request:
https://github.com/apache/spark/pull/12871
[SPARK-15093][SQL] create/delete/rename directory for InMemoryCatalog
operations if needed
## What changes were proposed in this pull request?
following operations have file system operation now:
1. CREATE DATABASE: create a dir
2. DROP DATABASE: delete the dir
3. ALTER DATABASE: rename the dir
4. CREATE TABLE: create a dir
5. DROP TABLE: delete the dir
6. RENAME TABLE: rename the dir
TODO:
we should also add file system operation for partition related operations,
like CREATE PARTITION. But one problem is, should we do transaction for it?
e.g. if we are trying to create 4 partitions, the first 3 success but the last
one failed because of some IO problems, should we roll back the first 3
partition directory creation?
## How was this patch tested?
todo
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloud-fan/spark catalog
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12871.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 #12871
----
commit 667f089a1ab4b3b733a2af7907e3aa00224d9ecc
Author: Wenchen Fan <[email protected]>
Date: 2016-05-03T14:25:44Z
create/delete/rename directory for InMemoryCatalog operations if needed
----
---
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]