LineageAnalyzer is an abstract class, supposed to include the core processing logic for one-statement SQL analysis.

Each parser implementation will inherit LineageAnalyzer and do parser specific analysis based on the AST they generates and store the result in sqllineage.core.holders.


class sqllineage.core.analyzer.LineageAnalyzer[source]

SQL Statement Level Lineage Analyzer Parser specific implementation should inherit this class and implement analyze method

abstract analyze(sql: str) StatementLineageHolder[source]

to analyze single statement sql and store the result into sqllineage.core.holders.StatementLineageHolder.