Semagraph: column-level lineage from your code, data models from code, your database or scratch, impact analysis and AI that does the work.

Lineage, data models and impact analysis, read from the code your data runs on.

My workspaceOrder to cashSearch Order to cash Cmd KAsk
Lineage graph
My workspace › Order to cash › Column lineage
2 repositoriesRead 4 minutes ago22 dbt models

Harbor Retail, a made-up retailer. The lineage shown comes from its public demo code. View the code on GitHub

Reads
Column-level lineage in minutes. No database needed to start.
Lineage
Column level, across repositories
Scale
Built for large graphs of thousands of tables
Platforms
Built for Snowflake, Databricks and BigQueryReads their code, generates their DDL. Direct connections coming next.
Supported
  • dbt
  • SQL
  • stored procedures
  • PySpark
  • Snowpark
  • Databricks SQL
  • BigQuery SQL
  • Python
  • notebooks
  • JavaScript
  • TypeScript
  • Java (MyBatis, iBatis)

Lineage that stays true to your code.

Lineage projects are usually documented after the fact, tied to a database platform, slow to set up and soon out of date. Semagraph reads lineage and data models from the code itself, so they match what the code builds.

The usual waySemagraph
SourceDocumented after the factRead from the code itself, as it changes
Depends onAccess to your database platformStarts with your repositories. No database needed
Time to first lineageWeeks of setupMinutes
FreshnessOut of date by the next releaseRe-read when the main branch moves; branches checked before they merge

Point it at a repository and start.

Try the lineage demo

Column-level lineage, extracted from code.

Every column traced through the code that builds your data on your platform, from dbt and SQL to PySpark, Snowpark, Databricks SQL and BigQuery SQL, across repositories, with the calculation at each hop and the line it comes from.

Column trace › orders.ship_cityComplete

    Harbor Retail is a made-up retailer: orders, payments, shipping, store sales and finance reporting. Its three dbt projects and the Python, Snowpark, notebook and dashboard code around them are public on GitHub. The lineage on this page is taken from that code, file and line; the lineage demo shows Semagraph's full read of it.

    • 3 dbt projects
    • 24 dbt models
    • 17 sources
    • 161 column-level links
    View the code on GitHub
    Column level
    Each column, not only each table, from source to dashboard.
    Cross-repo
    Several repositories joined into one lineage graph.
    Cited
    Every hop links to the file and line that makes it.

    See the impact of a change before anything is built.

    Pick a column and see every model, dashboard and job downstream of it at column level, hop by hop.

    Impact analysisPick a column to change
    Before it ships
    Check a branch before it merges.
    Change sets
    Collect planned changes and see everything they reach.
    Report
    An impact report lists every affected model and consumer at column level.

    Data models that stay close to your code.

    Reverse-engineer a model from your code or your database, or design one from scratch. Concept, logical and physical views of one model.

    Data models / Retail model
    Saved, version 1
    No entities yet
    Generated SQLSnowflake
    AssistantAI
    Ask the assistant to change the model→

    Illustration with a sample retail model. The impact count in its reply comes from the Harbor Retail code.

    Close to the code
    After a re-read, add the tables the code builds now; what a person edited stays.
    Export as code
    dbt files, CREATE scripts or a migration script.
    9 SQL dialects
    Including Snowflake, Databricks, BigQuery, Postgres, Oracle, MySQL, Db2 and Teradata.

    Modernize legacy projects.

    Semagraph reads legacy code, turns its lineage into a data model, and generates dbt and DDL for your new platform.

    1. Legacy codeJava with MyBatis or iBatis mappers, stored procedures, Python and SQL.procs/load_daily_totals.sql builds dbo.daily_totals
    2. Lineage and data modelThe tables that code builds, with their columns and lineage, drawn into a data model you can edit.dbo.daily_totals, with its columns and sources
    3. dbt and DDL for your platformDDL for Snowflake, Databricks and BigQuery, plus dbt schema files with columns, types, keys and tests.create table if not exists dbo.daily_totals (store_id INT, paid_on DATE, total DECIMAL(18,2));

    Examples use the Harbor Retail demo code; the DDL line shows the shape of the output. The dbt files are schema files with each table's columns, types, keys and tests; rewriting the legacy logic in dbt stays with your team.

    AI that does the work. You decide.

    Ask in plain words. AI answers from your code and shows the exact lines. Your code is indexed once, so answers are lookups, not full code reads.

    AskAI
    Why is net revenue lower than the order total?
    Looked up in the index

    Ask about this column, or say what to do→
    Ask
    Find any table or column, or ask how a value is calculated.
    Act
    Runs impact analysis, drafts model changes, plans the work step by step.
    Decide
    Nothing changes until a person says yes.

    Reads the code your data runs on.

    Semagraph reads dbt, SQL and the jobs, services and dashboards around them, and draws column-level lineage in minutes. No database needed to start.

    Transformation
    dbt, SQL, stored procedures
    Spark and warehouses
    PySpark, Snowpark, Databricks SQL, BigQuery SQL
    Application code
    Python, notebooks, JavaScript, TypeScript, Java (MyBatis, iBatis)
    Dashboards
    Lightdash, Evidence, Power BI projects, dbt exposures
    Database connections
    Postgres today; Snowflake, Databricks and BigQuery coming next
    Generates DDL for
    Snowflake, Databricks, BigQuery, Postgres and 5 more

    Built for scale.

    The lineage graph is built for thousands of tables, and its speed is checked before changes to the graph merge.

    1,000s
    of tables in one graph
    Checked
    before graph changes merge
    Once
    code indexed, then looked up
    Coming next

    Match your code lineage with your production models and workloads.

    A semantic graph grounded in your real code and workloads.

    See where a design and your code differ: a column no code produces, a key the code does not enforce.

    Export a diagram as an image.

    Direct connections to Snowflake, Databricks and BigQuery, and lineage gaps such as SELECT * filled from a connected database.

    Questions

    What teams ask before they start.

    What is Semagraph?

    A visual AI tool for the modern data platform. It reads the code your data runs on and gives you column-level lineage, data models, impact analysis and an AI that does the work, in one place.

    Where does the lineage come from?

    From the code that builds your data on your platform: dbt, SQL, PySpark, Snowpark, Databricks SQL and BigQuery SQL, down to the column and across repositories, with every hop tied to its file and line. Start with your repositories in minutes; a connected Postgres database has its tables matched to the tables your code builds, and filling lineage gaps from it is coming next.

    Do we need to connect our database?

    No, not to start. Today you can connect Postgres to match its tables to your code and reverse-engineer a data model from them. Direct connections to Snowflake, Databricks and BigQuery, and filling lineage gaps from a connection, are coming next.

    What does it read?

    dbt, SQL, stored procedures, PySpark, Snowpark, Databricks SQL, BigQuery SQL, Python, notebooks, JavaScript and TypeScript, plus Lightdash, Evidence and Power BI dashboards and dbt exposures. Java is read through MyBatis and iBatis mappers. C# and Kotlin are not read yet.

    Can we design data models without code?

    Yes. Start from your code, from a database, or from scratch, in relational or dimensional style, with concept, logical and physical views. Export as dbt, or as DDL for 9 SQL dialects including Snowflake, Databricks, BigQuery and Postgres.

    What does the AI do, and who decides?

    It finds tables and columns, explains how a value is calculated from your code, runs impact analysis, and drafts data models, changes and plans. Nothing changes until a person says yes.

    How big can it go?

    The lineage graph is built for thousands of tables, and its speed is checked before changes to the graph merge.

    What happens when our code changes?

    A followed repository is read again when its main branch moves, and a branch can be checked before it merges to see what it would break. Semagraph only reads, and never changes your code or data.

    Can it help modernize legacy projects?

    Yes. It reads Java through MyBatis and iBatis mappers, stored procedures, Python and SQL, and turns the tables they build and their lineage into a data model. From that model it generates DDL for Snowflake, Databricks or BigQuery, and dbt schema files with columns, types, keys and tests; rewriting the legacy logic in dbt stays with your team.

    Can it build our semantic layer?

    Yes, step by step. Define business terms and metrics with AI help, bring in your dbt semantic models, and tie each definition to the tables and columns behind it.

    How do we start?

    Point it at a repository and read it. To look first, try the lineage demo on the made-up Harbor Retail code, or book a demo with your team.

    Book a demo.

    Or try the lineage demo first, on the made-up Harbor Retail repositories.