Skip to content

Lineage Visualization

FlowScope visualizes SQL lineage as an interactive graph. This guide explains how to read the graph, understand different node types, and navigate complex lineage structures.

The lineage graph shows data flow from left to right:

  • Source tables appear on the left
  • Intermediate transformations (CTEs, subqueries) in the middle
  • Target tables or output on the right
  • Edges connect nodes showing data flow direction

FlowScope offers multiple view modes for different analysis needs:

Shows relationships between tables without column details. Best for:

  • Understanding high-level data flow
  • Viewing large queries with many tables
  • Quick impact analysis

Shows how individual columns flow through transformations. Best for:

  • Tracing specific column origins
  • Understanding aggregations and calculations
  • Detailed impact analysis

Combines table and column views—tables shown with expandable column sections. Best for:

  • Exploring lineage at both levels
  • Starting high-level then drilling down

Groups lineage by SQL statement or file. Best for:

  • Multi-file project analysis
  • Understanding execution order
  • File-level impact analysis

Represent database tables:

  • Blue - Source tables (read from)
  • Green - Target tables (written to)
  • Gray - External/unknown tables

Table nodes display:

  • Table name
  • Column list (in column-level view)
  • Row count (if available from schema)

Represent Common Table Expressions:

  • Shown as intermediate nodes
  • Can be hidden with “Hide CTEs” toggle
  • Edges bypass hidden CTEs to show direct lineage

Represent query results:

  • Appear for SELECT statements without target table
  • Show final column list
  • Named as “Query Result” or custom alias

In column-level view, each column shows:

ElementDescription
NameColumn name or alias
TypeData type (if schema provided)
OriginDirect, Derived, or Aggregated
ExpressionTransformation applied (for derived columns)
  • Direct - Column passes through unchanged
  • Derived - Column computed from one or more sources
  • Aggregated - Column involves aggregation (SUM, COUNT, etc.)
  • Unknown - Cannot determine origin (missing schema)

Edges (arrows) represent data flow:

Edge TypeDescription
SolidDirect column mapping
DashedIndirect relationship (JOIN condition)
ThickMultiple columns flow along this path
ColoredGrouped by source table

FlowScope assigns confidence levels to lineage:

  • High - Explicit column reference
  • Medium - Inferred from context
  • Low - Best guess (e.g., SELECT *)
  • Mouse wheel - Zoom in/out
  • Click and drag - Pan the canvas
  • Double-click - Zoom to fit
ControlAction
FitZoom to show entire graph
Zoom In/OutAdjust zoom level
ResetReturn to default view
MinimapToggle overview minimap
  • Click node - Select and show details
  • Double-click node - Focus on connected nodes
  • Right-click node - Context menu with options
  • Hover edge - Show lineage details

Focus mode highlights lineage for a specific node:

  1. Select a node
  2. Click “Focus” or press F
  3. Only connected nodes and edges remain visible
  4. Press Escape or click “Clear” to exit
  • Upstream - Show where data comes from
  • Downstream - Show where data flows to
  • Both - Show full lineage chain

Find nodes by name:

  1. Press / or click the search icon
  2. Type table or column name
  3. Matching nodes highlight
  4. Press Enter to focus first match

Search supports:

  • Partial matching
  • Case-insensitive search
  • Regular expressions (prefix with /)

Toggle “Hide CTEs” to simplify the graph. CTE lineage is preserved through bypass edges connecting original sources to final outputs.

Select tables to include or exclude from the view. Useful for focusing on specific data flows in large graphs.

In multi-statement analysis, filter to show lineage for specific statements only.

FlowScope offers multiple layout algorithms:

AlgorithmBest For
DagreHierarchical layouts (default)
ElkComplex graphs with many crossings
ManualUser-positioned nodes

Switch layouts in the settings panel. Manual positioning is preserved when switching back.

Export the current view as a PNG image:

  1. Adjust zoom and pan to frame your view
  2. Click “Export” → “Screenshot”
  3. Image downloads at current resolution

Export as Mermaid diagram syntax for documentation:

graph LR
orders --> monthly_sales
monthly_sales --> output
customers --> output

Export a self-contained HTML file with full interactivity for sharing.