diff options
author | Andrew Or <andrew@databricks.com> | 2016-05-11 17:29:58 -0700 |
---|---|---|
committer | Andrew Or <andrew@databricks.com> | 2016-05-11 17:29:58 -0700 |
commit | f14c4ba001fbdbcc9faa46896f1f9d08a7d06609 (patch) | |
tree | 7d8766a57cafe31ac076a35bcbc603e752928816 /python | |
parent | b9cf617a6fa8812b45ff33acd109757a59f91dfa (diff) | |
download | spark-f14c4ba001fbdbcc9faa46896f1f9d08a7d06609.tar.gz spark-f14c4ba001fbdbcc9faa46896f1f9d08a7d06609.tar.bz2 spark-f14c4ba001fbdbcc9faa46896f1f9d08a7d06609.zip |
[SPARK-15276][SQL] CREATE TABLE with LOCATION should imply EXTERNAL
## What changes were proposed in this pull request?
Before:
```sql
-- uses that location but issues a warning
CREATE TABLE my_tab LOCATION /some/path
-- deletes any existing data in the specified location
DROP TABLE my_tab
```
After:
```sql
-- uses that location but creates an EXTERNAL table instead
CREATE TABLE my_tab LOCATION /some/path
-- does not delete the data at /some/path
DROP TABLE my_tab
```
This patch essentially makes the `EXTERNAL` field optional. This is related to #13032.
## How was this patch tested?
New test in `DDLCommandSuite`.
Author: Andrew Or <andrew@databricks.com>
Closes #13060 from andrewor14/location-implies-external.
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions