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

Eric Hwang commented on HIVE-753:
---------------------------------

@ Ashish - If you are referring to the Driver's original getPlan() method, I do 
not believe there are any callers of that method.

@ Raghu - Returning a list of ResultSets would also work. I do not believe that 
we should enforce whether or not the caller should be able to run multiple 
SELECT statements. If we were to add this ability to either error out or 
silence intermediate SELECT statements without side effects, then the 
SemanticAnalyzer will need to be able to classify statments w/ and w/o side 
effects.

Ideally, I think that the CLI driver should have its own grammar that extends 
Hive's grammar, allowing it to strip out CLI specific commands before passing 
it to Hive. Hive should only have to understand sequences of Hive queries. Any 
caller of this driver should be responsible for doing its own parsing and 
stripping out its own specific commands.

> 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