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 "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/03/20 05:27:00 UTC

[jira] [Commented] (IMPALA-3343) Impala-shell compatibility with python 3

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

ASF subversion and git services commented on IMPALA-3343:
---------------------------------------------------------

Commit ed15c2c58f75c47a1111690a30e81af3202e7f82 in impala's branch refs/heads/master from David Knupp
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=ed15c2c ]

IMPALA-3343: Part 1 -- Fix simple python 2->3 syntax errors

In an effort to keep the work of reviewing the changes more manageable
with regard to making the impala-shell python3 compatible, I'm trying
to break the patches up into smaller chunks.

The first patch is the easiest one -- simply addressing the handful of
syntax issues that aren't python 3 compatible, namely changing the
print statements to function calls, changing the way we catch exceptions,
and adding a few simple branches to work around the removal of such
things as dict.iteritems().

We needed the print function imported from __future__ because it allows
us to pass in a file descriptor, e.g., sys.stderr.

Notably, there's nothing in this patch related to string/bytes/unicode
changes from python 2 to 3.

Change-Id: I9a515da01ef03d5936cb1a4d9e4bc6d105386b1d
Reviewed-on: http://gerrit.cloudera.org:8080/15487
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>


> Impala-shell compatibility with python 3
> ----------------------------------------
>
>                 Key: IMPALA-3343
>                 URL: https://issues.apache.org/jira/browse/IMPALA-3343
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Clients
>    Affects Versions: Impala 2.5.0
>            Reporter: Peter Ebert
>            Assignee: David Knupp
>            Priority: Critical
>
> Installed Anaconda package and python 3, Impala shell has errors and will not run in the python 3 environment.



--
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