You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Fredy Wijaya (JIRA)" <ji...@apache.org> on 2018/05/26 05:43:00 UTC

[jira] [Resolved] (IMPALA-7042) Unmatched quotes in comments confuse shell

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

Fredy Wijaya resolved IMPALA-7042.
----------------------------------
    Resolution: Not A Bug

> Unmatched quotes in comments confuse shell
> ------------------------------------------
>
>                 Key: IMPALA-7042
>                 URL: https://issues.apache.org/jira/browse/IMPALA-7042
>             Project: IMPALA
>          Issue Type: Bug
>    Affects Versions: Impala 2.12.0
>            Reporter: Alan Jackoway
>            Priority: Major
>
> This jira is really similar to IMPALA-696 and IMPALA-2803 each of which claim to be fixed, but this is still happening to me on 2.12.0.
> Basically the issue is that this command requires you to close the quote in impala-shell:
> {code:sql}
> > -- Alan's test query
> > select 1 + 1;
> > ';
> {code}
> Then it runs after closing the quote on the third line.
> With a double quote, the behavior is even worse:
> {code:sql}
> > -- Alan"s test query
> > select 1 + 1;
> > ";
> > ";
> {code}
> I haven't found any way to convince impala the quote is closed and run the query with a double quote in the comment. Fortunately unmatched double quotes in comments should be rare. Unmatched single quotes come up in our comments fairly frequently, which is how I found this.



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