Analyzer

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 StatementLineageHolder.

LineageAnalyzer

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, metadata_provider: MetaDataProvider) StatementLineageHolder[source]

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

Parameters:
Returns:

sqllineage.core.holders.StatementLineageHolder