GitHub user andrewor14 opened a pull request:
https://github.com/apache/spark/pull/13302
[SPARK-15534][SPARK-15535][SQL] Truncate table fixes
## What changes were proposed in this pull request?
Two changes:
- When things fail, `TRUNCATE TABLE` just returns nothing. Instead, we
should throw exceptions.
- Remove `TRUNCATE TABLE ... COLUMN`, which was never supported by either
Spark or Hive.
## How was this patch tested?
Jenkins.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/andrewor14/spark truncate-table
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/13302.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 #13302
----
commit 0931f9c05a848b138abefdee7a40fd004d486141
Author: Andrew Or <[email protected]>
Date: 2016-05-25T20:33:46Z
Throw exceptions + remove TRUNCATE TABLE ... COLUMN
----
---
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]