You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2018/09/02 18:05:04 UTC

[jira] [Commented] (AIRFLOW-2415) Airflow Operators are unable to support integers in templatized fields

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

Apache Spark commented on AIRFLOW-2415:
---------------------------------------

User 'ArgentFalcon' has created a pull request for this issue:
https://github.com/apache/incubator-airflow/pull/3410

> Airflow Operators are unable to support integers in templatized fields
> ----------------------------------------------------------------------
>
>                 Key: AIRFLOW-2415
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2415
>             Project: Apache Airflow
>          Issue Type: Bug
>    Affects Versions: Airflow 1.8, 2.0.0
>            Reporter: Max Payton
>            Assignee: Max Payton
>            Priority: Minor
>             Fix For: 1.10.0, 2.0.0
>
>
> Currently, if you have an operator with a template fields argument that is a dictionary, e.g.:
> {code:java}
> template_fields = ([dict_args])
> {code}
> And you populate that dictionary with a field that an integer in a DAG, e.g.:
> {code:java}
> Operator(
>     ...
>     dict_args = {'ds': '{{ ds }}', num_times: 5},
>     ...
> ){code}
> Then airflow will give you the following error:
> {code:java}
> {base_task_runner.py:95}
> INFO - Subtask: airflow.exceptions.AirflowException: Type '<type 'int'>' used for parameter 'dict_args[num_times]' is not supported for templating
> {code}



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