aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAndrew Or <andrew@databricks.com>2016-05-23 11:55:03 -0700
committerAndrew Or <andrew@databricks.com>2016-05-23 11:55:03 -0700
commit2585d2b322f3b6b85a0a12ddf7dcde957453000d (patch)
tree3346618e5e970969f4cc5acfa46787f0c46139c0 /python
parent07c36a2f07fcf5da6fb395f830ebbfc10eb27dcc (diff)
downloadspark-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 'python')
0 files changed, 0 insertions, 0 deletions