hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward Capriolo (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HIVE-753) Move parsing of multiple queries from CLI into Hive parser
Date Thu, 13 Aug 2009 22:25:14 GMT

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


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

select * from table;
! ls ;
dfs -ls / ;
select * from table;

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

! ls ;
dfs -ls / ;
select * from table;
select * from table;

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.

View raw message