GitHub user gengliangwang opened a pull request:
https://github.com/apache/spark/pull/20766
[BackPort][SPARK-23490][SQL] Check storage.locationUri with existing table
in CreateTable
Backport #20660 to branch 2.3
=====================================
## 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 backport_20660_to_2.3
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/20766.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 #20766
----
commit 597125f1cdc5f87e7c256fa0cdad0209b107beff
Author: Wang Gengliang <gengliang.wang@...>
Date: 2018-02-23T05:49:25Z
[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
Author: Wang Gengliang <[email protected]>
Closes #20660 from gengliangwang/locationUri.
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]