You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Fang-Yu Rao (Jira)" <ji...@apache.org> on 2022/02/18 22:54:01 UTC

[jira] [Work started] (IMPALA-11133) compare_branches.py could fail if the author of a commit contains non-unicode characters

     [ https://issues.apache.org/jira/browse/IMPALA-11133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on IMPALA-11133 started by Fang-Yu Rao.
--------------------------------------------
> compare_branches.py could fail if the author of a commit contains non-unicode characters
> ----------------------------------------------------------------------------------------
>
>                 Key: IMPALA-11133
>                 URL: https://issues.apache.org/jira/browse/IMPALA-11133
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Infrastructure
>            Reporter: Fang-Yu Rao
>            Assignee: Fang-Yu Rao
>            Priority: Minor
>             Fix For: Impala 4.1.0
>
>
> We found that compare_branches.py could fail if the author of a commit contains non-unicode characters.
> For instance, if we try to compare a branch '{{{}apache-ref-master{}}}' consisting of a recently committed patch [https://gerrit.cloudera.org/c/18215/] (IMPALA-11113 and IMPALA-11114: fixed single_node_perf_run.py for TPCDS) to an older branch '{{{}cdw-master-staging{}}}' by "{{{}$IMPALA_HOME/bin/compare_branches.py --source_remote_name="" --source_branch apache-ref-master --target_remote_name="" --target_branch cdw-master-staging{}}}", we will get the following error message. Because the author field, i.e., "Gergely Fürnstáhl", contains no-unicode characters.
> {code:java}
> ...
> Traceback (most recent call last):
>   File "./bin/compare_branches.py", line 287, in <module>
>     main()
>   File "./bin/compare_branches.py", line 270, in main
>     print u'{0} {1} ({2}) - {3}'.format(commit_hash, msg, date, author)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 9: ordinal not in range(128)
> {code}
> One solution to resolving the issue is to surround '{{{}author{}}}' with '{{{}repr(){}}}'.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org