GitHub user chenghao-intel opened a pull request:

    https://github.com/apache/spark/pull/6458

    [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.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/chenghao-intel/spark ctas_column

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/6458.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #6458
    
----
commit afd18dd8e4cb1139aa9c6e34382ae69f50786f36
Author: Cheng Hao <[email protected]>
Date:   2015-05-28T15:12:19Z

    support specifying the column list for target table in CTAS

commit 9732d862d62ef120d9adadd9d83d501d61827170
Author: Cheng Hao <[email protected]>
Date:   2015-05-28T15:20:34Z

    fix bug in unit test

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to