lineageanalyzer

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 22 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package lineageanalyzer is a runner that analyzes SQL definitions to produce column-level lineage.

Index

Constants

View Source
const (

	// MaxGoroutines is the max number of concurrent analysis jobs.
	MaxGoroutines = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct {
	// contains filtered or unexported fields
}

Analyzer is the column-level lineage analysis runner.

func NewAnalyzer

func NewAnalyzer(stores *store.Store, lineageAnalyzer *lineage.Analyzer) *Analyzer

NewAnalyzer creates a new lineage Analyzer that resolves statements through lineage, the process's assembled set of engine analyzers.

func (*Analyzer) Name added in v0.1.2

func (*Analyzer) Name() string

Name identifies the runner in the server's lifecycle logs.

func (*Analyzer) QueueAnalysis

func (a *Analyzer) QueueAnalysis(metaGUID string, metaType storepb.MetaType)

QueueAnalysis enqueues an object for analysis because its definition changed or was just reported. A request supersedes a pending backoff and a pending scan entry: the analysis runs now and reads the current definition, so the scan no longer has a reason to queue it. Storing a new generation also supersedes an analysis already running for the old request: that attempt's result is guarded by its own hash, and its failure path leaves this entry alone.

func (*Analyzer) Run

func (a *Analyzer) Run(ctx context.Context)

Run starts the analyzer. It blocks until ctx is cancelled.

Jump to

Keyboard shortcuts

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