Skip to content

Column transformation lineage

Choose Columns → Lineage graph to follow a column's value through analyzed SQL, SAS, or dbt. Direct references lists column usage separately. A join or filter reference can influence which rows appear without supplying the value of every output column.

Trace a column

  1. Import sources and run Analysis. Existing workspaces keep their table/direct-usage facts after upgrade. Run analysis to refresh lineage with the current parser.
  2. Choose an exact asset, including its job identity for temporary tables. Select a physical output column, or paste a column name or exact column ID.
  3. Choose How it is produced (upstream) or What it affects (downstream), depth and resolution status. The page displays at most 200 derivations and 500 selector entries.
  4. Inspect a transformation to see its original expression, input roles, branch and immutable source hash. The source preview shows at most 200 lines / 12,000 characters from the analyzed original. Intermediate CTE and SAS assignment versions remain visible.
  5. Export the bounded trace as CSV or JSON. Both include coverage and truncation markers, even when no derivation is known. Image export is not part of this feature.

For o.quantity * o.unit_price AS gross_amount, the value inputs are exactly quantity and unit_price. WHERE o.status = 'COMPLETE' is row_filter context; join keys have the join role. CASE/IF tests use value_selection; windows preserve partition and order. Aggregates/windows retain relation rowset context. COUNT(*) does not depend on every column. A literal-only output is a constant with zero value inputs; row context can still apply. Downstream paths distinguish values, row selection and pipeline controls. Display input limits do not change those labels. Equivalent quoted and unquoted column names share an identity under workspace case rules; quoted case and escaped identifier characters are retained.

The graph groups traced columns by their table, file, or intermediate scope. Arrows connect column rows and distinguish value flow from dependencies such as matching and row filters. A write can show its previous value as a separate row. Select a card header, row, or link to open its transformation logic. When several steps apply, the picker starts with a step that produces a selected column if available. Drag a card header to move it, drag the background or Alt-drag to pan, or type a column name to highlight matching rows.

Tested static coverage

Construct Behavior
SQL projection, alias, expression, literal, CAST, CASE/IF Named output derivations and distinct dependency roles
Aggregation/window Argument columns, rowsets and partition/order roles
CTE/derived table Statement-local intermediate columns, including chains of named projections and plain stars
INSERT SELECT Explicit target lists or consistent imported target DDL map by position. Widths must agree after wildcard expansion
UNION, EXCEPT, INTERSECT Known branch positions remain inspectable. EXCEPT and INTERSECT distinguish left-side values from membership inputs on both sides
Scalar subquery A single projected value and qualified correlated predicates remain separate
Recursive CTE Explicit UNION ALL anchor and direct step trace through a bounded scope cycle
Plain wildcard Expand from named scoped outputs, imported DDL or a single complete query definition. Unknown layouts stay unresolved
Inline and generated values Trace named literal VALUES and literal UNNEST outputs to inline data. Current date and time expressions show a runtime origin
SAS PROC SQL Shared SQL contract, SAS library/WORK identity, and single arithmetic UPDATE assignments with simple IN-subquery row selection
SAS DATA Inline INPUT, ordered assignments, SET passthrough and concatenation, simple IF/ELSE OUTPUT routing, bounded MERGE BY, and the documented hash and fixed-array forms
SAS procedures Simple SORT, NWAY SUMMARY/MEANS sums and means, grouped RANK, PROC APPEND FORCE with complete layouts, and conditional numbered PROC TRANSPOSE outputs
dbt models Logical project and version identities, shared SQL projections, supported macro expressions, and wildcard layouts from models, seeds, or matching catalogs

SQL fixtures cover generic SQL plus explicitly selected PostgreSQL, T-SQL, Snowflake and Databricks syntax. Positional GROUP BY dependencies resolve for generic SQL, PostgreSQL, DuckDB, Snowflake and BigQuery. Other dialects and invalid positions retain explicit coverage gaps. Parentheses around positions are preserved; normalized unary-plus grouping syntax stays unresolved rather than being mistaken for a position. DISTINCT records duplicate-selection inputs. DISTINCT ON records selectors and an unresolved row-choice boundary. Duplicate-eliminating UNION, LIMIT/OFFSET and table sampling retain explicit boundaries; UNION ALL retains separate value branches. dbt uses the same reachable SQL scopes, excluding unused CTEs from column facts. Unsupported DML variants, recursive shapes, named windows, ambiguous correlations, complex EXISTS membership, unknown UDF semantics, lateral projection/QUALIFY alias references, base-table positional column aliases, duplicate output names, query-level ordering and unsupported wildcard layouts have coverage gaps. Other SAS MERGE and multi-output forms, repeated SET statements, general arrays, variable lists, loops, conditional retention, automatic runtime variables and runtime/macro-expanded expressions remain unresolved. SAS applies statement KEEP/DROP, statement RENAME, then output KEEP=/DROP= and RENAME= options. Repeated selection statements or dataset options remain explicitly unresolved. Existing table-level extraction can still recognize a construct that has no column mapping.

How confidence and coverage work

In the Lineage tree, Minimum evidence confidence is the lowest stored confidence among the records supporting the displayed relationship. The score reflects how the evidence was established. It has no statistical calibration.

Table relationship evidence Stored confidence
Direct parser evidence with resolved identities Uses the parser operation's value, which defaults to 1.00.
Inferred source or target identity Capped at 0.85.
Accepted AI evidence Capped at 0.80 and labeled inferred.

Transformation lineage reports a trace state and counts coverage boundaries. A trace is complete for the requested scope when analysis has established coverage, there are no unresolved boundaries, and traversal finishes without truncation. Unknown dependencies have no known denominator, so the view reports the reasons for each gap alongside the known steps.

For example, consider a query that selects o.id AS order_id and amount AS total from orders o JOIN adjustments a ON o.id = a.id. If both tables declare amount, the parser can trace order_id to orders.id, but the trace for total keeps an unresolved ownership boundary. Both table relationships can still have direct parser evidence. Open Coverage details to see why the value trace could go no further.

Read the boundaries

The view distinguishes a known constant, a known derivation, no known dependency, an unresolved scope and analysis that has not established transformation coverage. None of these states proves live database behavior. Imported declarations remain inferred schema evidence. Parser diagnostics remain visible alongside known results.

Every query uses one committed analysis revision and its identity settings. Older parser caches require explicit reanalysis to refresh identity and schema mappings. Changed parsing settings produce a settings-changed boundary until reanalysis. Reimported but unanalyzed code produces an analysis-stale marker while the old steps retain their original source hashes. Multiple writes to one physical column are alternatives with an unknown-order boundary; their inputs are never chained into a claimed execution history. UNION branches within one operation remain distinguishable. Cycles and depth/item/input limits terminate visibly. Unresolved writes remain visible beside known derivations and stop chaining through uncertain values. The service visits bounded column/effect states rather than enumerating every possible path; omitted path-step records carry their own truncation marker. A column used as both a value and a filter or join key retains both value and row_selection impact paths; derivation records remain unique. Cycles retain their boundary while newly discovered effect states can propagate within the traversal limits.

Columns shows unused declared columns only with current, complete direct-reference coverage. Ambiguous references, parser diagnostics, failed sources, unexpanded wildcards and stale analysis suppress the unused list while retaining known used columns. Diagnostics without reliable asset attribution conservatively affect the workspace. Agent direct-column reports expose the same usage_coverage completeness and reasons, independently of display filters.

The UI defaults to depth 5 and caps depth at 15. Shared service/CLI/MCP queries support depth 1–30, at most 20,000 derivations and bounded inputs/paths. Agent response character budgets and continuation cursors apply in addition to traversal limits; continuation pages cover the computed bounded trace and cannot extend a truncated traversal. Original expressions and optional source snippets obey agent source permissions.

See CLI, MCP, data model, SQL coverage, SAS coverage and measured performance for the contracts and limits.

Storage and recovery

Migration 5 adds column references, derivations, inputs and an analysis marker without rewriting old facts. Parser cache 11 refreshes extraction on the next explicit analysis. Reanalysis replaces the committed derivations transactionally; a parse error for an already analyzed source retains the previous committed result. Cleanup previews include dependent column records. Columns cleanup clears transformation coverage as well as direct usages; analyze again to rebuild it. Whole-home backup/restore and integrity checks include the new records. Version-4 backups can be restored and upgraded when opened. To downgrade, restore a complete pre-upgrade home with the matching prior application version.

Optional project AI extraction

The AI project analysis workflow independently extracts direct usage and scoped transformations from exact original file parts. Structural/evidence validation checks source ownership, hashes, ranges and identities without requiring parser semantic approval. Accepted facts remain inferred, preserving expression, branch/version, ordinal and value versus row-context roles. Manual advisory tasks do not gain transformation merge rights, and parser results do not fill AI omissions.

Unresolved derivations stop confident chaining; conflicting writers/order remain boundaries. Hybrid/additional-review execution is retired. Processed ranges and schema-valid output do not establish semantic completeness or live-model accuracy. dbt Python column derivations, dynamic Jinja and unsupported compiled-to-original mappings remain partial. Current protocol 5 qualification uses independent nonempty mock fixtures; live accuracy remains separate evidence.

Column graph and parser updates

Columns opens in Lineage graph by default. Graph selections retain column and derivation identity, UNION branches, scopes and SAS versions. Display caps are separate from trace coverage. Source files load lazily from exact analyzed hashes; the graph component receives no expression or source text. Re-run Analysis after upgrading to the current parser (version 25).

Table aliases and intermediate output columns follow the selected SQL dialect's quoted and unquoted identifier rules. Equivalent intermediate references retain the producer's column identity so traces remain connected.

Intermediate set-operation LIMIT/OFFSET/sampling is marked incomplete. Unused CTE UNION DISTINCT does not contaminate active projections or stop their traces.

PostgreSQL UPDATE support: single target; simultaneous SET of literals, NULL, boolean, target columns and arithmetic (+, -, *, /, %); optional comparison, AND/OR/NOT/IS predicates. Old inputs have statement-scoped prior-value identities. Prior rows, unchanged columns, partial writes and writer order remain unresolved. FROM, WITH, tuple assignment, DEFAULT, functions, subqueries, RETURNING, other modifiers and other dialects remain unsupported.

PostgreSQL INSERT VALUES support: one literal row and explicit unique target columns, including NULL/boolean/negative numbers. Exact target order and evidence are retained. Existing rows and omitted-column defaults remain unresolved; a literal insert never proves the entire table column constant. Multiple rows, omitted lists, DEFAULT, expressions/functions, conflicts, RETURNING and subqueries remain unsupported.

References: PostgreSQL UPDATE and PostgreSQL INSERT.

Supported mutation operations also publish an unresolved partial-write scope boundary, so a known unassigned target column cannot appear to have complete lineage.