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

Edward Capriolo commented on HIVE-753:
--------------------------------------

Eric,

I see what you are saying, consider a query like this

{noformat}
select * from table;
! ls ;
dfs -ls / ;
select * from table;
{noformat}

For the results to come back in order entered the query processor and CliDriver 
would have to shift control back and forth during the sequence.  Otherwise the 
results might come back like.

{noformat}
! ls ;
dfs -ls / ;
select * from table;
select * from table;
{noformat}

I realize that ! and dfs are quick helpers and not part of HiveQL. So I agree 
with you the CLI Driver should strip out commands, but it also should be able 
to insert the results back into the result stream in the correct order, or we 
agree that they will be executed before or after the QL. How should it work?


> 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