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

impala-shell only works with ascii characters

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: Impala 1.1
    • Fix Version/s: Impala 1.4
    • Component/s: None
    • Labels:
      None

      Description

      The impala-shell only works with ASCII characters. It seems to be an issue in the code stores results in history as well as builds multi-line commands.

      [localhost:21000] > select 'Ѳ'
                        > ;
      Traceback (most recent call last):
        File "/home/lskuff/dev/Impala/shell/impala_shell.py", line 1030, in <module>
          shell.cmdloop(intro)
        File "/usr/lib/python2.7/cmd.py", line 141, in cmdloop
          line = self.precmd(line)
        File "/home/lskuff/dev/Impala/shell/impala_shell.py", line 262, in precmd
          args = self.sanitise_input(args)
        File "/home/lskuff/dev/Impala/shell/impala_shell.py", line 196, in sanitise_input
          args = self.__check_for_command_completion(' '.join(tokens).strip())
        File "/home/lskuff/dev/Impala/shell/impala_shell.py", line 250, in __check_for_command_completion
          completed_cmd.replace('\n', ' '))
      UnicodeEncodeError: 'ascii' codec can't encode character u'\u0472' in position 8: ordinal not in range(128)
      

        Attachments

        1. impala-489.diff
          0.6 kB
          Shinya Okano

          Activity

            People

            • Assignee:
              ishaan Ishaan Joshi
              Reporter:
              lskuff Lenni Kuff
            • Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: