GitHub user gengliangwang opened a pull request:
https://github.com/apache/spark/pull/20660
[SPARK-23490][SQL]Check storage.locationUri with existing table in
CreateTable
## 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 https://github.com/gengliangwang/spark locationUri
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/20660.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 #20660
commit d72f56d2cb4a4a3ba56f1013d0ddd21b145d299c
Author: Wang Gengliang
Date: 2018-02-22T15:35:28Z
Check storage.locationUri with existing table in CreateTable
---
-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org