Data Lineage Knowledge Base

Data lineage is the documented path data travels from its original sources, through every transformation applied by SQL code, to the tables, views, and reports that consume it. It answers the two questions every data team faces daily: “Where did this number come from?” and “What breaks if I change this column?” This knowledge base is the organized data lineage guide index for everything we publish on the topic: the concepts, hands-on guides for 20 specific databases, and the documentation for Gudu SQLFlow, the SQL lineage tool behind every example on this site.

39SQL dialects, each a dedicated parser
20database-specific lineage guides
Column-levelgranularity, not just table-level
Staticanalysis, never reads table data

Every page linked below stands alone, so you can jump straight to the one that matches your problem. If you would rather see lineage than read about it first, the fastest route is the tool itself.

Try it in 30 seconds: paste any SQL query into the free online SQL lineage visualizer and get an interactive column-level lineage diagram. The free tier runs in your browser, no installation required.

Start with the concepts

Four pages form the core of this data lineage guide. Read them in order if you are new; each one goes a level deeper than the last.

  • What Is Data Lineage? The foundation: a plain-language definition, how lineage differs from other metadata, why SQL parsing is the most accurate way to build it, and worked examples of provenance and impact analysis. Start here if the term is new to you or you need to explain it to stakeholders.
  • Column-Level Data Lineage Why table-level lineage is not enough. Table-level tells you report_revenue is built from orders; column-level tells you exactly which source columns feed report_revenue.total and through which functions, joins, and filters. This page also explains direct versus indirect (impact) lineage, a distinction most tools skip entirely.
  • Data Lineage Examples Six real scenarios with actual SQL and the diagrams it produces: schema-change impact analysis, root-causing a wrong dashboard number, compliance documentation, migration mapping, and more. The fastest way to understand what lineage output actually looks like.
  • Best Data Lineage Tools An honest comparison of ten options across the market: open-source parsers, catalog-first platforms, and specialized lineage engines, with what each category is genuinely good at and where the gaps are. Read this before an evaluation.

Data lineage guides by database

Lineage is not dialect-neutral. Snowflake exposes query history you can mine; SQL Server hides transformation logic inside T-SQL stored procedures and dynamic SQL; Teradata lineage usually matters most on the way out, during a migration. Each guide below covers the specifics for one engine: where the SQL lives, how to extract it, and what dialect features make its lineage hard.

CategoryDatabase guides
Cloud data warehousesSnowflake, BigQuery, Redshift, Databricks, Azure SQL
Traditional RDBMSOracle, SQL Server, MySQL, PostgreSQL, IBM DB2
MPP & analyticsTeradata, Netezza, Greenplum, Vertica, SAP HANA, ClickHouse, DuckDB
Big data & query enginesHive, Spark SQL, Trino & Presto

A few pointers on which guides go deepest on what:

  • Stored procedures and dynamic SQL: the SQL Server and Oracle guides. SQLFlow has dedicated procedural parsers for T-SQL and PL/SQL that trace lineage through procedure parameters and temp tables, resolve dynamic SQL, and render a call graph of procedure-to-procedure invocations.
  • Lineage from query history: the Snowflake and Redshift guides. Both engines record executed SQL, and SQLFlow ingests Snowflake query history and Redshift query logs natively, so lineage reflects what actually ran.
  • Migration mapping: the Teradata and Netezza guides, where the job is usually to map the full dependency graph of a legacy warehouse before moving it to a cloud platform.
  • Federated queries: the Trino & Presto guide, which covers lineage when one statement reads from multiple catalogs.

These 20 engines have dedicated guides, but they are a subset: SQLFlow ships dialect-specific parsers for 39 databases and query engines in total, including Flink SQL, Sybase, Informix, Power Query (M), and Salesforce SOQL. If your dialect has no guide yet, the SQL data lineage tool overview lists all 39.

Gudu SQLFlow product documentation

When you are ready to produce lineage rather than read about it, these pages cover the product editions and how each one is deployed.

PageWhat it covers
SQL data lineage tool (overview)The pillar page: how SQLFlow works end to end, all 39 supported dialects, stored procedure and dbt analysis, and every deployment option in one place.
SQLFlow CloudThe SaaS edition at sqlflow.gudusoft.com. Free tier for pasting SQL in the browser; premium tier at $49.99/month.
SQLFlow On-PremiseSelf-hosted on Docker or Kubernetes, including fully air-gapped networks. $500/month or $4,800 one-time per selected database type, installable on two servers. SQL text never leaves your infrastructure.
SQLFlow REST APILineage analysis as JSON-over-HTTP endpoints, for automating lineage extraction inside pipelines, CI checks, and internal platforms.

Enterprise deployments batch-scan estates of 100+ databases and over a million columns, keep a persistent lineage repository with incremental scans, and export to DataHub, Microsoft Purview, and OpenMetadata. Reference documentation for every edition lives at docs.gudusoft.com, and current plans are on the pricing page.

Which page should you start with?

Your situationStart here
New to lineage, need the fundamentalsWhat Is Data Lineage?, then the examples page
Evaluating tools for your teamBest Data Lineage Tools, then your database’s guide
Need lineage for audit or complianceColumn-Level Data Lineage — regulators expect column granularity
Planning a warehouse migrationThe guide for your source engine (Oracle, Teradata, Netezza, DB2)
Building lineage into your own productSQLFlow REST API

Latest articles

New guides and updates to existing ones, most recent first. Dialect coverage and product features change regularly, so recently updated pages are worth a second look.

  • Data Lineage: Understanding the Journey of Your Data
    In the era of big data, organizations are relying more and more on data to drive their decision making process. It is imperative that this data is trustworthy, accurate, and consistent. Enter Data Lineage. Data Lineage is the process of…
  • Data Flow Diagram: Concepts, Symbols, Types, and Tips
    Data Flow Diagram: Concepts, Symbols, Types, and Tips What is a data flow diagram? Why draw data flow diagrams? What are the symbols of a data flow diagram? What are the rules for data flow? What is the difference between…
  • 6 Critical Components of Successful Data Governance
    6 Critical Components of Successful Data Governance Good data and analytics governance enables faster, smarter decisions. Data and analytics leaders, including chief data officers, must ensure that their data and analytics assets are well-governed to achieve business strategy and corporate…
  • Why data governance is a must for any organization?
    Why data governance is a must for any organization? What is data governance? What are the problems faced by big data governance? Why data governance is a must for any organization? What are the benefits of data governance? If you…
  • Top 5 Data Governance Benefits for Today and the Long Term
    Top 5 Data Governance Benefits for Today and the Long Term With the continuous maturity of big data-related technologies, data as an asset has received more and more attention from enterprises and institutions. In order to effectively utilize data assets,…
  • The Ultimate Guide to Data Governance | Gudu SQLFlow
    The Ultimate Guide to Data Governance What is data governance? What is the purpose of data governance? What are the ways of data governance?What is the scope of a data governance project? If you are looking answers to these questions,then…

Skip the reading, trace your own SQL

Paste a query and get an interactive column-level lineage diagram in seconds.

Frequently asked questions

What is data lineage in simple terms?

Data lineage is a record of where data comes from, how it is transformed, and where it ends up. In a SQL environment that means mapping which source tables and columns feed each target table, view, or report, and which joins, filters, and calculations are applied along the way. The full definition guide covers this in depth.

What is the difference between table-level and column-level lineage?

Table-level lineage shows which tables feed which. Column-level lineage shows, for every output column, the exact source columns that feed it and the transformations applied. Column-level is what makes impact analysis and audit answers precise instead of approximate.

How do I get data lineage for my specific database?

Pick your engine from the by-database table above. In practice the workflow is the same everywhere: collect the SQL (pasted queries, uploaded files, live metadata over JDBC, a dbt manifest, or warehouse query history), let SQLFlow parse it with the dialect-specific parser, and explore the resulting column-level diagram or export it as JSON, CSV, or PNG.

Do I need a data catalog to have data lineage?

No. Catalog platforms such as DataHub, Collibra, and Atlan are good at organizing metadata, ownership, and discovery across an organization, but the quality of their lineage depends on the SQL analysis engine feeding them. You can use SQLFlow standalone, or use it as the lineage engine inside a catalog you already run: it exports to DataHub, Microsoft Purview, and OpenMetadata.

How accurate is parser-based lineage?

Parser-based lineage is as accurate as the parser. SQLFlow is built on the General SQL Parser, a SQL compiler front-end developed commercially since the mid-2000s and validated against roughly 13,600 per-dialect SQL test fixtures. Because the analysis is static, it captures logic in code paths that runtime log-based approaches miss, and it never reads the rows in your tables.

Is there a free way to try SQL data lineage?

Yes. SQLFlow Cloud has a free tier: paste any SQL statement and get an interactive column-level lineage diagram in the browser, no installation required.

Stop reading, start tracing

Paste a query into the free visualizer and see column-level lineage in seconds, or talk to us about scanning your whole estate.