airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeffrey Payne (JIRA)" <j...@apache.org>
Subject [jira] [Work started] (AIRFLOW-2981) TypeError in dataflow operators when using GCS jar or py_file
Date Thu, 30 Aug 2018 19:57:00 GMT

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

Work on AIRFLOW-2981 started by Jeffrey Payne.
----------------------------------------------
>  TypeError in dataflow operators when using GCS jar or py_file
> --------------------------------------------------------------
>
>                 Key: AIRFLOW-2981
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2981
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: contrib, Dataflow
>    Affects Versions: 1.9.0, 1.10
>            Reporter: Jeffrey Payne
>            Assignee: Jeffrey Payne
>            Priority: Major
>
> The {{GoogleCloudBucketHelper.google_cloud_to_local}} function attempts to compare a
list to an int, resulting in the TypeError, with:
> {noformat}
> ...
> path_components = file_name[self.GCS_PREFIX_LENGTH:].split('/')
> if path_components < 2:
> ...
> {noformat}
> This should be {{if len(path_components) < 2:}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message