GitHub user lianhuiwang opened a pull request:
https://github.com/apache/spark/pull/13170
[SPARK-15335] [SQL] Implement TRUNCATE TABLE Command
## What changes were proposed in this pull request?
Like TRUNCATE TABLE Command in Hive, TRUNCATE TABLE is also supported by
Hive. See the link:
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL
Below is the related Hive JIRA:
https://issues.apache.org/jira/browse/HIVE-446
This PR is to implement such a command for truncate table excluded column
truncation(HIVE-4005).
## How was this patch tested?
Added a test case.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/lianhuiwang/spark truncate
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/13170.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 #13170
----
commit cab94d59b2dc466fe861c8932bef3738592ea0ac
Author: Lianhui Wang <[email protected]>
Date: 2016-05-18T10:11:38Z
init commit
commit af1d230ae692b02c717b447122afcfdb67b4f113
Author: Lianhui Wang <[email protected]>
Date: 2016-05-18T10:14:26Z
Merge branch 'apache-master' into truncate
----
---
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]