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

impala-shell only works with ascii characters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Impala 1.1
    • Impala 1.4
    • None
    • 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

            ishaan Ishaan Joshi
            lskuff Lenni Kuff
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: