[ 
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',)`



  was:
I obtain the following error when trying to use the 
`biaquer_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
>             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',)`



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

Reply via email to