Skip to content

Conversation

@kacpermuda
Copy link
Contributor

@kacpermuda kacpermuda commented Feb 3, 2025

Add try/except for sql alchemy engine creation used in some google cloud operators (not in SQLExecuteQueryOperator). It's used only for query compilation within sql parser and it's not required, so i think this is reasonable. This issue came out when using CloudSQLExecuteQuery operator, and this is a quick fix before release happens.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

Signed-off-by: Kacper Muda <mudakacper@gmail.com>
@mobuchowski
Copy link
Contributor

@kacpermuda are we sure nothing breaks when we don't pass the sqlalchemy_engine later?

@kacpermuda
Copy link
Contributor Author

@mobuchowski This engine is used only here, in create_information_schema_query and is already typed as Optional with default to None. I've tested it manually on both breeze and astro and it works fine without it.

@mobuchowski mobuchowski merged commit 3004da9 into apache:main Feb 3, 2025
63 checks passed
@kacpermuda kacpermuda deleted the fix-ol-cloud-sql-execute-query branch February 3, 2025 13:29
dabla pushed a commit to dabla/airflow that referenced this pull request Feb 3, 2025
Signed-off-by: Kacper Muda <mudakacper@gmail.com>
ambika-garg pushed a commit to ambika-garg/airflow that referenced this pull request Feb 4, 2025
Signed-off-by: Kacper Muda <mudakacper@gmail.com>
niklasr22 pushed a commit to niklasr22/airflow that referenced this pull request Feb 8, 2025
Signed-off-by: Kacper Muda <mudakacper@gmail.com>
ambika-garg pushed a commit to ambika-garg/airflow that referenced this pull request Feb 17, 2025
Signed-off-by: Kacper Muda <mudakacper@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants