diff options
author | Andrew Or <andrew@databricks.com> | 2016-05-23 11:55:03 -0700 |
---|---|---|
committer | Andrew Or <andrew@databricks.com> | 2016-05-23 11:55:03 -0700 |
commit | 2585d2b322f3b6b85a0a12ddf7dcde957453000d (patch) | |
tree | 3346618e5e970969f4cc5acfa46787f0c46139c0 /sbin/start-slaves.sh | |
parent | 07c36a2f07fcf5da6fb395f830ebbfc10eb27dcc (diff) | |
download | spark-2585d2b322f3b6b85a0a12ddf7dcde957453000d.tar.gz spark-2585d2b322f3b6b85a0a12ddf7dcde957453000d.tar.bz2 spark-2585d2b322f3b6b85a0a12ddf7dcde957453000d.zip |
[SPARK-15279][SQL] Catch conflicting SerDe when creating table
## What changes were proposed in this pull request?
The user may do something like:
```
CREATE TABLE my_tab ROW FORMAT SERDE 'anything' STORED AS PARQUET
CREATE TABLE my_tab ROW FORMAT SERDE 'anything' STORED AS ... SERDE 'myserde'
CREATE TABLE my_tab ROW FORMAT DELIMITED ... STORED AS ORC
CREATE TABLE my_tab ROW FORMAT DELIMITED ... STORED AS ... SERDE 'myserde'
```
None of these should be allowed because the SerDe's conflict. As of this patch:
- `ROW FORMAT DELIMITED` is only compatible with `TEXTFILE`
- `ROW FORMAT SERDE` is only compatible with `TEXTFILE`, `RCFILE` and `SEQUENCEFILE`
## How was this patch tested?
New tests in `DDLCommandSuite`.
Author: Andrew Or <andrew@databricks.com>
Closes #13068 from andrewor14/row-format-conflict.
Diffstat (limited to 'sbin/start-slaves.sh')
0 files changed, 0 insertions, 0 deletions