GitHub user lcqzte10192193 opened a pull request:

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

    SPARK-25774 truncate table with partition and path

    ## What changes were proposed in this pull request?
    when we run SPARK SQL TRUNCATE TABLE command on a  managed table in Hive, 
it deletes the files in HDFS but leaves the partitions and partition folder 
structure,more details refers to SPARK-25774.This pr is to resolve this problem.
    
    ## How was this patch tested?
    
    DDLSuite
    
    Please review http://spark.apache.org/contributing.html before opening a 
pull request.


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

    $ git pull https://github.com/lcqzte10192193/spark wid-lcq-1126

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

    https://github.com/apache/spark/pull/23140.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 #23140
    
----
commit a902f4c233d8199d2461dbad9492d34d5179a1cc
Author: lichaoqun <li.chaoqun@...>
Date:   2018-11-26T03:20:24Z

    SPARK-25774 truncate table with partition and path

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to