Quanlong Huang has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/18664


Change subject: IMPALA-11376: Fix impala shell build version not available
......................................................................

IMPALA-11376: Fix impala shell build version not available

When the build date in the version string contains non-ASCII characters,
impala-shell can't show the version due to implicit decoding/encoding
fail in string formatting. This patch fix it by explicitly decode/encode
the str using utf-8 in needs.

Tests
- We don't have build environments having non-ASCII characters in the
  build date string (depending on the locale). I test it locally where
  the date string is something like
  "2022年 06月 22日 星期三 09:54:17 CST".

Change-Id: Iabaebd48021eedc2806f0f004352a816cf5ad4b0
---
M shell/impala_shell.py
1 file changed, 11 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/64/18664/1
--
To view, visit http://gerrit.cloudera.org:8080/18664
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iabaebd48021eedc2806f0f004352a816cf5ad4b0
Gerrit-Change-Number: 18664
Gerrit-PatchSet: 1
Gerrit-Owner: Quanlong Huang <[email protected]>

Reply via email to