Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
Impala 1.1
-
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)