diff options
author | Cheng Hao <hao.cheng@intel.com> | 2015-06-11 14:03:08 -0700 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2015-06-11 14:03:08 -0700 |
commit | 040f223c5b9ca724c9f2b4abb59c21b3a23720ba (patch) | |
tree | a05325ba5a7ef0fbd58996dfbaa0608bdfe54b2c /sql/hive-thriftserver/src | |
parent | c8d551d546979e126c91925487e30c353185e3ba (diff) | |
download | spark-040f223c5b9ca724c9f2b4abb59c21b3a23720ba.tar.gz spark-040f223c5b9ca724c9f2b4abb59c21b3a23720ba.tar.bz2 spark-040f223c5b9ca724c9f2b4abb59c21b3a23720ba.zip |
[SPARK-7915] [SQL] Support specifying the column list for target table in CTAS
```
create table t1 (a int, b string) as select key, value from src;
desc t1;
key int NULL
value string NULL
```
Thus Hive doesn't support specifying the column list for target table in CTAS, however, we should either throwing exception explicity, or supporting the this feature, we just pick up the later one, which seems useful and straightforward.
Author: Cheng Hao <hao.cheng@intel.com>
Closes #6458 from chenghao-intel/ctas_column and squashes the following commits:
d1fa9b6 [Cheng Hao] bug in unittest
4e701aa [Cheng Hao] update as feedback
f305ec1 [Cheng Hao] support specifying the column list for target table in CTAS
Diffstat (limited to 'sql/hive-thriftserver/src')
0 files changed, 0 insertions, 0 deletions