GitHub user wangxiaojing opened a pull request:

    https://github.com/apache/spark/pull/2770

    [spark-3907][sql] add truncate table support

    JIRA issue: [SPARK-3907]https://issues.apache.org/jira/browse/SPARK-3907
    add turncate table support 
    TRUNCATE TABLE table_name [PARTITION partition_spec];
     
    partition_spec:
      : (partition_col = partition_col_value, partition_col = 
partiton_col_value, ...)
    Removes all rows from a table or partition(s). Currently target table 
should be native/managed table or exception will be thrown. User can specify 
partial partition_spec for truncating multiple partitions at once and omitting 
partition_spec will truncate all partitions in the table.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/wangxiaojing/spark spark-3907

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/2770.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 #2770
    
----
commit 77b1f2022d1a5b287fe43e9823f6d8b7934a969e
Author: wangxiaojing <[email protected]>
Date:   2014-10-11T16:08:26Z

     add truncate table support

----


---
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]

Reply via email to