ying-w opened a new pull request, #30655:
URL: https://github.com/apache/airflow/pull/30655
Currently `priority=` is available in `run_query()` function within
`BigQueryHook` class but can't be set when class is created. This causes
problems when you're using `SQLExecuteQueryOperator` since `priority` is
missing from class constructor, you won't be able to pass in with
`hook_params={"priority":"BATCH"}`. Trying to workaround using
`hook_params={"api_resource_configs": {"query": {"priority": "BATCH"}}"` will
error on `_api_resource_configs_duplication_check()` since `priority` is
defaulted to 'INTERACTIVE'.
This PR adds `priority` to `BigQueryHook` constructor and defaults to using
that value for `run_query()`
--
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]