Quanlong Huang has posted comments on this change. ( http://gerrit.cloudera.org:8080/18576 )
Change subject: IMPALA-11325: Fix UnicodeDecodeError for shell file output ...................................................................... Patch Set 2: (1 comment) http://gerrit.cloudera.org:8080/#/c/18576/2/shell/shell_output.py File shell/shell_output.py: http://gerrit.cloudera.org:8080/#/c/18576/2/shell/shell_output.py@120 PS2, Line 120: if sys.version_info.major == 2: Can we add a predicate for isinstance(formatted_data, str)? Then in Python 2, if a formatter returns 'unicode' type data, it can go to the else-clause. if sys.version_info.major == 2 and isinstance(formatted_data, str): -- To view, visit http://gerrit.cloudera.org:8080/18576 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ic40be3d530c2694465f7bd2edb0e0586ff0e1fba Gerrit-Change-Number: 18576 Gerrit-PatchSet: 2 Gerrit-Owner: Joe McDonnell <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Quanlong Huang <[email protected]> Gerrit-Comment-Date: Wed, 01 Jun 2022 13:35:31 +0000 Gerrit-HasComments: Yes
