[ 
https://issues.apache.org/jira/browse/IMPALA-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17540238#comment-17540238
 ] 

Michael Smith edited comment on IMPALA-11305 at 5/20/22 5:48 PM:
-----------------------------------------------------------------

Seems like we can wrap the result in a cast, i.e. {{int("#" * val ...)}}


was (Author: JIRAUSER288956):
Seems like we can wrap the result in a cast, i.e. {{int("#" ...)}}

> 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
>            Reporter: Riza Suminto
>            Assignee: Riza Suminto
>            Priority: Minor
>              Labels: ramp-up, shell
>
> 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.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to