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

Ashish Thusoo commented on HIVE-753:
------------------------------------

Actually Eric and I had a long conversation about this yesterday. His immediate 
use case was for odbc to be able to support a sequence of queries and not 
necessarily set functions. We could eventually push in the set functions as 
well thorough odbc but that is more of a good to have at this point I think.

Regarding this particular change, if there is client specific syntax e.g the ! 
command or the dfs command, I feel that should be handled in the clients and 
not in the driver grammar unless we state that those features are not client 
specific. All this means is that it would be the responsibility of the client 
to carve out the correct sequence of hiveql statements to pass to the driver. 
It is for that reason the cli driver continues to send one statement at a time 
to Driver in this patch. The ordering issue would not arise at all in the above 
example as the client will process one statement at a time and only pass the 
selects to the driver. A more advanced client could figure out the contiguous 
set of such statements and then pass that over to the Driver but that is more 
of an optimization.

The sets would have to be eventually moved into the grammar as a number of 
query side optimizations are handled through those statements. Thoughts?

> Move parsing of multiple queries from CLI into Hive parser
> ----------------------------------------------------------
>
>                 Key: HIVE-753
>                 URL: https://issues.apache.org/jira/browse/HIVE-753
>             Project: Hadoop Hive
>          Issue Type: Sub-task
>            Reporter: Eric Hwang
>            Assignee: Eric Hwang
>            Priority: Minor
>         Attachments: HIVE-753.1.patch
>
>
> CLI breaks down queries containing multiple statements and submits them to 
> the Hive query parser one by one. This functionality should be added to the 
> Hive language grammar so that other clients may also submit multiple queries. 
> It will also make it easier to handle comments in Hive queries.

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