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

Ashish Thusoo commented on HIVE-1374:
-------------------------------------

Is doing explain on the query enough? If the proposal to convert queries into 
explains when run with -c option?

Also consider the following example in a query.hql script..


create table foo(bar string);

insert overwrite table foo select c1 from old_foo;

What would happen to the create statement in this compile only option?

Maybe it is better to provide a switch to do parse only checks?

> Query compile-only option
> -------------------------
>
>                 Key: HIVE-1374
>                 URL: https://issues.apache.org/jira/browse/HIVE-1374
>             Project: Hadoop Hive
>          Issue Type: New Feature
>    Affects Versions: 0.6.0
>            Reporter: Paul Yang
>            Assignee: Paul Yang
>
> A compile-only option might be useful for helping users quickly prototype 
> queries, fix errors, and do test runs. The proposed change would be adding a 
> -c switch that behaves like -e but only compiles the specified query.

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