Local column-level lineage in dbt v2: does it require dbt login, and what does login send?

Hello,

I use dbt v2 (2.0.9) locally with Snowflake. I want column-level lineage on my local project. I have not created a dbt platform account yet. I want to understand the data handling first.

What I tried

  • The Column-level lineage page says I can use it locally with dbt v2 and static_analysis: strict.
  • My dbt_project.yml already sets +static_analysis: strict.
  • I ran dbt compile --generate-info-schema --static-analysis strict. It printed: “column-level lineage requires --static-analysis strict; no column lineage written”.
  • The dbt.column_lineage Parquet file has 0 rows. dbt show --info column_lineage returns “0 rows”.
  • dbt login status returns unauthenticated. dbt license info returns not_found.

What the docs say

  • About static analysis: any strict run requires dbt login. Unauthenticated runs fall back to baseline.
  • VS Code extension features: column-level lineage depends on the strict mode “rather than your account”.

These two pages disagree. My results match the first page.

Questions

  1. Do I need a dbt platform account to get local column lineage? if so, is the free account enough?
  2. The warning blames the missing --static-analysis strict flag, but I passed it. Should the message say that login is missing?
  3. What data does dbt login send to dbt Labs? For example: email, name, machine ID, project name.
  4. What does the license check send when it renews? The sample dbt license info output shows a short expiry. How often does it contact dbt Labs?
  5. Does login or the license check send any project metadata? For example: model names, column names, SQL, or manifest content. Is any warehouse data sent?
  6. After login, does the lineage calculation run fully on my machine?
  7. Is there a way to get strict mode and column lineage without a dbt platform login?

I could not find answers to questions 3 to 5 in the docs. A link to the right page would help.

Thank you.

Not dbt Labs staff, so this is only what the public docs and the open-source dbt-labs/dbt repo show. Where neither says, I say so. One caveat up front: per dbt’s “dbt licensing” page, dbt v2 “builds on dbt OSS and extends it with additional proprietary capabilities”, so the 2.0.9 binary you run may do more than the open-source code below shows. The code paths below are all in that repo (new accounts here get 2 links per post).

1. Account for local column lineage. (Edited Oct 29: dbt rewrote “About static analysis” today. The sentence I quoted before, that every strict-mode run needs dbt login, is no longer on the page.) As the docs read now, they point both ways:

  • “About static analysis” still lists column-level lineage as strict-only, and says the extension’s features “are available to all users — what you get depends on your static analysis mode, not your account.”
  • “dbt VS Code extension features” puts column-level lineage (static_analysis: strict) in that all-users group. The only things it lists as needing sign-in are the Catalog tab, platform metadata in the model docs tab, and platform deferral.
  • “About dbt login”, though, shows sample dbt license info output with features: compare, state-aware-orchestration, strict-static-analysis, which suggests strict analysis is still a licensed feature in the binary.

Your result (unauthenticated, strict ignored) fits the license reading, not the features page. The quickest test: run dbt license info before and after dbt login. If strict-static-analysis only appears after login, that settles it. On the free account: the login page says a free account “carries your access across all your dbt tools”, with no credit card. I still haven’t tested whether a free account’s license includes strict-static-analysis.

2. The warning. You did pass the flag, so naming the flag as the cause is misleading. That looks worth an issue on the dbt-labs/dbt repo, since it’s public.

3. What dbt login sends. In the source, login is a browser OAuth flow: you sign in on the dbt platform’s own page, and the CLI stores the session in ~/.dbt/oauth_sessions.json (crates/dbt-platform-auth/README.md). After login it makes one request I can see, a GET to https://<account host>/api/private/accounts/<account id>/features/ with the bearer token, to check whether the dbt-state feature is on (crates/dbt-login/src/state_guidance.rs). It also runs post-login hooks (hooks.did_login() in crates/dbt-login/src/execute.rs) that I couldn’t trace. I found no machine ID or project name in the login code, but that only covers this repo. One more data point, for the VS Code extension rather than the CLI: dbt Labs’ privacy policy (getdbt.com/cloud/privacy-policy) says the Plugin’s “Authentication data may include name, email, and device identifications.”

4. The license check. In the public repo LicenseFetcher is a trait whose only implementation is a no-op (crates/dbt-login/src/license_fetcher.rs). So the real check, what it sends and how often it runs aren’t in the open source. The networking requirements page, which says it lists every outbound endpoint, has three: adapter drivers, telemetry, and manifest downloads (Enterprise only). There’s no row for login or licensing. That gap is probably the clearest thing to ask dbt Labs about. (Added Oct 29.) The login page now documents dbt license info. It says dbt “uses local licenses to cache your logged-in state”, and the sample license is issued and expires 24 hours apart. My reading of that one sample is that the license is refreshed about daily; the docs don’t give a schedule. Sessions refresh automatically while you use dbt, and you’re asked to log in again after 7 days of inactivity. What the refresh request sends still isn’t documented.

5. Project metadata. What is documented is the separate anonymous usage telemetry (usage stats). It goes to https://p.vx.dbt.com and, per the docs, does not track “credentials, raw model contents, or model names”. It does send OS info, success or failure, duration, node count, and “an anonymized hash key representing the raw model content”. You can turn it off with DBT_ENGINE_SEND_ANONYMOUS_USAGE_STATS=false or DO_NOT_TRACK=1, and the event definitions are in crates/vortex-events/src/event_functions.rs. For login and the license check, I found nothing either way.

6. Does lineage run locally after login? Not stated anywhere I found.

7. Strict without login. Not documented either way. The sentence saying every strict run needs login is gone, and nothing replaced it.

Disclosure: I drafted this with an AI research tool and then checked every link and quote myself, including reading the Rust source. The parts I’m least sure of are the post-login hooks and whether strict mode needs a license at all, now that the docs disagree with each other.

Correction to my answer above: dbt rewrote the “About static analysis” page today, and the sentence I quoted (every strict-mode run needs dbt login) is gone. The docs now point both ways, so I’ve updated sections 1, 4 and 7. The quickest check on your machine is dbt license info before and after dbt login: if strict-static-analysis only shows up after login, that answers question 1.

Your note that dbt v2 builds on OSS with proprietary additions is the part I keep coming back to, so I wouldn’t read much into the open-source code paths for 2.0.9. Your license-before-and-after test is the one I’d trust over either doc page. On the warning text, blaming the flag you clearly passed does look misleading if license is the real gate. One thing worth adding to your questions: whether dbt login status or license info ever contacts dbt Labs at all, versus only renewing on a scheduled check. If the renewal is periodic, the payload question matters more than the one-time login.