amoghrajesh commented on code in PR #47008:
URL: https://github.com/apache/airflow/pull/47008#discussion_r1979694494
##########
providers/google/src/airflow/providers/google/cloud/links/datafusion.py:
##########
@@ -21,13 +21,19 @@
from typing import TYPE_CHECKING, ClassVar
-from airflow.models import BaseOperatorLink, XCom
+from airflow.models import XCom
if TYPE_CHECKING:
from airflow.models import BaseOperator
from airflow.models.taskinstancekey import TaskInstanceKey
from airflow.utils.context import Context
+from airflow.providers.google.version_compat import AIRFLOW_V_3_0_PLUS
+
+if AIRFLOW_V_3_0_PLUS:
+ from airflow.sdk.definitions.baseoperatorlink import BaseOperatorLink
+else:
+ from airflow.models.baseoperatorlink import BaseOperatorLink # type:
ignore[no-redef]
Review Comment:
Cool. Moved it
--
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]