You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/06/14 12:20:47 UTC
[GitHub] [airflow] lihan opened a new pull request, #24440: Fixing TypeError: 'ExtractJob' object is not subscriptable
lihan opened a new pull request, #24440:
URL: https://github.com/apache/airflow/pull/24440
Traceback
```
Traceback (most recent call last):
File "/home/airflow/.local/lib/python3.8/site-packages/airflow/providers/google/cloud/transfers/bigquery_to_gcs.py", line 128, in execute
conf = job["configuration"]["extract"]["sourceTable"]
TypeError: 'ExtractJob' object is not subscriptable
```
The job is an [ExtractJob object](https://cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.job.ExtractJob#parameters) and cannot read its source table using subscript. So the code fixes it using object properties.
Since `BigQueryTableLink` is optional, using if to check it indeed returns an ExtractJob (part of BigQueryJob Union type).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on pull request #24440: Fixing TypeError: 'ExtractJob' object is not subscriptable
Posted by GitBox <gi...@apache.org>.
potiuk commented on PR #24440:
URL: https://github.com/apache/airflow/pull/24440#issuecomment-1155255458
Ci is telling what to fix
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk closed pull request #24440: Fixing TypeError: 'ExtractJob' object is not subscriptable
Posted by GitBox <gi...@apache.org>.
potiuk closed pull request #24440: Fixing TypeError: 'ExtractJob' object is not subscriptable
URL: https://github.com/apache/airflow/pull/24440
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on pull request #24440: Fixing TypeError: 'ExtractJob' object is not subscriptable
Posted by GitBox <gi...@apache.org>.
potiuk commented on PR #24440:
URL: https://github.com/apache/airflow/pull/24440#issuecomment-1156262774
Superseded by #24416
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on pull request #24440: Fixing TypeError: 'ExtractJob' object is not subscriptable
Posted by GitBox <gi...@apache.org>.
potiuk commented on PR #24440:
URL: https://github.com/apache/airflow/pull/24440#issuecomment-1155254839
Yep. Some fixes needed @lihan :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org