You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/01/25 18:36:00 UTC

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

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

ASF subversion and git services commented on AIRFLOW-2029:
----------------------------------------------------------

Commit bfbdeca6536ddcccc3c53ce980b5999f10eed69b in incubator-airflow's branch refs/heads/master from [~fenglu]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=bfbdeca ]

[AIRFLOW-2029] Fix AttributeError in BigQueryPandasConnector

Closes #2971 from fenglu-g/master


> 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
>
> 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)