Help us shape the future of Go! Take the 2026 Go Developer Survey

lineage

package
v0.11.783 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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.

func (*LineageExtractor) WithAssetDatabases added in v0.11.716

func (p *LineageExtractor) WithAssetDatabases(assetDatabases map[string]string) *LineageExtractor

WithAssetDatabases attaches an asset-name -> database map used to resolve database-qualified table references. Optional.

type LineageIssue

type LineageIssue struct {
	Task        *pipeline.Asset
	Description string
	Context     []string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL