We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
google
7.0.0
2.2.5
google composer
Composer
No response
BigQueryInsertJobOperator can not be used to run SQL query without specifying destination table explicitly in the operator
"query": { "query": f""" INSERT INTO `{{{{params.project}}}}-{os.getenv('COMPOSER_ENVIRONMENT_STAGE')}.{{{{params.dataset}}}}.{{{{params.table_order_objects}}}}` SELECT * FROM `{{{{params.project}}}}-{os.getenv('COMPOSER_ENVIRONMENT_STAGE')}.{{{{params.dataset}}}}.{{{{params.table_order_objects}}}}_SZ`; TRUNCATE TABLE `{{{{params.project}}}}-{os.getenv('COMPOSER_ENVIRONMENT_STAGE')}.{{{{params.dataset}}}}.{{{{params.table_order_objects}}}}_SZ`; """, "useLegacySql": False, } Traceback (most recent call last): File "/opt/python3.8/lib/python3.8/site-packages/airflow/providers/google/cloud/operators/bigquery.py", line 2269, in execute table = job.to_api_repr()["configuration"]["query"]["destinationTable"]
To run a SQL a destination is not necessary to be specified
Airflow 2.2.5 and airflow provider 7.0.0, BigQueryInsertJobOperator without specifying destinationTable
The text was updated successfully, but these errors were encountered:
Thanks for opening your first issue here! Be sure to follow the issue template!
Sorry, something went wrong.
Duplicate #23826
No branches or pull requests
Apache Airflow Provider(s)
google
Versions of Apache Airflow Providers
7.0.0
Apache Airflow version
2.2.5
Operating System
google composer
Deployment
Composer
Deployment details
No response
What happened
BigQueryInsertJobOperator can not be used to run SQL query without specifying destination table explicitly in the operator
What you think should happen instead
To run a SQL a destination is not necessary to be specified
How to reproduce
Airflow 2.2.5 and airflow provider 7.0.0, BigQueryInsertJobOperator without specifying destinationTable
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: