You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Aizhamal Nurmamat kyzy (JIRA)" <ji...@apache.org> on 2019/05/17 20:19:01 UTC
[jira] [Updated] (AIRFLOW-2981) TypeError in dataflow operators
when using GCS jar or py_file
[ https://issues.apache.org/jira/browse/AIRFLOW-2981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aizhamal Nurmamat kyzy updated AIRFLOW-2981:
--------------------------------------------
Component/s: gcp
Moving to gcp component for component refactor.
> 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, gcp
> Affects Versions: 1.9.0, 2.0.0
> Reporter: Jeffrey Payne
> Assignee: Kaxil Naik
> Priority: Major
> Fix For: 1.10.1
>
>
> 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:}}.
> Also, fix {{if file_size > 0:}} in same function...
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)