prabhusneha commented on code in PR #47644: URL: https://github.com/apache/airflow/pull/47644#discussion_r2007812918
########## providers/apache/hive/src/airflow/providers/apache/hive/version_compat.py: ########## @@ -0,0 +1,36 @@ +# Licensed to the Apache Software Foundation (ASF) under one Review Comment: Resolved. ########## providers/apache/hive/src/airflow/providers/apache/hive/operators/hive.py: ########## @@ -26,8 +26,15 @@ from airflow.configuration import conf from airflow.models import BaseOperator from airflow.providers.apache.hive.hooks.hive import HiveCliHook -from airflow.utils import operator_helpers -from airflow.utils.operator_helpers import context_to_airflow_vars +from airflow.providers.common.compat.version_compat import AIRFLOW_V_3_0_PLUS + +if AIRFLOW_V_3_0_PLUS: + from airflow.sdk.execution_time.context import AIRFLOW_VAR_NAME_FORMAT_MAPPING, context_to_airflow_vars +else: + from airflow.utils.operator_helpers import ( # type: ignore[no-redef, attr-defined] Review Comment: Resolved. -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org