kazanzhy edited a comment on issue #20081:
URL: https://github.com/apache/airflow/issues/20081#issuecomment-987261565
Hi Andrey. Nice to see you here
Regarding to the documentation the parameter `api_resource_configs` seems
should be like `{'query': {'useQueryCache': False, 'timeoutMs': 100000}}`
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest
https://airflow.apache.org/docs/apache-airflow-providers-google/stable/_modules/airflow/providers/google/cloud/operators/bigquery.html#BigQueryExecuteQueryOperator
Anyway, this operator will be deprecated, and better try to use
`BigQueryInsertJobOperator` like:
```
insert_query_job = BigQueryInsertJobOperator(
task_id="mobile_push_stat",
configuration={
"query": {
"query": "{% include '/sql/updater/mobile_push_stat.sql' %}",
"useLegacySql": False,
},
"jobTimeoutMs": 3600000
},
location=location,
gcp_conn_id=gcp_conn
)
```
https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfiguration
https://airflow.apache.org/docs/apache-airflow-providers-google/stable/_modules/airflow/providers/google/cloud/operators/bigquery.html#BigQueryInsertJobOperator
Maybe you will find helpful these examples:
https://github.com/apache/airflow/blob/main/airflow/providers/google/cloud/example_dags/example_bigquery_queries.py
Note that in first case `timeoutMs` and in second `jobTimeoutMs`.
--
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]