[ 
https://issues.apache.org/jira/browse/HIVE-31?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12760775#action_12760775
 ] 

Ning Zhang commented on HIVE-31:
--------------------------------

Chatted with Prasad offline. The decision to move the task of 
DDLSemanticAnalyzer to SemanticAnalyzer is to have a single SemanticAnalyzer 
instance for the whole CTAS statement (otherwise, a SemanticsAnalyzer is needed 
for the SELECT part to get the resulting schema, and a DDLSemanticAnalyzer for 
the CREATE TABLE part). With one instance of SA, all info is shared and don't 
need to pass around. 

Another issue Prasad raised is that the DDLWork is chained as the root task, 
and that should be moved to the end of the task chain. I will change that in 
the next revision. 

> Hive: support CREATE TABLE xxx SELECT yyy.* FROM yyy
> ----------------------------------------------------
>
>                 Key: HIVE-31
>                 URL: https://issues.apache.org/jira/browse/HIVE-31
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Zheng Shao
>            Assignee: Ning Zhang
>         Attachments: HIVE-31.patch
>
>
> We should allow users to create a table using query result, without 
> specifying the column names and column types.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to