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

Fredy Wijaya resolved IMPALA-2195.
----------------------------------
       Resolution: Fixed
    Fix Version/s: Impala 3.1.0
                   Impala 2.13.0

> Improper handling of comments in queries
> ----------------------------------------
>
>                 Key: IMPALA-2195
>                 URL: https://issues.apache.org/jira/browse/IMPALA-2195
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: Impala 2.2, Impala 2.3.0
>            Reporter: bharath v
>            Assignee: Fredy Wijaya
>            Priority: Minor
>              Labels: shell
>             Fix For: Impala 2.13.0, Impala 3.1.0
>
>
> Shell doesn't handle comments properly while executing the queries. For 
> example, 
> {noformat}
> [impalad:21000] > ----- random comment 1
> -----### random comment 2
> insert overwrite test2 select * from test1;
> Query: ----- random comment 1
> -----### random comment 2
> insert overwrite test2 select * from test1
> Fetched 0 row(s) in 3.53s
> {noformat}
> Stderr for an insert query shows up as "Fetched 0 row(s)" instead of 
> "Inserted 1 row(s)" . This happens because the shell parser doesn't detect 
> this as an insert query due to the presence of comments.  We don't strip the 
> comments before sending them to Cmd control, due which the default() method 
> is applied instead of do_insert().



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

Reply via email to