[ 
https://issues.apache.org/jira/browse/IMPALA-7956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16717692#comment-16717692
 ] 

Tim Armstrong commented on IMPALA-7956:
---------------------------------------

Two options I mentioned on the CR:
* Get rid of the is_dml logic and just display whatever result set the server 
sends back (this is the same as other clients).
* Get the statement type from impala after the query is planned

> Use Impala SQL parser in Impala shell
> -------------------------------------
>
>                 Key: IMPALA-7956
>                 URL: https://issues.apache.org/jira/browse/IMPALA-7956
>             Project: IMPALA
>          Issue Type: Improvement
>          Components: Clients
>    Affects Versions: Impala 3.2.0
>            Reporter: Fredy Wijaya
>            Priority: Major
>
> Impala shell uses regular expression instead of a real SQL parser to 
> determine whether the with clause is a DML statement or not: 
> https://github.com/apache/impala/blob/ecf12bec42e11262b88dc0993e375fe4d8acaafb/shell/impala_shell.py#L1157.
>  We need to investigate on using Impala SQL parser instead.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org

Reply via email to