For dbt developers working in Microsoft Fabric

A code-first approach across more of Fabric

You already know the appeal of defining data models in code. Weaver takes that approach across more of Microsoft Fabric: Python data loading, Lakehouses, Warehouse SQL, native Power BI, testing and the work that connects them.

Read more about dbt on Fabric →

When your work extends beyond SQL models

If your main task is transforming relations with dbt, you may already have the workflow you need. But Microsoft Fabric is much broader than SQL transformation. You may also need to load source data with Python, connect Lakehouse and Warehouse work, and deploy and refresh native Power BI models. Weaver brings that work into the same project and operating workflow.

One project from source data to Power BI

When your report depends on both a Python load and a Warehouse query, put those definitions and your native Power BI files in one project. Weaver records their dependencies and orders the selected data work, including the SQL endpoint readiness steps between engines.

Keep your SQL looking like SQL

Write an ordinary Warehouse SELECT and declare the table's columns and key in its comment. You choose which source changes to supply; Weaver creates the table and loading routines around your query, handling staging, key-based updates and recorded row changes. Supported T-SQL references establish dependencies.

Build and load are separate steps

Use weaver build --dry-run to inspect a deployment, then Build to install definitions and loading code. Run Load when you want to process data. This lets you review a definition change separately from the work that fills its tables.

Develop with the data already there

Use Mirror to borrow existing Warehouse and Lakehouse data through views and OneLake shortcuts. You can develop local changes to the parts you own without first copying every table into development.

Investigate the work behind a report

Use dbt's job results and lineage to investigate your dbt models. With Weaver, you can also query deployment, load and test history for managed Lakehouse, Warehouse and semantic-model work in Fabric Warehouse tables, or explore it in the included Power BI dashboard. See how to investigate a run →

Take native Power BI all the way to deployment

Keep authoring in PBIP and TMDL. Use Weaver to apply shared or model-specific rules, deploy models and associated Reports, and unit test DAX measures against independent SQL results. Build deploys definitions; Load refreshes the selected models after their selected sources.

Build, Load, Test and Health

Suppose you have defined a Warehouse item named Operations, including its tables and validations. From its project folder, with workspace-config.yml pointing to your prepared Fabric workspace, catalogue and Warehouse target, you can inspect the deployment before installing it:

From a configured Fabric project
weaver build --item Warehouse/Operations --dry-run
weaver build --item Warehouse/Operations
weaver load Warehouse/Operations
weaver test Warehouse/Operations
weaver health

Build reads your source files. Load runs the installed loading code; Test runs the installed validations. Rebuild after a source edit to put it into use. Health reads the managed estate's state so you can see what needs attention. The same commands cover Lakehouse and semantic-model work; build physical sources first, then models and Reports in a separate call.

See how the commands work →

Lineage and run state in Power BI

When a report looks out of date, start by asking which source loads and model refreshes completed. dbt in Fabric gives you job results, tests and model lineage. Weaver's Catalogue Dashboard brings the managed Lakehouse, Warehouse and semantic-model work into the same investigation.

dbt in Fabric

Inspect dbt job runs, tests, compiled SQL and model dependencies. Detailed execution logs are stored in OneLake.

Weaver

Open the included Power BI dashboard to find failed or stale work, follow its dependencies and examine workflow timings. Query the underlying Fabric Warehouse tables when you need your own analysis of deployment, load and test history.

Use lineage to follow transformation dependencies. When you need to understand how tables relate, use Weaver's ER diagram of declared primary and foreign keys, or the fact-to-dimension bus matrix for each native Power BI semantic model. These answer a different question from which transformation ran first.

Try all eight interactive dashboard pages →Explore the semantic-model bus matrix →

The differences, side by side

This compares Weaver with dbt jobs and the Warehouse and Spark adapters in Fabric. dbt also offers additional Catalog and documentation features outside the Fabric job experience.

✓ included   ◐ partial support   ✕ not built into the adapter

Capability Weaver dbt on Fabric
Fabric projects
Manage Lakehouse and Warehouse work in one project ✓ ✕ Warehouse and Spark use separate adapters and targets
Include Fabric shortcuts in the dependency graph ✓ ✕ not graph resources
Use the same project files in development and production ✓ ◐ targets and database configuration change relation locations
Develop using existing Fabric data without full copies ✓ ◐ table clone is documented within a Warehouse
Handle SQL endpoint refresh as part of cross-engine Load✓ Refresh metadata when required; SQL consumers wait for the endpoint to be ready✕ Fabric synchronises SQL metadata separately; dbt jobs do not manage this readiness step
Authoring
Write SQL without dependency macros ✓ ✕ dependencies use ref() and source()
Recognise dependencies from Python imports ✓ ✕ Python models use dbt.ref()
Python loaders for APIs, SFTP, archives and files ✓ ✕ Python models produce relations
Warehouse identity column declared with the table ✓ ✕ not provided as a model setting
Build and runs
Create tables and loading code without running a data load ✓ ✕ model materialisation creates and populates the relation
Query deployment, load and test state in Fabric Warehouse tables✓ Catalogue includes definitions, dependencies, outcomes and history◐ Fabric dbt jobs show run, test and lineage views; detailed logs and generated artifacts are in OneLake, not a comparable built-in SQL catalogue
Track where each table should resume loading ✓ bookmarks ◐ incremental models usually query the target
Assess current, stale, failed and blocked work together✓ Health combines installed definitions, loads and validations◐ Fabric dbt jobs show run and test outcomes; no equivalent cross-workload Health report
Keep unrelated work running after a failure ✓ with fault-tolerant loading ✓ descendants are skipped
Loading data
Support incremental changes from multiple sources, including inserts, updates and deletes✓ Custom Python or SQL chooses candidates and delete keys; Weaver handles staging, applying changes and per-consumer progress✓ Multi-source models, merge and delete strategies are available; exact behaviour depends on adapter and configuration
Reject invalid input rows and keep the reason ✓ ✕ no built-in rejected-row quarantine
Stop unexpectedly large data changes before applying them ✓ ✕ not a built-in model policy
Catalogue Dashboard and visual exploration
Deploy a Power BI dashboard for Health, performance, Gantt and orchestration✓ Ready to deploy over queryable Catalogue tables◐ Fabric dbt jobs show run, test and lineage views, not a bundled Power BI estate dashboard
Explore table relationships with an ER diagram✓ Uses declared Lakehouse and Warehouse primary/foreign keys◐ dbt provides lineage graphs; a key-based ER diagram is not a built-in Fabric dbt job view
See fact/dimension relationships in a Power BI model bus matrix✓ Shows semantic-model table relationships and their properties✕ Not provided as a built-in Fabric dbt job view
Power BI semantic models and Reports
Deploy native Power BI models and Reports✓✕not part of dbt-fabric deployment
Apply shared Power BI rules and reuse models✓✕dbt semantic models define its own metrics layer
Unit test DAX measures against SQL results✓✕not a dbt-fabric validation target
Refresh Power BI models after source data loads✓✕Power BI refresh is outside the adapter run

Migrating from dbt

Start by mapping your dbt models and validations to Weaver Tables, Views and Tests. Keep the original business logic and incremental behaviour explicit as you choose the Fabric destinations.

Use this brief with a coding agent to inspect your project, confirm the migration decisions with you and validate the result. It defaults to isolated development destinations and local validation; authorise deployment separately when you are ready.

View Markdown

Migration guide Scroll to read

Migrate a dbt project to Weaver

You are migrating an existing dbt project on Microsoft Fabric to Weaver.

Weaver is a declarative framework for data engineering on Microsoft Fabric. A Weaver project declares Tables, Views, Folders, Shortcuts, Tests and Assumptions using ordinary SQL, Python and metadata. Weaver manages deployment, dependencies, incremental loading, testing and operational state.

Express the dbt project’s intent using Weaver’s native architecture rather than mechanically reproducing dbt’s implementation. Inspect the source, confirm the architecture decisions with the user, then implement and validate the migration.

Migration contract

Produce a working Weaver project that preserves the original business logic, data outputs, incremental behaviour and validations.

Every in-scope dbt resource must have a corresponding Weaver implementation, documented alternative or explicitly reported gap.

Preserve the original dbt project. Do not perform destructive operations or deploy to production without authorisation.

1. Understand the source project

Run:

terminal
dbt parse

Treat target/manifest.json as the authoritative inventory of models, dependencies, sources, tests and other resources.

Use dbt compile where necessary to inspect generated SQL, subject to the permissions and execution requirements of the source project.

Reference: dbt parse.

2. Confirm migration decisions with the user

Before generating Weaver definitions, inspect the source project and propose answers to the following questions.

Ask the user to confirm or modify your recommendations. Group the questions into one concise interaction. Do not ask questions whose answers are already clear from the source project.

A. Source environment and scope

Which dbt target/profile and project scope should be migrated? All enabled models, or a selected subset? Should seeds, snapshots, tests and custom hooks be included?

Default: Migrate all enabled resources and report unsupported features.

B. Fabric destinations

Which Fabric workspace, Lakehouses and Warehouses should the new Weaver project use?

Propose logical Weaver item names, physical Fabric item names, a catalogue Warehouse and, where required, a Fabric Environment.

Should the project use new destinations or existing items?

Default: Use new, isolated development destinations. Preserve the original SQL engine used by each model.

C. Names and schemas

Should schema, table, view and column names remain unchanged, or should they be standardised during migration?

Default: Preserve existing business-facing names.

D. External references

Should references to other Fabric items use Weaver Shortcuts, or retain direct physical references where supported?

Default: Use logical Shortcuts for Weaver-managed producers and physical Shortcuts for external Fabric data wherever supported. Use direct references only where appropriate.

Account for differences in supported Shortcut types and workspace boundaries.

E. Incremental loading

Should incremental models retain their current change-selection strategy, or be adapted to use Weaver’s per-consumer bookmarks?

Inspect the source’s available timestamps, CDC, change history, deletion handling and late-arriving records before recommending a strategy.

Default: Preserve existing incremental semantics. Recommend bookmark-driven selection where change evidence is sufficient and the resulting behaviour can be validated.

Do not silently substitute bookmarks for target-derived watermarks or other existing state mechanisms.

F. Existing data and historical state

Should migrated tables start empty and be rebuilt, or should existing target data, snapshots and history be preserved?

Identify any objects that cannot safely be reconstructed.

Default: Build new targets without modifying existing data. Explicitly plan historical-state preservation where required.

G. Validation and deployment

Is an isolated Fabric workspace available for Build, Load and Test? Can the agent read the original datasets to compare results?

Should the migration stop at validated project files, or proceed to a fully tested non-production deployment?

Default: Perform local validation without deployment unless explicitly authorised.

For unusual resources such as custom dbt materialisations, macros, packages and snapshots, ask additional targeted questions only when necessary.

3. Implement the Weaver project

Follow the architecture and authoring contracts in the documentation.

Architecture and configuration

Data engineering

Validation

Use these specifications to implement the project. Prefer native Weaver capabilities rather than recreating dbt-specific runtime machinery.

4. Validate

Run this throughout the migration and once after completing it:

terminal
weaver check

Reconcile the migrated project against target/manifest.json. Account for every in-scope resource.

Where authorised, perform a Build dry-run:

terminal
weaver build --dry-run

Where authorised and an isolated Fabric environment is available, deploy there and compare schemas, row counts, keys, calculated results, incremental updates, deletes and test outcomes.

A successful dbt parse and weaver check establish structural validity. They do not establish functional data equivalence.

5. Deliver

Provide the complete Weaver project, a dbt-to-Weaver resource mapping, the configuration decisions made, validation evidence and unresolved migration gaps.

The migration is complete only when the required behaviour has been preserved and independently verified.

Try it with one Fabric item

Start with a Warehouse query, a Lakehouse table or an existing Power BI model. Try Weaver on one part of your Fabric work, then add more when it's useful.

The Power BI comparison is about deploying and testing native PBIP/TMDL models and Reports. dbt's Power BI Semantic Layer integration is a different workflow.

Comparison sources: Fabric dbt job UI, OneLake job logs, SQL endpoint metadata sync, dbt incremental models, dbt-fabric changes, dbt-fabricspark and dbt Catalog.