You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/10/18 19:55:00 UTC

[jira] [Commented] (AIRFLOW-1694) Hive Hooks: Python 3 does not have an `itertools.izip` function

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

ASF subversion and git services commented on AIRFLOW-1694:
----------------------------------------------------------

Commit c6e5ae7c57224ceb52cbf8d15b3362afd3616053 in incubator-airflow's branch refs/heads/v1-9-test from Yati Sagade
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=c6e5ae7 ]

[AIRFLOW-1694] Stop using itertools.izip

Itertools.zip does not exist in Python 3.

Closes #2674 from yati-sagade/fix-py3-zip

(cherry picked from commit 6110139a8fd7069c87e3c99b3976865576180f67)
Signed-off-by: Bolke de Bruin <bo...@xs4all.nl>


> Hive Hooks: Python 3 does not have an `itertools.izip` function
> ---------------------------------------------------------------
>
>                 Key: AIRFLOW-1694
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1694
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: hive_hooks
>            Reporter: Yati
>             Fix For: 1.9.0
>
>
> In `hooks/hive_hooks.py`, we have a use of `itertools.izip()`, which would not work in Python 3, but the builtin `zip()` returns an iterator. `six.moves` can be used from either Python 2/3 to import such objects that have been moved around.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)