diff options
author | Andrew Or <andrew@databricks.com> | 2016-05-11 15:30:53 -0700 |
---|---|---|
committer | Yin Huai <yhuai@databricks.com> | 2016-05-11 15:30:53 -0700 |
commit | 8881765ac7ac6ba6fe9ef0d0a669c08cca58ed93 (patch) | |
tree | ce398e3546ea551450856ba8397958b5175b325a /launcher/pom.xml | |
parent | 40ba87f769ab03721d01c7960b89a8c414fcfbca (diff) | |
download | spark-8881765ac7ac6ba6fe9ef0d0a669c08cca58ed93.tar.gz spark-8881765ac7ac6ba6fe9ef0d0a669c08cca58ed93.tar.bz2 spark-8881765ac7ac6ba6fe9ef0d0a669c08cca58ed93.zip |
[SPARK-15257][SQL] Require CREATE EXTERNAL TABLE to specify LOCATION
## What changes were proposed in this pull request?
Before:
```sql
-- uses warehouse dir anyway
CREATE EXTERNAL TABLE my_tab
-- doesn't actually delete the data
DROP TABLE my_tab
```
After:
```sql
-- no location is provided, throws exception
CREATE EXTERNAL TABLE my_tab
-- creates an external table using that location
CREATE EXTERNAL TABLE my_tab LOCATION '/path/to/something'
-- doesn't delete the data, which is expected
DROP TABLE my_tab
```
## How was this patch tested?
New test in `DDLCommandSuite`
Author: Andrew Or <andrew@databricks.com>
Closes #13032 from andrewor14/create-external-table-location.
Diffstat (limited to 'launcher/pom.xml')
0 files changed, 0 insertions, 0 deletions