<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to run DBT spark jobs for Fabric lakehouse. in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-DBT-spark-jobs-for-Fabric-lakehouse/m-p/4989705#M14906</link>
    <description>&lt;P&gt;Hi folks,&lt;BR /&gt;&lt;BR /&gt;I am looking for dbt and lakehouse setup, like what should the profile and project file have.&lt;BR /&gt;&lt;BR /&gt;Things I am looking for.&lt;BR /&gt;1. Setting up connection using DBT with lakehouse&lt;/P&gt;&lt;P&gt;2. How dbt wil run Spark jobs. Do I need to specify .py files in dbt directory or should have fabric notebooks in Fabric portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. What is the authentication methods&amp;nbsp;&lt;BR /&gt;4. Limitations while using the DBT for spark job in Fabric.&lt;BR /&gt;&lt;BR /&gt;Please share you thoughts on this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks !!&lt;/P&gt;</description>
    <pubDate>Mon, 02 Feb 2026 11:20:03 GMT</pubDate>
    <dc:creator>chetanhiwale</dc:creator>
    <dc:date>2026-02-02T11:20:03Z</dc:date>
    <item>
      <title>How to run DBT spark jobs for Fabric lakehouse.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-DBT-spark-jobs-for-Fabric-lakehouse/m-p/4989705#M14906</link>
      <description>&lt;P&gt;Hi folks,&lt;BR /&gt;&lt;BR /&gt;I am looking for dbt and lakehouse setup, like what should the profile and project file have.&lt;BR /&gt;&lt;BR /&gt;Things I am looking for.&lt;BR /&gt;1. Setting up connection using DBT with lakehouse&lt;/P&gt;&lt;P&gt;2. How dbt wil run Spark jobs. Do I need to specify .py files in dbt directory or should have fabric notebooks in Fabric portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. What is the authentication methods&amp;nbsp;&lt;BR /&gt;4. Limitations while using the DBT for spark job in Fabric.&lt;BR /&gt;&lt;BR /&gt;Please share you thoughts on this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks !!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2026 11:20:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-DBT-spark-jobs-for-Fabric-lakehouse/m-p/4989705#M14906</guid>
      <dc:creator>chetanhiwale</dc:creator>
      <dc:date>2026-02-02T11:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to run DBT spark jobs for Fabric lakehouse.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-DBT-spark-jobs-for-Fabric-lakehouse/m-p/4990295#M14913</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/803370"&gt;@chetanhiwale&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's a tutorial for this in Microsoft docs . Here's the link&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-warehouse/tutorial-setup-dbt" target="_blank"&gt;Set up dbt for Fabric Data Warehouse - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition to the above there are some good materials online. Here are a couple of links:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A blog on running dbt-fabric adapter in Fabric notebooks&lt;/P&gt;&lt;P&gt;&lt;A href="https://ssugar.github.io/Blog/2024-05-09-DBTinFabricNotebook/" target="_blank"&gt;Running DBT with the dbt-fabric Adapter in a Fabric Notebook | Blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A quickstart for dbt on Fabric&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.getdbt.com/guides/microsoft-fabric?step=1" target="_blank"&gt;Quickstart for dbt and Microsoft Fabric | dbt Developer Hub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In summary you can use dbt core using either of these approaches:&lt;/P&gt;&lt;P&gt;1. dbt Core locally using dbt-fabric adapter&lt;/P&gt;&lt;P&gt;2. dbt Core inside a Fabric notebook.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Generally the process involves the following steps:&lt;/P&gt;&lt;DIV&gt;&lt;UL&gt;&lt;LI&gt;Install dbt + dbt-fabric&lt;/LI&gt;&lt;LI&gt;Create Fabric Warehouse&lt;/LI&gt;&lt;LI&gt;Configure profiles.yml&lt;/LI&gt;&lt;LI&gt;Build models (SQL)&lt;/LI&gt;&lt;LI&gt;Run / test / document&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;For authentication it is best you use a Microsoft Entra Service Principle.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 02 Feb 2026 12:10:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-DBT-spark-jobs-for-Fabric-lakehouse/m-p/4990295#M14913</guid>
      <dc:creator>deborshi_nag</dc:creator>
      <dc:date>2026-02-02T12:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to run DBT spark jobs for Fabric lakehouse.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-DBT-spark-jobs-for-Fabric-lakehouse/m-p/4990300#M14914</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/803370"&gt;@chetanhiwale&lt;/a&gt;&amp;nbsp;, Thank you for reaching out to the Microsoft Community Forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dbt connects to a Fabric Lakehouse by using Fabric’s Spark SQL endpoint, not by connecting to the Lakehouse storage directly. Fabric exposes its Lakehouse through a managed Spark engine and that Spark engine exposes a SQL interface that external tools can connect to. dbt uses the dbt-spark adapter to send SQL over this endpoint and Spark executes that SQL against Delta tables stored in the Lakehouse.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you run dbt, it does not run Python code or Fabric notebooks. dbt always compiles your models into SQL and sends that SQL to Spark. Spark then executes statements like CREATE TABLE AS SELECT, MERGE or INSERT and writes the results into Delta tables in the Lakehouse. You do not need to create notebooks or .py files for dbt, all transformations happen through Spark SQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Authentication is done using Azure Entra ID (Azure AD). Fabric Spark endpoints only accept Azure AD bearer tokens, so dbt must authenticate either as a service principal for production or as a user for development. There are no SQL usernames, passwords or PAT tokens for Spark in Fabric, which is why dbt must be configured to use an Azure AD access token in profiles.yml.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dbt works well in Fabric for SQL based transformations such as models, incremental loads, snapshots and tests because Fabric Lakehouse is built on Delta Lake and Spark. What it cannot do is run PySpark, trigger Fabric notebooks or execute Fabric pipelines, because Fabric does not expose those runtimes to external tools like dbt. Spark in Fabric is also serverless, so you cannot control cluster size or install custom libraries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The practical result is that dbt in Fabric is a SQL transformation layer on top of the Lakehouse. dbt sends SQL, Spark executes it and Delta tables are written back to the Lakehouse for Power BI, Direct Lake or the Warehouse to consume.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/dbt-job-overview" target="_blank"&gt;dbt job in Microsoft Fabric (preview) - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-sql-analytics-endpoint" target="_blank"&gt;What is the SQL analytics endpoint for a lakehouse? - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.getdbt.com/reference/resource-configs/fabricspark-configs" target="_blank"&gt;Microsoft Fabric Spark configurations | dbt Developer Hub&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.getdbt.com/docs/core/connect-data-platform/fabricspark-setup" target="_blank"&gt;Microsoft Fabric Lakehouse setup | dbt Developer Hub&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2026 12:13:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-DBT-spark-jobs-for-Fabric-lakehouse/m-p/4990300#M14914</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2026-02-02T12:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to run DBT spark jobs for Fabric lakehouse.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-DBT-spark-jobs-for-Fabric-lakehouse/m-p/4996174#M14971</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/803370"&gt;@chetanhiwale&lt;/a&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for being part of the Microsoft Fabric Community.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Feb 2026 07:16:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-DBT-spark-jobs-for-Fabric-lakehouse/m-p/4996174#M14971</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2026-02-05T07:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to run DBT spark jobs for Fabric lakehouse.</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-DBT-spark-jobs-for-Fabric-lakehouse/m-p/5002163#M15042</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/803370"&gt;@chetanhiwale&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;SPAN data-teams="true"&gt;Hope you're doing okay! May we know if it worked for you, or are you still experiencing difficulties? Let us know — your feedback can really help others in the same situation.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 05:17:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-run-DBT-spark-jobs-for-Fabric-lakehouse/m-p/5002163#M15042</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2026-02-10T05:17:29Z</dc:date>
    </item>
  </channel>
</rss>

