kaxil commented on code in PR #50391:
URL: https://github.com/apache/airflow/pull/50391#discussion_r2081600609
##########
providers/snowflake/src/airflow/providers/snowflake/operators/snowpark.py:
##########
@@ -115,6 +115,14 @@ def execute_callable(self):
session_parameters=self.session_parameters,
)
session = hook.get_snowpark_session()
+
+ from airflow.providers.snowflake.version_compat import
AIRFLOW_V_3_0_PLUS
+
+ if AIRFLOW_V_3_0_PLUS:
+ from airflow.sdk import get_current_context
+ else:
+ from airflow.providers.standard.utils import get_current_context
Review Comment:
```suggestion
from airflow.providers.standard.operators.python import
get_current_context
```
##########
providers/amazon/tests/system/amazon/aws/example_sagemaker.py:
##########
@@ -420,6 +419,13 @@ def set_up(env_id, role_arn):
_install_aws_cli_if_needed()
_build_and_upload_docker_image(preprocess_script, ecr_repository_uri)
+ from airflow.providers.amazon.version_compat import AIRFLOW_V_3_0_PLUS
+
+ if AIRFLOW_V_3_0_PLUS:
+ from airflow.sdk import get_current_context
+ else:
+ from airflow.providers.standard.utils import get_current_context
Review Comment:
```suggestion
from airflow.providers.standard.operators.python import
get_current_context
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]