[ https://issues.apache.org/jira/browse/AIRFLOW-4265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tao Feng resolved AIRFLOW-4265. ------------------------------- Resolution: Fixed Fix Version/s: 2.0.0 > 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 > Fix For: 2.0.0 > > > 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)