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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to