[
https://issues.apache.org/jira/browse/IMPALA-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17577020#comment-17577020
]
ASF subversion and git services commented on IMPALA-11305:
----------------------------------------------------------
Commit 41a2352a79509a94c19d3d6a1388c52512465f50 in impala's branch
refs/heads/branch-4.1.1 from Riza Suminto
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=41a2352a7 ]
IMPALA-11305: Fix TypeError in impala-shell summary progress
impala-shell fail with TypeError when installed with python3. This is
due to behavior change of division operator ('/') between python2 vs
python3. This patch fix the issue by changing the operator with floor
division ('//') that result in integer type as described in
https://peps.python.org/pep-0238/.
Testing:
- Manually install impala-shell with from pip with python3 and verify
the fix works.
Change-Id: Ifbe4df6a7a4136e590f383fc6475e2283e35eadc
Reviewed-on: http://gerrit.cloudera.org:8080/18546
Reviewed-by: Impala Public Jenkins <[email protected]>
Reviewed-by: Michael Smith <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
> TypeError in impala-shell summary progress
> ------------------------------------------
>
> Key: IMPALA-11305
> URL: https://issues.apache.org/jira/browse/IMPALA-11305
> Project: IMPALA
> Issue Type: Bug
> Components: Clients
> Affects Versions: Impala 4.0.0, Impala 4.1.0
> Reporter: Riza Suminto
> Assignee: Riza Suminto
> Priority: Minor
> Labels: ramp-up, shell
> Fix For: Impala 4.2.0
>
>
> impala-shell failed with following error when installed using python3
> {code:java}
> File "/usr/local/lib/python3.6/site-packages/impala_shell/impala_shell.py",
> line 1102, in _periodic_wait_callback
> fragment_text = "[%s%s] %s%%\n" % ("#" * val, " " * (100 - val), val)
> TypeError: can't multiply sequence by non-int of type 'float'
> [Not connected] > {code}
> Val is a result of division operation. val type is integer in python2, but
> change to float in python3.
> This Jira is filed to note this issue along general works to make
> impala-shell compatible with python3 in IMPALA-3343.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]