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

Chris Riccomini resolved AIRFLOW-2029.
--------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.10.0

> Fix AttributeError in BigQueryPandasConnector
> ---------------------------------------------
>
>                 Key: AIRFLOW-2029
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2029
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: contrib
>    Affects Versions: 1.10.0, 1.9.1
>            Reporter: Feng Lu
>            Assignee: Feng Lu
>            Priority: Minor
>             Fix For: 1.10.0
>
>
> When BigQueryPandasConnector (in bigquery_hook.py) encounters a BQ job 
> insertion error, the exception will be assigned to connector.http_error, 
> which is defined in parent connector GbqConnector but uninitialized. Hence 
> the following AttributeError exception is thrown: 
> [2018-01-23 01:03:36,873] \{base_task_runner.py:98} INFO - Subtask: File 
> "/usr/local/lib/python2.7/site-packages/airflow/contrib/hooks/bigquery_hook.py",
>  line 94, in get_pandas_df [2018-01-23 01:03:36,874] 
> \{base_task_runner.py:98} INFO - Subtask: schema, pages = 
> connector.run_query(bql) [2018-01-23 01:03:36,879] \{base_task_runner.py:98} 
> INFO - Subtask: File 
> "/usr/local/lib/python2.7/site-packages/pandas_gbq/gbq.py", line 503, in 
> run_query [2018-01-23 01:03:36,881] \{base_task_runner.py:98} INFO - Subtask: 
> except self.http_error as ex: [2018-01-23 01:03:36,888] 
> \{base_task_runner.py:98} INFO - Subtask: AttributeError: 
> 'BigQueryPandasConnector' object has no attribute 'http_error'



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

Reply via email to