GitHub user cloud-fan opened a pull request:

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

    [SPARK-19058][SQL] fix partition related behaviors with 
DataFrameWriter.saveAsTable

    ## What changes were proposed in this pull request?
    
    When we append data to a partitioned table with 
`DataFrameWriter.saveAsTable`, there are 2 issues:
    1. doesn't work when the partition has custom location.
    2. will recover all partitions
    
    This PR fixes them by moving the special partition handling code from 
`DataSourceAnalysis` to `InsertIntoHadoopFsRelationCommand`, so that the 
`DataFrameWriter.saveAsTable` code path can also benefit from it.
    
    ## How was this patch tested?
    
    newly added regression tests

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

    $ git pull https://github.com/cloud-fan/spark append

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

    https://github.com/apache/spark/pull/16460.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 #16460
    
----
commit 7f4f3602e6a6866987770cbe2cbb855b86fb3c86
Author: Wenchen Fan <[email protected]>
Date:   2017-01-03T13:04:53Z

    fix partition related behaviors with DataFrameWriter.saveAsTable

----


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