Documentation
¶
Overview ¶
Package lineageanalyzer is a runner that analyzes SQL definitions to produce column-level lineage.
Index ¶
Constants ¶
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 ¶
NewAnalyzer creates a new lineage Analyzer that resolves statements through lineage, the process's assembled set of engine analyzers.
func (*Analyzer) QueueAnalysis ¶
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.