Documentation
¶
Index ¶
- type LineageError
- type LineageExtractor
- func (p *LineageExtractor) ColumnLineage(foundPipeline *pipeline.Pipeline, asset *pipeline.Asset, ...) *LineageError
- func (p *LineageExtractor) TableSchema(foundPipeline *pipeline.Pipeline) sqlparser.Schema
- func (p *LineageExtractor) TableSchemaForUpstreams(foundPipeline *pipeline.Pipeline, asset *pipeline.Asset) sqlparser.Schema
- type LineageIssue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LineageError ¶
type LineageError struct {
Pipeline *pipeline.Pipeline
Issues []*LineageIssue
}
type LineageExtractor ¶
type LineageExtractor struct {
// contains filtered or unexported fields
}
func NewLineageExtractor ¶
func NewLineageExtractor(parser sqlParser) *LineageExtractor
NewLineageExtractor creates a new LineageExtractor instance.
func (*LineageExtractor) ColumnLineage ¶
func (p *LineageExtractor) ColumnLineage(foundPipeline *pipeline.Pipeline, asset *pipeline.Asset, processedAssets map[string]bool) *LineageError
ColumnLineage processes the lineage of an asset and its upstream dependencies recursively.
func (*LineageExtractor) TableSchema ¶
func (p *LineageExtractor) TableSchema(foundPipeline *pipeline.Pipeline) sqlparser.Schema
TableSchema extracts the table schema from the assets and stores it in the columnMetadata map.
func (*LineageExtractor) TableSchemaForUpstreams ¶
func (p *LineageExtractor) TableSchemaForUpstreams(foundPipeline *pipeline.Pipeline, asset *pipeline.Asset) sqlparser.Schema
TableSchemaForUpstreams extracts the table schema for a single asset and returns a sqlparser schema only for its upstreams.
Click to show internal directories.
Click to hide internal directories.