Skip to main content

VibeData dbt runtime — Fabric notebook execution unit: clone the domain repo (Key Vault m2m PAT) and run a list of dbt commands on the official dbt-fabricspark adapter, persisting run_results/manifest to the lakehouse. notebookutils is provided by the Fabric runtime; dbt + dbt-fabricspark are pip-installed by the notebook.

Project description

vibedata-dbt-fabric-notebook

Fabric notebook execution unit for dbt — the dbt counterpart of vibedata-dlt-fabric-notebook. Clones the domain repo and runs a list of dbt commands on the official dbt-fabricspark adapter (Livy/Spark), persisting run_results.json + manifest.json + dbt.log to the lakehouse (the dbt audit the runtime-audit read layer reads — the dbt analog of dlt's finalize()).

Use inside a Fabric notebook

%pip install vibedata-dbt-fabric-notebook dbt-fabricspark>=1.10 -q

from vibedata.dbt.fabric.notebook import clone_domain_repo, run_dbt_commands

repo = clone_domain_repo(REPO_URL, vault_url=VAULT_URL, branch=BRANCH)   # KV m2m PAT
run_dbt_commands(
    ["dbt deps", "dbt build --select +fct_orders --target prod"],
    project_dir=f"{repo}/transformation",
)
  • Auth: the domain repo is cloned with the m2m GitHub secret (domain-github-pat-token) read from Key Vault via notebookutils — the same slot the dlt runner uses. No OneLake deploy key.
  • Command list: dbt Core has no "run a list" concept; run_dbt_commands is a thin fail-fast loop. Put dbt deps in the list if you need it — the runner never runs it implicitly.
  • Zero pip deps of its own: notebookutils is provided by the Fabric runtime; dbt + dbt-fabricspark are installed by the notebook cell.

Follow-up

clone_domain_repo here duplicates the dlt runner's clone. They should fold into one shared, dlt-free *-notebook-core helper — deferred to avoid a refactor of the working dlt packages (fabric-core currently pulls dlt, so it isn't a clean shared home). Tracked as a follow-up.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vibedata_dbt_fabric_notebook-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vibedata_dbt_fabric_notebook-0.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file vibedata_dbt_fabric_notebook-0.1.0.tar.gz.

File metadata

File hashes

Hashes for vibedata_dbt_fabric_notebook-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6e29631db8a695fe7dbc1e537f2768a5969fad8030626ee7927fc653364d888f
MD5 a9afef028bcc3189806e4dc7265de6fb
BLAKE2b-256 904e4323cc317e6fa2bbee8146392e2fe4b5d95e52d244886d5b35d28103efee

See more details on using hashes here.

File details

Details for the file vibedata_dbt_fabric_notebook-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vibedata_dbt_fabric_notebook-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e38bef7dc80bf7bf8ddb77b36baf9722267fa203282093363343267354362b8b
MD5 445d5a83eacbb864479e782ceb664647
BLAKE2b-256 db31969bb747571ca16a17fb0aed850d2ce510f119bef5369df48f30dbd5f1aa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page