Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-2640

Capitalization lost from statement name when impala-shell echoes the query

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: Impala 2.3.0
    • Fix Version/s: None
    • Component/s: Clients
    • Labels:

      Description

      I don't know how long this has been going on but I just noticed it recently.

      By default, impala-shell echoes the query after you type it, preserving the same capitalization the user entered. Except that the first word (i.e. the statement name) gets turned into all lowercase.

      > CREATE TABLE truncate_demo (x INT);
      Query: create TABLE truncate_demo (x INT)
       > SELECT * FROM truncate_demo;
      Query: select * FROM truncate_demo
      

      Notice how 'create' and 'select' were lowercased, while all other keywords were left with their original case. For me, the point of the Query: line is to have a conveniently copy-and-pasteable version of the original statement that I can put into a script or a document. If the case gets changed at all, that means some editing is required afterwards, which defeats the purpose.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jinchul Jin Chul Kim
                Reporter:
                jrussell John Russell
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: