-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
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
Deprecate SnowflakeSqlApiOperatorAsync #1447
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1447 +/- ##
==========================================
- Coverage 98.22% 98.20% -0.02%
==========================================
Files 91 91
Lines 4733 4684 -49
==========================================
- Hits 4649 4600 -49
Misses 84 84 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add deprecation warning to SnowflakeSqlApiHookAsync
as well?
76a0574
to
3acabbc
Compare
…omer/Astronomer-providers into deprecate-SnowflakeSqlApiOperator taking latest
adding warning |
from airflow.exceptions import AirflowException | ||
|
||
from snowflake.connector import SnowflakeConnection | ||
from snowflake.connector.constants import QueryStatus | ||
|
||
try: | ||
from airflow.providers.snowflake.operators.snowflake import SnowflakeOperator | ||
from airflow.providers.snowflake.operators.snowflake import SnowflakeOperator, SnowflakeSqlApiOperator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we'll need to move this SnowflakeSqlApiOperator import outside of this block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can remove SnowflakeOperator here. We've update our snowflake provider version
Deprecate
SnowflakeSqlApiOperatorAsync
and fallback to its Airflow OSS provider's counterpartSnowflakeSqlApiOperator
withdeferrable=True
closes: #1415