GitHub user gengliangwang opened a pull request:

    [SPARK-23490][SQL]Check storage.locationUri with existing table in 

    ## What changes were proposed in this pull request?
    For CreateTable with Append mode, we should check if `storage.locationUri` 
is the same with existing table in `PreprocessTableCreation`
    In the current code, there is only a simple exception if the 
`storage.locationUri` is different with existing table:
    `org.apache.spark.sql.AnalysisException: Table or view not found:`
    which can be improved.
    ## How was this patch tested?
    Unit test

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

    $ git pull locationUri

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

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #20660
commit d72f56d2cb4a4a3ba56f1013d0ddd21b145d299c
Author: Wang Gengliang <>
Date:   2018-02-22T15:35:28Z

    Check storage.locationUri with existing table in CreateTable



To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to