You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Jinchul Kim (JIRA)" <ji...@apache.org> on 2017/12/16 07:21:00 UTC

[jira] [Resolved] (IMPALA-4664) Impala shell can accidentally convert certain literal strings to lowercase

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

Jinchul Kim resolved IMPALA-4664.
---------------------------------
       Resolution: Fixed
    Fix Version/s: Impala 2.11.0

> Impala shell can accidentally convert certain literal strings to lowercase
> --------------------------------------------------------------------------
>
>                 Key: IMPALA-4664
>                 URL: https://issues.apache.org/jira/browse/IMPALA-4664
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Clients, Infrastructure
>    Affects Versions: Impala 2.7.1
>            Reporter: Andre Araujo
>            Assignee: Jinchul Kim
>              Labels: newbie
>             Fix For: Impala 2.11.0
>
>
> Impala shell splits each command into tokens and then converts the first token to lowercase to figure out how it should execute the command.
> The [splitting|https://github.com/cloudera/Impala/blob/8d10431dab36987b678964cbdd46c544e4018056/shell/impala_shell.py#L272] is done by spaces only. Thus, if the user types a TAB after the SELECT, the first token after the split becomes the SELECT plus whatever comes after it.
> The command is still executed through the default Impala shell method, which sends the full command text to Impala. However, the first piece after the SELECT gets converted to lowercase:
> {code}
>                                      \/\/-------------------this is a TAB
> [certtoolkit-permit-2:21000] > select   'DIG' as dim;
> Query: select 'dig' as dim
> Query submitted at: 2016-12-14 16:15:59 (Coordinator: https://certtoolkit-permit-2.gce.cloudera.com:25000)
> Query progress can be monitored at: https://certtoolkit-permit-2.gce.cloudera.com:25000/query_plan?query_id=f14305e9c0893af8:c19255d900000000
> +-----+
> | dim |
> +-----+
> | dig |
> +-----+
> Fetched 1 row(s) in 0.02s
> {code}
> This can easily happen if the user is copying and pasting commands into impala-shell



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)