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/08/15 03:03:01 UTC
[GitHub] [airflow] prajyotnaik3 opened a new issue, #25718: Incorrect config name generated for BigQueryDeleteDataTransferConfigOperator
prajyotnaik3 opened a new issue, #25718:
URL: https://github.com/apache/airflow/issues/25718
### Apache Airflow version
2.3.3
### What happened
When we try to delete a big query transfer config using BigQueryDeleteDataTransferConfigOperator, we are unable to find the config, as the generated transfer config name is erroneous.
As a result, although a transfer config id (that exists) is passed to the operator, we get an error saying that the transfer config doesn't exist.
### What you think should happen instead
On further analysis, it was revealed that, in the bigquery_dts hook, the project name is incorrectly created as follows on the line 171:
`project = f"/{project}/locations/{self.location}"`
That is there's an extra / prefixed to the project.
Removing the extra / shall fix this bug.
### How to reproduce
1. Create a transfer config in the BQ data transfers/or use the operator BigQueryCreateDataTransferOperator (in a project located in Europe).
2. Try to delete the transfer config using the BigQueryDeleteDataTransferConfigOperator by passing the location of the project along with the transfer config id. This step will throw the error.
### Operating System
Windows 11
### Versions of Apache Airflow Providers
_No response_
### Deployment
Astronomer
### Deployment details
_No response_
### Anything else
_No response_
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] prajyotnaik3 commented on issue #25718: Incorrect config name generated for BigQueryDeleteDataTransferConfigOperator
Posted by GitBox <gi...@apache.org>.
prajyotnaik3 commented on issue #25718:
URL: https://github.com/apache/airflow/issues/25718#issuecomment-1214588596
PR: https://github.com/apache/airflow/pull/25719
--
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] boring-cyborg[bot] commented on issue #25718: Incorrect config name generated for BigQueryDeleteDataTransferConfigOperator
Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #25718:
URL: https://github.com/apache/airflow/issues/25718#issuecomment-1214561732
Thanks for opening your first issue here! Be sure to follow the issue template!
--
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 issue #25718: Incorrect config name generated for BigQueryDeleteDataTransferConfigOperator
Posted by GitBox <gi...@apache.org>.
potiuk closed issue #25718: Incorrect config name generated for BigQueryDeleteDataTransferConfigOperator
URL: https://github.com/apache/airflow/issues/25718
--
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