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

Unable to CTRL+C an unfinished query in impala-shell

    XMLWordPrintableJSON

    Details

    • Epic Color:
      ghx-label-5

      Description

      When the query prompts after a line break it doesn't accept CTRL+C to cancel typing that query. Instead it waits for the user to terminate the query.

      default> select * from random_table
                               > ^C
                               > ^C
                               > ^C
                               > ^C
                               > ^C
                               > ^C
                               > ;
      

      In this case it's easy to terminate as only a ';' is needed but if the user messes up a complicated query involving multiple single qouotes, double quotes and their escaped versions then it might be difficult to find out what is missing and they won't be able to simply CTRL+C and start over.

      Note, without a line break in the query CTRL+C works fine:

      default> select * from random_table^C
      default>
      

        Attachments

          Activity

            People

            • Assignee:
              BoglarkaEgyed Boglarka Egyed
              Reporter:
              gaborkaszab Gabor Kaszab
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: