[ 
https://issues.apache.org/jira/browse/IMPALA-7956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tim Armstrong updated IMPALA-7956:
----------------------------------
    Description: 
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.

The shell does need to be able to correctly split SQL statements, but we'd like 
the rest of the SQL parsing to be done server-side.

  was: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.


> Avoid ad-hoc SQL parsing in 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.
> The shell does need to be able to correctly split SQL statements, but we'd 
> like the rest of the SQL parsing to be done server-side.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to