Closed piffarettig closed 1 year ago
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
If your question is why we don't use newer versions for google libraries it's because newer versions are conflicting. There is a campaign to update them : https://github.com/apache/airflow/pull/30067
If you need newer versions for a specific task you should use PythonVirtualenvOperator
.
Apache Airflow Provider(s)
google
Versions of Apache Airflow Providers
apache-airflow-providers-google==8.11.0
Apache Airflow version
2.5.2
Operating System
Debian GNU/Linux
Deployment
Docker-Compose
Deployment details
No response
What happened
I'm using a PythonOperator that just executes some SQL and make the results available to a subsequent task via the usage of xcoms. This is because there's no default operator available for Cloud Spanner that gives me that for free.
Why do I need to do this? Because I need to DROP all Spanner tables that follow a given prefix, so it's not that I can anticipate the table names. They're dynamic (I only know about their prefix).
However, my code fails when I do
with database.snapshot() as snapshot:
. I get:That's the exact same error mentioned here.
And given my Airflow version is 2.5.2, the Google Provider requires:
google-api-core>=2.7.0,<3.0.0
google-cloud-spanner>=1.10.0,<2.0.0
Which resolves to:
google-api-core==2.8.2
google-cloud-spanner==1.19.3
And those are the exact same dependency versions mentioned in the issue above. These dependencies don't seem to change in more recent Airflow versions.
What you think should happen instead
No response
How to reproduce
Generate the following task in a DAG:
Anything else
No response
Are you willing to submit PR?
Code of Conduct