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 "Quanlong Huang (Jira)" <ji...@apache.org> on 2021/02/05 13:22:00 UTC

[jira] [Updated] (IMPALA-9721) Fix python 3 compatibility regression in impala-shell

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

Quanlong Huang updated IMPALA-9721:
-----------------------------------
    Fix Version/s: Impala 3.4.1
                   Impala 4.0

> Fix python 3 compatibility regression in impala-shell
> -----------------------------------------------------
>
>                 Key: IMPALA-9721
>                 URL: https://issues.apache.org/jira/browse/IMPALA-9721
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Clients
>            Reporter: David Knupp
>            Assignee: David Knupp
>            Priority: Major
>             Fix For: Impala 4.0, Impala 3.4.1
>
>
> The fix for IMPALA-9398 introduced a small regression with regard to python 3 compatibility. We don't have python 3 tests yet to catch regression of this this type, and it was missed in code review.
> The regression happens in two places. An example is:
> https://github.com/apache/impala/blob/master/shell/impala_shell.py#L248
> The syntax for catching exceptions has changed in python 3 to require the "as" keyword.
> {noformat}
> try:
>   do_stuff()
> except <exception> as e:
>   panic()
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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