Skip to content

Fix SnowflakeSqlApiHook backwards compatibility - #49482

Merged
bugraoz93 merged 6 commits into
apache:mainfrom
bugraoz93:snowflake-backward-compatibility
Apr 23, 2025
Merged

bugraoz93 merged 6 commits into
apache:mainfrom
bugraoz93:snowflake-backward-compatibility

Conversation

@bugraoz93

Copy link
Copy Markdown
Contributor

Follow Up: #49449


^ 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 airflow-core/newsfragments.

@boring-cyborg boring-cyborg Bot added area:providers provider:snowflake Issues related to Snowflake provider labels Apr 20, 2025
Comment thread providers/snowflake/src/airflow/providers/snowflake/hooks/snowflake_sql_api.py Outdated
@bugraoz93
bugraoz93 force-pushed the snowflake-backward-compatibility branch from 2a35f71 to d815ad5 Compare April 20, 2025 19:32

@amoghrajesh amoghrajesh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approach looks ok, one case needs handling. Also can you add test to check for region and account?

Comment thread providers/snowflake/src/airflow/providers/snowflake/hooks/snowflake_sql_api.py Outdated
Comment thread providers/snowflake/src/airflow/providers/snowflake/hooks/snowflake.py Outdated
@gopidesupavan

Copy link
Copy Markdown
Member

BTW thanks for getting this fix.

@bugraoz93
bugraoz93 force-pushed the snowflake-backward-compatibility branch 2 times, most recently from a4bc510 to fba4a3d Compare April 21, 2025 13:38
@bugraoz93

Copy link
Copy Markdown
Contributor Author

Thanks a lot for the reviews!

Comment thread providers/snowflake/src/airflow/providers/snowflake/hooks/snowflake_sql_api.py Outdated
@bugraoz93
bugraoz93 force-pushed the snowflake-backward-compatibility branch from fba4a3d to 80a33d3 Compare April 22, 2025 19:58
Comment thread providers/snowflake/src/airflow/providers/snowflake/hooks/snowflake_sql_api.py Outdated

@eladkal eladkal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@amoghrajesh amoghrajesh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah nice!

@potiuk
potiuk force-pushed the snowflake-backward-compatibility branch from 6b76c0a to 40accb8 Compare April 23, 2025 11:21
@bugraoz93
bugraoz93 force-pushed the snowflake-backward-compatibility branch from 40accb8 to 315d643 Compare April 23, 2025 17:01
@bugraoz93
bugraoz93 merged commit c35afd1 into apache:main Apr 23, 2025
@bugraoz93
bugraoz93 deleted the snowflake-backward-compatibility branch April 23, 2025 17:03
prabhusneha pushed a commit to astronomer/airflow that referenced this pull request Apr 25, 2025
…ethod (apache#49482)

* Fix SnowflakeSqlApiHook backwards compatibility

* Update providers/snowflake/src/airflow/providers/snowflake/hooks/snowflake_sql_api.py

---------

Co-authored-by: Elad Kalif <45845474+eladkal@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:snowflake Issues related to Snowflake provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants