[ https://issues.apache.org/jira/browse/AIRFLOW-4265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16812986#comment-16812986 ]
ASF subversion and git services commented on AIRFLOW-4265: ---------------------------------------------------------- Commit 6ddf05598a9eb6970b313733e11d22cdc5aa611d in airflow's branch refs/heads/master from Bryan Yang [ https://gitbox.apache.org/repos/asf?p=airflow.git;h=6ddf055 ] [AIRFLOW-4265] Lineage backend did not work normally (#5067) * add debug log * change SendMessage to staticmethod * updated doc > Lineage backend did not work normally > ------------------------------------- > > Key: AIRFLOW-4265 > URL: https://issues.apache.org/jira/browse/AIRFLOW-4265 > Project: Apache Airflow > Issue Type: Bug > Reporter: Bryan Yang > Assignee: Bryan Yang > Priority: Major > > 1. Lineage backend comes from {{import_string}} function, and > {{import_string}} will try to seperate module_path and class_name by dot. > {quote}def import_string(dotted_path): > """ > Import a dotted module path and return the attribute/class designated by the > last name in the path. Raise ImportError if the import failed. > """ > try: > module_path, class_name = dotted_path.rsplit('.', 1) > except ValueError: > raise ImportError("{} doesn't look like a module path".format(dotted_path)) > module = import_module(module_path) > {quote} > But in the current document: {{backend = airflow.lineage.backend.atlas}} > which is just a module path without class name \{{AtlasBackend}}. > 2. Continuously, this function will return a module or class instead of an > instance. So that when {{apply_lineage}} want to call > {{backend.send_lineage}}, it will fail. -- This message was sent by Atlassian JIRA (v7.6.3#76005)