[ 
https://issues.apache.org/jira/browse/AIRFLOW-4265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16812985#comment-16812985
 ] 

ASF GitHub Bot commented on AIRFLOW-4265:
-----------------------------------------

feng-tao commented on pull request #5067: [AIRFLOW-4265] Lineage backend did 
not work normally
URL: https://github.com/apache/airflow/pull/5067
 
 
   
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> 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)

Reply via email to