airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Moe Nadal (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AIRFLOW-1521) Template fields definition for bigquery_table_delete_operator doesn't work
Date Fri, 18 Aug 2017 22:06:00 GMT

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

Moe Nadal updated AIRFLOW-1521:
-------------------------------
    Description: 
I obtain the following error when trying to use the `bigquery_table_delete_operator` with
the recent fix to add the field `deletion_dataset_table` in the list of template fields :


`[2017-08-18 10:58:30,556] {models.py:1426} ERROR - 'BigQueryTableDeleteOperator' object has
no attribute 'd'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/airflow/models.py", line 1368, in run
    self.render_templates()
  File "/usr/lib/python2.7/site-packages/airflow/models.py", line 1587, in render_templates
    content = getattr(task, attr)
AttributeError: 'BigQueryTableDeleteOperator' object has no attribute 'd'`

This is caused by python behavior which interpret a list with only one string as a list of
characters : 
`template_fields = ('deletion_dataset_table')`

I'm preparing a PR to change it to : 
`template_fields = ('deletion_dataset_table',)`

Link for the PR : https://github.com/apache/incubator-airflow/pull/2534

  was:
I obtain the following error when trying to use the `bigquery_table_delete_operator` with
the recent fix to add the field `deletion_dataset_table` in the list of template fields :


`[2017-08-18 10:58:30,556] {models.py:1426} ERROR - 'BigQueryTableDeleteOperator' object has
no attribute 'd'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/airflow/models.py", line 1368, in run
    self.render_templates()
  File "/usr/lib/python2.7/site-packages/airflow/models.py", line 1587, in render_templates
    content = getattr(task, attr)
AttributeError: 'BigQueryTableDeleteOperator' object has no attribute 'd'`

This is caused by python behavior which interpret a list with only one string as a list of
characters : 
`template_fields = ('deletion_dataset_table')`

I'm preparing a PR to change it to : 
`template_fields = ('deletion_dataset_table',)`




> Template fields definition for bigquery_table_delete_operator doesn't work
> --------------------------------------------------------------------------
>
>                 Key: AIRFLOW-1521
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1521
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: contrib
>    Affects Versions: Airflow 1.8
>            Reporter: Moe Nadal
>            Priority: Minor
>             Fix For: 1.8.2
>
>
> I obtain the following error when trying to use the `bigquery_table_delete_operator`
with the recent fix to add the field `deletion_dataset_table` in the list of template fields
: 
> `[2017-08-18 10:58:30,556] {models.py:1426} ERROR - 'BigQueryTableDeleteOperator' object
has no attribute 'd'
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/airflow/models.py", line 1368, in run
>     self.render_templates()
>   File "/usr/lib/python2.7/site-packages/airflow/models.py", line 1587, in render_templates
>     content = getattr(task, attr)
> AttributeError: 'BigQueryTableDeleteOperator' object has no attribute 'd'`
> This is caused by python behavior which interpret a list with only one string as a list
of characters : 
> `template_fields = ('deletion_dataset_table')`
> I'm preparing a PR to change it to : 
> `template_fields = ('deletion_dataset_table',)`
> Link for the PR : https://github.com/apache/incubator-airflow/pull/2534



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

Mime
View raw message