diff options
author | Cheng Hao <hao.cheng@intel.com> | 2014-11-03 13:59:43 -0800 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2014-11-03 13:59:43 -0800 |
commit | e83f13e8d37ca33f4e183e977d077221b90c6025 (patch) | |
tree | ca4225da3ff6200063eab253c4b111435c4f862d /docs/graphx-programming-guide.md | |
parent | c238fb423d1011bd1b1e6201d769b72e52664fc6 (diff) | |
download | spark-e83f13e8d37ca33f4e183e977d077221b90c6025.tar.gz spark-e83f13e8d37ca33f4e183e977d077221b90c6025.tar.bz2 spark-e83f13e8d37ca33f4e183e977d077221b90c6025.zip |
[SPARK-4152] [SQL] Avoid data change in CTAS while table already existed
CREATE TABLE t1 (a String);
CREATE TABLE t1 AS SELECT key FROM src; – throw exception
CREATE TABLE if not exists t1 AS SELECT key FROM src; – expect do nothing, currently it will overwrite the t1, which is incorrect.
Author: Cheng Hao <hao.cheng@intel.com>
Closes #3013 from chenghao-intel/ctas_unittest and squashes the following commits:
194113e [Cheng Hao] fix bug in CTAS when table already existed
Diffstat (limited to 'docs/graphx-programming-guide.md')
0 files changed, 0 insertions, 0 deletions