You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Feng Lu (JIRA)" <ji...@apache.org> on 2018/01/25 07:33:00 UTC

[jira] [Created] (AIRFLOW-2029) Fix AttributeError in BigQueryPandasConnector

Feng Lu created AIRFLOW-2029:
--------------------------------

             Summary: 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


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)