<?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>Community Articles topics</title>
    <link>https://community.databricks.com/t5/community-articles/bd-p/Knowledge-Sharing-Hub</link>
    <description>Community Articles topics</description>
    <pubDate>Tue, 01 Dec 2026 22:11:30 GMT</pubDate>
    <dc:creator>Knowledge-Sharing-Hub</dc:creator>
    <dc:date>2026-12-01T22:11:30Z</dc:date>
    <item>
      <title>When should a Gold layer be a view instead of a Delta table?</title>
      <link>https://community.databricks.com/t5/community-articles/when-should-a-gold-layer-be-a-view-instead-of-a-delta-table/m-p/178342#M2015</link>
      <description>&lt;P&gt;On a recent governance project I found a materialized view that cost more to refresh than the dashboard it fed was worth. Nobody had chosen that on purpose; it was a default. Since then I decide the object type for every Gold asset explicitly. Here is the rule I use.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The three options&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;View:&lt;/STRONG&gt; a saved query. Nothing is stored, so it's always current, and you pay compute on every read.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Materialized view:&lt;/STRONG&gt; the result is stored and refreshed, incrementally where possible. Reads are cheap; you pay on every refresh.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Delta table:&lt;/STRONG&gt; written by a pipeline. You control exactly how and when it's written, and you can keep history.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;The rule I use&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Query is cheap and must show the latest data → &lt;STRONG&gt;view&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Query is expensive and read many times between source changes → &lt;STRONG&gt;materialized view&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;A pipeline must own the writes (MERGE, multi-step logic) → &lt;STRONG&gt;Delta table&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;You need to prove what the number was last month → &lt;STRONG&gt;Delta table with snapshots or SCD 2&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Underneath, it's a trade-off between freshness and compute. A quick test: compare reads per day with source changes per day. Many reads and few changes point to a materialized view. Few reads, or data that must be live, point to a view.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;An example&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;KPI: monthly on-time delivery by region. The source has billions of rows and updates hourly. Hundreds of people open the dashboard every day, and finance needs to show what was reported at month-end.&lt;/P&gt;&lt;P&gt;My answer was two objects, not one: a materialized view for the dashboard, and a month-end snapshot table written by a pipeline for audit. A materialized view only knows the current value, so it can't answer "what did we report on the 31st?"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Three things that went wrong for me&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Refresh without an owner.&lt;/STRONG&gt; A materialized view refreshed every hour and was read twice a day. Every scheduled object now gets an owner and a cost tag on day one.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Full recompute on every refresh.&lt;/STRONG&gt; A rolling filter with current_date() blocked incremental refresh. I moved the time filter to the consumer and checked the refresh details to confirm the refresh became incremental. Enabling row tracking on the source tables helps too:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ALTER TABLE sales.silver.deliveries&lt;BR /&gt;SET TBLPROPERTIES ('delta.enableRowTracking' = 'true');&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Views stacked on views.&lt;/STRONG&gt; Each was cheap on its own, but five levels deep made the dashboard slow. I now materialize at the level where the expensive join or aggregation happens.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;What I do now&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For each Gold asset I write down four things: who reads it and how often, how fresh it must be, whether history is needed, and who owns the refresh. The object type follows from those answers.&lt;/P&gt;&lt;P&gt;How do you decide this on your projects? I'd like to hear where your rule differs.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2026 13:15:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/when-should-a-gold-layer-be-a-view-instead-of-a-delta-table/m-p/178342#M2015</guid>
      <dc:creator>DafinaBerisha</dc:creator>
      <dc:date>2026-12-01T13:15:43Z</dc:date>
    </item>
    <item>
      <title>Solution Accelerator Series | Medicare Risk Adjustment</title>
      <link>https://community.databricks.com/t5/community-articles/solution-accelerator-series-medicare-risk-adjustment/m-p/178332#M2014</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Medicare risk adjustment relies on understanding beneficiaries’ health conditions, while claims data can provide only a narrow, point-in-time view. The &lt;/SPAN&gt;&lt;STRONG&gt;Medicare Risk Adjustment Solution Accelerator&lt;/STRONG&gt;&lt;SPAN&gt;, from Databricks and John Snow Labs, demonstrates how NLP models can extract undiagnosed conditions from unstructured clinical notes and support more accurate risk adjustment.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;With this Accelerator, you get&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Ready-to-use resources:&lt;/STRONG&gt; &lt;A href="https://notebooks.databricks.com/notebooks/HLS/medicare-risk-adjustment/index.html?itm_source=www&amp;amp;itm_category=solutions&amp;amp;itm_page=medicare-risk-adjustment&amp;amp;itm_location=body&amp;amp;itm_component=cta-image-block&amp;amp;itm_offer=index.html#medicare-risk-adjustment_1.html" target="_blank"&gt;&lt;SPAN&gt;pre-built code, sample data and step-by-step instructions ready to go in a Databricks notebook&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Detect undiagnosed conditions:&lt;/STRONG&gt;&lt;SPAN&gt; apply NLP models to unstructured clinical text.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Add standard risk codes:&lt;/STRONG&gt;&lt;SPAN&gt; use pretrained models to append ICD-10 and HCC codes.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Recalculate risk scores:&lt;/STRONG&gt;&lt;SPAN&gt; calculate revised RAF scores to support accurate payment calculations.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="p8i6j01 paragraph"&gt;&lt;A style="background-color: #ff3621; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; font-weight: bold; display: inline-block;" href="https://www.databricks.com/solutions/accelerators/medicare-risk-adjustment?itm_source=www&amp;amp;itm_category=solutions&amp;amp;itm_page=accelerators&amp;amp;itm_location=body&amp;amp;itm_component=general-asset-card&amp;amp;itm_offer=medicare-risk-adjustment" target="_blank" rel="noopener"&gt; &lt;span class="lia-unicode-emoji" title=":link:"&gt;🔗&lt;/span&gt; Launch Solution Accelerator &lt;span class="lia-unicode-emoji" title=":backhand_index_pointing_left:"&gt;👈&lt;/span&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2026 12:14:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/solution-accelerator-series-medicare-risk-adjustment/m-p/178332#M2014</guid>
      <dc:creator>Tushar_Parekar</dc:creator>
      <dc:date>2026-12-01T12:14:58Z</dc:date>
    </item>
    <item>
      <title>Provisioning Azure Databricks workspace end to end with Terraform, Terragrunt and GitHub Actions</title>
      <link>https://community.databricks.com/t5/community-articles/provisioning-azure-databricks-workspace-end-to-end-with/m-p/178266#M2006</link>
      <description>&lt;P&gt;Getting one Azure Databricks workspace up in the portal takes minutes. Getting dev, uat and prod up the same way every time, injected into your own network, attached to a shared Unity Catalog metastore, with governed storage and no one running Terraform from a laptop, is a different problem. This article is for platform engineers and architects who own that problem. It walks through one working design, the decisions behind it, and the places where it broke before it worked.&lt;/P&gt;&lt;P&gt;This is not a universal solution. It is one design with a reason behind each choice, and you can adapt it to your own platform.&lt;/P&gt;&lt;DIV class=""&gt;&lt;H2&gt;The architecture&lt;/H2&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HongC_1-1796091314256.png" style="width: 756px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33879iB8AD0CD876ACD7D4/image-dimensions/756x425?v=v2" width="756" height="425" role="button" title="HongC_1-1796091314256.png" alt="HongC_1-1796091314256.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything on the customer side lives in one Azure subscription. Each workspace is injected into a virtual network I own, with no public IPs on cluster nodes. Lakehouse data sits in ADLS Gen2, and Unity Catalog reaches it through an Azure Databricks access connector, which is a managed identity. Databricks runs the control plane: the workspace UI, the APIs and the job services.&lt;/P&gt;&lt;P&gt;Each environment's network is a /24 with three subnets: a host subnet and a container subnet (both /26, dedicated to Databricks) and a /27 Private Link subnet holding three private endpoints, for the UI and API, for browser sign-in, and for the backend. One network security group covers the subnets, and a private DNS zone (privatelink.azuredatabricks.net) is linked to the VNet. Clusters open an outbound connection to the control plane through the backend private endpoint. There is no inbound port.&lt;/P&gt;&lt;P&gt;The code is split into three Terragrunt stacks, deployed in this order:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;live/metastore: the Unity Catalog metastore, once per region, shared by every environment.&lt;/LI&gt;&lt;LI&gt;live/&amp;lt;env&amp;gt;/workspace: network, private endpoints, workspace, metastore assignment, admin group.&lt;/LI&gt;&lt;LI&gt;live/&amp;lt;env&amp;gt;/workspace-bootstrap: storage, access connector, storage credential, external location, isolated catalog, cluster policies, secret scope, and a validation notebook.&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;&lt;H2&gt;Key design decisions&lt;/H2&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;1. Two stacks per environment, not one.&lt;/STRONG&gt; The workspace stack produces a secure, empty workspace: right network, no public IPs, metastore attached, admin group in place. The bootstrap stack turns it into a working one. I split them because they change at different rates and fail for different reasons; a broken grant should never put the workspace's network in a plan. The bootstrap reads the workspace URL, ID and Azure resource ID straight from the workspace stack's state through a Terragrunt dependency block, so nobody copies values by hand. The alternative, one stack per environment, is simpler to start but makes every catalog change a workspace-level plan.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. An environment is only a configuration file.&lt;/STRONG&gt; The repository splits into live/ (what to deploy and where) and modules/ (how). The terragrunt.hcl files are identical in dev, uat and prod. Comparing the environments' config.yaml files shows only names, IP ranges and tags differ. Adding an environment means copying a folder and changing names and the CIDR. I did not take the alternative of per-environment Terraform code or Terraform workspaces, because drift between copies is exactly what I wanted to remove.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. VNet injection with backend Private Link, enforced in code.&lt;/STRONG&gt; NoAzureDatabricksRules means Azure adds no NSG rules for a public path to the control plane, which requires backend Private Link. Rather than trust every config file to get that right, the workspace module refuses anything else. Public network access to the UI stays on for now: the UI and auth endpoints already exist, but turning public access off first needs a network path for users (VPN or ExpressRoute) and DNS that resolves the workspace to the endpoints. The alternative, a Databricks-managed VNet, gives up control of address space, routing and peering.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4. No storage keys, and one catalog per workspace.&lt;/STRONG&gt; The access connector's managed identity holds one role on one storage account. Unity Catalog checks grants and then issues a short-lived credential for that identity. Each environment's catalog is ISOLATED and bound only to its own workspace, so dbxarchitectlab_dev is not visible from uat or prod. The metastore has no storage root; each catalog brings its own storage. The alternative, a metastore-level root shared by every environment, puts all environments' managed data in one place.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;5. Nothing deploys from a laptop.&lt;/STRONG&gt; Every plan and apply runs in one GitHub Actions workflow as a deployment service principal. GitHub OIDC signs in the Azure CLI through one federated credential per GitHub environment. In the current implementation the azurerm provider, the state backend and the account-level Databricks provider still use a client secret. That split is a choice in this repository, not a Databricks requirement; moving those providers to the federated token, and removing the secret, is the direction I would prefer.&lt;/P&gt;&lt;DIV class=""&gt;&lt;H2&gt;Practical details&lt;/H2&gt;&lt;/DIV&gt;&lt;P&gt;One root file gives every stack its own state file in one storage account, read with Entra ID instead of a storage key.&lt;/P&gt;&lt;P&gt;live/root.hcl&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;remote_state&lt;/SPAN&gt; {
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;backend&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;azurerm&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;# ...&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;config&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;{
    resource_group_name  &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;rg-dbx-architect-lab&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
    storage_account_name &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;adlsdbxarchitectlab&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
    container_name       &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;tfstate&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
    key                  &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;${&lt;/SPAN&gt;&lt;SPAN class=""&gt;path_relative_to_include&lt;/SPAN&gt;()&lt;SPAN class=""&gt;}&lt;/SPAN&gt;/terraform.tfstate&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
    subscription_id      &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;get_env&lt;/SPAN&gt;(&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;ARM_SUBSCRIPTION_ID&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;)
    use_azuread_auth     &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;true&lt;/SPAN&gt;
  }
}&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;The network decisions live as plain settings, with no logic in them.&lt;/P&gt;&lt;P&gt;live/dev/config.yaml&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;network&lt;/SPAN&gt;:
  &lt;SPAN class=""&gt;no_public_ip&lt;/SPAN&gt;: &lt;SPAN class=""&gt;true&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;public_network_access_enabled&lt;/SPAN&gt;: &lt;SPAN class=""&gt;true&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;network_security_group_rules_required&lt;/SPAN&gt;: &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;NoAzureDatabricksRules&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;# ...&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;vnet_cidr&lt;/SPAN&gt;: &lt;SPAN class=""&gt;[ "10.0.0.0/24" ]&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;public_subnet_cidr&lt;/SPAN&gt;: &lt;SPAN class=""&gt;[ "10.0.0.0/26" ]&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;private_subnet_cidr&lt;/SPAN&gt;: &lt;SPAN class=""&gt;[ "10.0.0.64/26" ]&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;privatelink_subnet_cidr&lt;/SPAN&gt;: &lt;SPAN class=""&gt;[ "10.0.0.128/27" ]&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;The module turns those decisions into rules. If one is broken in a config file, the plan stops before anything is created.&lt;/P&gt;&lt;P&gt;modules/adb_workspace_private/modules/workspace/main.tf&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;  &lt;SPAN class=""&gt;lifecycle&lt;/SPAN&gt; {
    &lt;SPAN class=""&gt;precondition&lt;/SPAN&gt; {
      &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;condition&lt;/SPAN&gt;     &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;lower&lt;/SPAN&gt;(var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;pricing_tier&lt;/SPAN&gt;) &lt;SPAN class=""&gt;==&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;premium&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;error_message&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;This design requires Premium SKU.&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
    }

    &lt;SPAN class=""&gt;precondition&lt;/SPAN&gt; {
      &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;condition&lt;/SPAN&gt;     &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;no_public_ip&lt;/SPAN&gt; &lt;SPAN class=""&gt;==&lt;/SPAN&gt; &lt;SPAN class=""&gt;true&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;error_message&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;no_public_ip must be true.&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
    }

    &lt;SPAN class=""&gt;precondition&lt;/SPAN&gt; {
      &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;condition&lt;/SPAN&gt;     &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;lower&lt;/SPAN&gt;(var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;network_security_group_rules_required&lt;/SPAN&gt;) &lt;SPAN class=""&gt;==&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;noazuredatabricksrules&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;error_message&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;network_security_group_rules_required must be NoAzureDatabricksRules.&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
    }
    &lt;SPAN class=""&gt;# ...&lt;/SPAN&gt;
  }&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Subnet size is a capacity decision. Every cluster node takes one address in the host subnet and one in the container subnet, so the smaller subnet sets the limit. A /26 has 59 usable addresses, so at most 59 nodes at a time; a /25 gives 123 and a /24 gives 251. Treat those as an upper bound: VM quotas and other platform limits can be lower.&lt;/P&gt;&lt;P&gt;The bootstrap stack connects to the workspace stack through its state. The mock outputs only let validate and plan run before the workspace exists.&lt;/P&gt;&lt;P&gt;live/dev/workspace-bootstrap/terragrunt.hcl&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;dependency&lt;/SPAN&gt; &lt;SPAN class=""&gt;"workspace"&lt;/SPAN&gt; {
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;config_path&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;../workspace&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;

  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;mock_outputs&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;{
    workspace_id          &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;1234567890123456&lt;/SPAN&gt;
    &lt;SPAN class=""&gt;# ...&lt;/SPAN&gt;
  }

  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;mock_outputs_allowed_terraform_commands&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;[&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;validate&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;, &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;plan&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;]
}&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;H2&gt;What went wrong, and the fix&lt;/H2&gt;&lt;/DIV&gt;&lt;P&gt;These are documented in the repository's code comments and DEPLOYMENT.md.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The external location failed with a 403 right after the role assignment.&lt;/STRONG&gt; Creating an external location validates access immediately, and Azure role assignments take a while to apply. Before they do, ADLS answers 403. The fix is an explicit wait between the role assignment and the credential:&lt;/P&gt;&lt;P&gt;modules/workspace_bootstrap/modules/databricks-external-location/main.tf&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;resource&lt;/SPAN&gt; &lt;SPAN class=""&gt;"time_sleep"&lt;/SPAN&gt; &lt;SPAN class=""&gt;"rbac_propagation"&lt;/SPAN&gt; {
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;count&lt;/SPAN&gt;           &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;manage_access_connector_storage_rbac&lt;/SPAN&gt; &lt;SPAN class=""&gt;?&lt;/SPAN&gt; &lt;SPAN class=""&gt;1&lt;/SPAN&gt; &lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;0&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;create_duration&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;120s&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;

  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;triggers&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;{
    role_assignment_id &lt;SPAN class=""&gt;=&lt;/SPAN&gt; azurerm_role_assignment.access_connector_storage_blob_data_contributor[&lt;SPAN class=""&gt;0&lt;/SPAN&gt;].id
  }
}&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;The bootstrap failed with 403 AuthorizationFailed on roleAssignments/write.&lt;/STRONG&gt; The deployment service principal needs User Access Administrator on each environment's resource group to give the access connector its storage role. Prod was missed once. The setup script now assigns it for every environment, and the preflight script checks it.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The metastore stack could not create a metastore.&lt;/STRONG&gt; Databricks creates one automatically with the first workspace in a region, and an account can have only one per region. The fix is to adopt it: the metastore stack generates a Terraform import block from metastore.import_id, so the first plan reads "1 to import, 0 to add" and Terraform manages it from then on.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OIDC sign-in stopped matching after a repository rename.&lt;/STRONG&gt; The federated credential subject must match the token exactly. This repository's tokens use the ID-based form repo:&amp;lt;owner&amp;gt;@&amp;lt;owner-id&amp;gt;/&amp;lt;repo&amp;gt;@&amp;lt;repo-id&amp;gt;:environment:&amp;lt;env&amp;gt;, and credentials created with the old repository name stopped matching.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Destroy order on an isolated catalog.&lt;/STRONG&gt; Grants on an ISOLATED catalog must be removed while the workspace is still bound, otherwise the API reports the catalog is not accessible in the current workspace. The grants resource depends_on the workspace binding, so Terraform destroys them first.&lt;/P&gt;&lt;DIV class=""&gt;&lt;H2&gt;Checklist&lt;/H2&gt;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;Register the resource providers yourself if the provider block sets resource_provider_registrations = "none".&lt;/LI&gt;&lt;LI&gt;Give the deployment identity User Access Administrator on every environment's resource group, prod included.&lt;/LI&gt;&lt;LI&gt;Check the region for an automatic metastore before you plan the metastore stack; import it if it exists.&lt;/LI&gt;&lt;LI&gt;Give each environment a non-overlapping /24 so it can peer with a hub network later.&lt;/LI&gt;&lt;LI&gt;Size the host and container subnets for your peak node count.&lt;/LI&gt;&lt;LI&gt;Encode non-negotiable network settings as Terraform preconditions, not as review comments.&lt;/LI&gt;&lt;LI&gt;Wait for RBAC propagation before creating a storage credential and external location.&lt;/LI&gt;&lt;LI&gt;Bind each environment's catalog to its own workspace and grant the deployment identity on it, so Terraform keeps the access it needs.&lt;/LI&gt;&lt;LI&gt;Open the state storage firewall to the runner only for the run, and remove it even on failure (if: always()).&lt;/LI&gt;&lt;LI&gt;Run a validation notebook from a real classic cluster after every bootstrap. A finished terraform apply is not proof the platform behaves as designed.&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&lt;H2&gt;Repository and walkthrough&lt;/H2&gt;&lt;/DIV&gt;&lt;P&gt;The code is public under Apache 2.0: &lt;A href="https://github.com/DBxArchitectLab/dbx-platform-infra-azure" target="_blank" rel="noopener"&gt;https://github.com/DBxArchitectLab/dbx-platform-infra-azure&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Full walkthrough and live deployment: &lt;A href="https://youtu.be/V6PgPzyrByc" target="_blank" rel="nofollow noopener"&gt;https://youtu.be/V6PgPzyrByc&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2026 02:16:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/provisioning-azure-databricks-workspace-end-to-end-with/m-p/178266#M2006</guid>
      <dc:creator>HongC</dc:creator>
      <dc:date>2026-12-01T02:16:46Z</dc:date>
    </item>
    <item>
      <title>We open-sourced Neco DQ, a data quality framework for Databricks: looking for your feedback</title>
      <link>https://community.databricks.com/t5/community-articles/we-open-sourced-neco-dq-a-data-quality-framework-for-databricks/m-p/177749#M2003</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;We're the &lt;EM&gt;QA Nexus&lt;/EM&gt; team at &lt;STRONG&gt;Woven by Toyota&lt;/STRONG&gt;. We've been running pipelines on Databricks for a while and have experimented with various tools for testing and measuring data quality. While some of these tools were very good, none fully met our needs, so we extended and integrated some of them into an internal framework to validate data quality across our bronze/silver/gold layers. We've recently open-sourced it as Neco DQ (Apache-2.0).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;We're posting at an early public stage on purpose: we'd rather shape it with this community's input than keep refining it in isolation. Below is an honest overview of what it does today, and if parts of it miss the mark for how you work, that's exactly what we're hoping to hear.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;What it does:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;35+ built-in checks across the medallion layers and schema contracts.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Beyond the familiar bronze ones like &lt;/SPAN&gt;&lt;SPAN&gt;`&lt;EM&gt;freshness&lt;/EM&gt;`&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN&gt;`&lt;EM&gt;schema_drift&lt;/EM&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;, the suites go deep where validation usually turns into custom code. On silver (transformations): &lt;/SPAN&gt;&lt;SPAN&gt;`&lt;EM&gt;idempotency&lt;/EM&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;`&lt;EM&gt;referential_integrity&lt;/EM&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;`&lt;EM&gt;temporal_consistency&lt;/EM&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;, and &lt;/SPAN&gt;&lt;SPAN&gt;`&lt;EM&gt;cross_table_equality&lt;/EM&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;. On gold (aggregates): &lt;/SPAN&gt;&lt;SPAN&gt;`&lt;EM&gt;reconciliation_expr&lt;/EM&gt;`&lt;/SPAN&gt;&lt;SPAN&gt; (source-to-target reconciliation), &lt;/SPAN&gt;&lt;SPAN&gt;`&lt;EM&gt;trend&lt;/EM&gt;`&lt;/SPAN&gt;&lt;SPAN&gt; (cross-run regression), &lt;/SPAN&gt;&lt;SPAN&gt;`&lt;EM&gt;completeness&lt;/EM&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;, and &lt;/SPAN&gt;&lt;SPAN&gt;`&lt;EM&gt;cross_gold&lt;/EM&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;. There's also a general-purpose &lt;/SPAN&gt;&lt;SPAN&gt;`compare_metric`&lt;/SPAN&gt;&lt;SPAN&gt; for anything the named ones don't cover.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;Pure YAML config.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;A single file for small setups, or a modular directory that splits policy, suites, and per-table groups as the config grows. No Python required.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;Pipeline gating.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;A policy engine turns results into an exit code. Every check has a severity, a blocking flag, and an enabled flag, so you decide what stops a pipeline and what only warns. There's also a global failure-rate threshold.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;Multi-environment profiles.&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Define dev, staging, and prod with their own catalogs, variables, and policy overrides, referenced through Jinja2. The same config runs everywhere: a freshness check can tolerate 48h in dev and enforce 2h in prod.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;Auto-profiling.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Point it at a table and it profiles the data, flags things like high-null columns or possible PII, and suggests a starting config.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;Built-in debug.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;When a check fails, it generates an investigation query you can run directly in Databricks to inspect the offending rows, with failure statistics and an execution trace.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;Tag-based filtering.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Tag any check and filter at runtime (&lt;/SPAN&gt;&lt;SPAN&gt;`tags=["critical"]`&lt;/SPAN&gt;&lt;SPAN&gt;), so one config drives a full nightly run, a quick smoke test, and an on-demand critical-only run, with minimal code repetition.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;Custom suites.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Write your own checks in plain PySpark and plug them in as a first-class suite, through the same policy engine, persistence, and alerting.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;Result history and alerts.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Results persist to Delta for tracking over time, with a Slack run summary.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;Dashboard generation.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;One call builds a Databricks AI/BI (Lakeview) dashboard on the history table, with KPIs, coverage, a dimension matrix, regression and trend widgets.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;Great Expectations bridge.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;When native checks aren't enough, GE results flow through the same policy engine, Delta persistence, and Slack alerting, so you get one unified report.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;Data privacy by design.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Execution is 100% on your platform, on your clusters. Nothing leaves your environment.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;The same entry point runs in a notebook, a scheduled Job, or a DLT pipeline. Everything runs on Spark, so checks scale with the cluster instead of pulling data to the driver.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;How it relates to the native tooling (and where we might be wrong):&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;We don't see Neco DQ as a replacement for DLT (Lakeflow) expectations or Unity Catalog constraints. Those are a great fit for row-level rules inside a single pipeline or table, and we'd keep using them. Neco DQ sits a level up: it runs inside or outside DLT, defines checks in config instead of code, and tries to add the things we found ourselves wanting around the native path, such as cross-run metric comparison and trend detection, one policy that decides blocking vs warning across every suite, a history table with a dashboard and Slack alerts, auto-profiling that suggests checks, and a Great Expectations bridge under the same report.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;For us the maintenance story also mattered: native checks live as code spread across each pipeline, so we kept the rules as declarative config in one place, with tags and profiles so the same config serves nightly runs, smoke tests, dev, and prod. That's our read of the gap, and if the native tools already cover this better than we think, please tell us. We'd genuinely rather learn that now.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;What we'd love your input on:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; How are you handling data quality on Databricks today, and where does it actually hurt?&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; Does a config-driven check model fit how you validate data, or does it get in the way?&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; What checks or metrics are you relying on that we're probably missing?&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; Anything in the setup or docs that was unclear.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Repo: &lt;A href="https://github.com/woven-by-toyota/neco-dq-framework" target="_blank" rel="noopener"&gt;https://github.com/woven-by-toyota/neco-dq-framework&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Docs:&amp;nbsp;&lt;A href="https://woven-by-toyota.github.io/neco-dq-framework/getting-started/" target="_blank" rel="noopener"&gt;https://woven-by-toyota.github.io/neco-dq-framework/getting-started/&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks for taking a look. Critical feedback is very welcome, that's exactly what we're here for.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Nov 2026 00:16:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/we-open-sourced-neco-dq-a-data-quality-framework-for-databricks/m-p/177749#M2003</guid>
      <dc:creator>Claudio_DQ</dc:creator>
      <dc:date>2026-11-27T00:16:25Z</dc:date>
    </item>
    <item>
      <title>New storage history table: find what is actually growing</title>
      <link>https://community.databricks.com/t5/community-articles/new-storage-history-table-find-what-is-actually-growing/m-p/177999#M2001</link>
      <description>&lt;P&gt;A useful addition in the 25 November release: system.storage.table_metrics_history is now GA.&lt;/P&gt;&lt;P&gt;It captures daily storage metrics for Unity Catalog managed tables, including active data, time-travel data and vacuumable data.&lt;/P&gt;&lt;P&gt;I’d use this to answer three questions before a storage cleanup:&lt;BR /&gt;• Which tables are growing fastest?&lt;BR /&gt;• How much is retained for time travel?&lt;BR /&gt;• Where is storage already eligible for VACUUM?&lt;/P&gt;&lt;P&gt;One detail worth checking: storage metrics need serverless compute enabled. Also, total_bytes is still a separate Private Preview field, so a NULL there does not mean the table is empty.&lt;/P&gt;&lt;P&gt;Docs: &lt;A href="https://docs.databricks.com/aws/en/admin/system-tables/table-metrics-history" target="_blank"&gt;https://docs.databricks.com/aws/en/admin/system-tables/table-metrics-history&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Would you add this to your platform cost dashboard?&lt;/P&gt;</description>
      <pubDate>Sun, 29 Nov 2026 07:54:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/new-storage-history-table-find-what-is-actually-growing/m-p/177999#M2001</guid>
      <dc:creator>karanvichare</dc:creator>
      <dc:date>2026-11-29T07:54:44Z</dc:date>
    </item>
    <item>
      <title>Sending database changes to Databricks with Zerobus Ingest</title>
      <link>https://community.databricks.com/t5/community-articles/sending-database-changes-to-databricks-with-zerobus-ingest/m-p/178110#M2000</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MouR_0-1795984136653.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33844i5818FDFA882122B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="MouR_0-1795984136653.png" alt="MouR_0-1795984136653.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By Mou Rakshit&lt;/P&gt;&lt;P&gt;Zerobus Ingest lets an application send records directly to a Delta table in Databricks. When the records come from an operational database, Debezium can capture inserts, updates and deletes and send those changes to Zerobus. This is change data capture (CDC).&lt;/P&gt;&lt;P&gt;I’ll use PostgreSQL as the source in this example. You can also use MySQL, SQL Server or Oracle with the appropriate Debezium connector and change capture enabled on the source. Each database keeps its change history differently, which matters when delivery stops and Debezium needs to pick up where it left off.&lt;/P&gt;&lt;P&gt;Once Debezium captures a change, where should it go? If Databricks is the only destination, Debezium Server can run near the database and send events directly to Zerobus. If another workload needs the same changes, Debezium can publish them to a Kafka topic so each workload can read them on its own schedule. I’d choose between those routes by asking who needs the events while the Databricks job is paused and how quickly reporting needs to catch up when it restarts.&lt;/P&gt;&lt;H2&gt;Following one customer record&lt;/H2&gt;&lt;P&gt;Suppose a customer service application creates a record for customer 42, updates the customer’s support tier from Standard to Priority, then deletes the record. In this example, Debezium starts with a snapshot of the customer table and then follows changes in the PostgreSQL transaction log. It captures all three operations. With the table’s replica identity set to FULL, the delete event includes the previous row, so it still tells us the customer’s tier was Priority.&lt;/P&gt;&lt;P&gt;In Databricks, those events land in a Delta table that keeps the change history. A downstream pipeline uses AUTO CDC to apply them in source order to a second table that shows the current customer list. Someone checking which customers have Priority support today should find no entry for customer 42. Someone investigating which tier the customer had when the record was deleted can still find the answer in the history.&lt;/P&gt;&lt;P&gt;That gives the reporting team a place to start if customer 42 still shows up on a dashboard. First, look for the delete in the history table. If it’s there, follow it through the current customer table to the dashboard. If it’s missing, check how far Debezium has read and whether Zerobus acknowledged the event. Acknowledgment means Zerobus has stored the event durably. A query against the Delta table may see it a little later.&lt;/P&gt;&lt;H2&gt;Where the change waits&lt;/H2&gt;&lt;P&gt;Suppose Zerobus is unavailable when the application deletes customer 42. In the direct design, the source must retain enough history for Debezium to resume from its last saved position. What you check depends on the database. With MySQL, check when the binary log containing that position will expire. With SQL Server, check whether its CDC cleanup job could remove the needed rows from the change tables before Debezium reads them.&lt;/P&gt;&lt;P&gt;PostgreSQL records transactions in its write-ahead log (WAL). A replication slot keeps track of how far the capture process has confirmed reading and the oldest log position it might still need. The application can keep accepting transactions during the outage, but as those transactions create new WAL, the older files retained for the slot can put pressure on the same database the application depends on.&lt;/P&gt;&lt;P&gt;If PostgreSQL discards history that Debezium still needs, a new snapshot can restore the current list of customers. Consider a customer who opened and closed an account during the missing interval. The snapshot would correctly show no account, yet it could never tell an auditor the account had existed.&lt;/P&gt;&lt;P&gt;With Kafka, the Databricks ingestion job and another workload can read the same changes independently. If the Databricks job pauses, the other workload can still read the delete as soon as Debezium publishes it. When the job resumes, it can read that same event, provided Kafka still retains it. If Debezium also stops publishing to Kafka, recovery once again depends on the history the source has retained.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MouR_1-1795984136745.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33846iCD637FCD6FFA528D/image-size/large?v=v2&amp;amp;px=999" role="button" title="MouR_1-1795984136745.png" alt="MouR_1-1795984136745.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After a pause, Debezium can retry while PostgreSQL retains the required log. A Databricks job can resume from Kafka while the topic retains the event.&lt;/P&gt;&lt;H2&gt;Measuring what PostgreSQL has to keep&lt;/H2&gt;&lt;P&gt;How much room would PostgreSQL need during that outage? Counting the changes waiting for Databricks seems like a reasonable starting point. To test that assumption, a local experiment pairs PostgreSQL 16.2 with a small capture program that writes to SQLite. Using SQLite as the receiver lets the experiment stop the program after it saves a change but before it confirms the save to PostgreSQL. The figures below come from that PostgreSQL and SQLite experiment.&lt;/P&gt;&lt;P&gt;The program was set up to copy two account tables. Two updates and a delete in each table gave it six changes to deliver. While the program’s confirmed position stayed fixed, the lab inserted 20,000 rows into a third table outside the publication, the set of tables selected for copying. None of those inserts added to the six changes waiting for the receiver. PostgreSQL still recorded those inserts in the same log Debezium would read.&lt;/P&gt;&lt;P&gt;By the end of those inserts, the gap between the latest log position and the confirmed position had grown by about &lt;STRONG&gt;1.9 MB&lt;/STRONG&gt;. That number measures a distance in the log. How much space is actually occupied on disk also depends on which log files PostgreSQL can release. For capacity planning, this is why I’d measure WAL generation across the whole PostgreSQL instance at a busy time. Watching just the account tables would have hidden nearly all the activity in this run.&lt;/P&gt;&lt;H2&gt;Why a deleted account came back&lt;/H2&gt;&lt;P&gt;Once the capture program had saved those six changes to SQLite, the lab stopped it before it could tell PostgreSQL the save had succeeded. After a database restart, the program read the same six again. A table that appended every delivery now held twelve rows. Both passes ended with the accounts deleted, so checking the final balances alone would have missed the duplicate deliveries.&lt;/P&gt;&lt;P&gt;The duplicate mattered when it arrived late. The lab took one old balance update and sent it again after the delete, on its own this time. Applying it to the reporting copy brought the account back with a balance of 25. A second version of the program recorded the event’s identity in the same transaction that changed the account. It recognized the old update and left the account deleted. The lab deliberately resent that update to test the receiving logic. PostgreSQL had emitted the original changes in order.&lt;/P&gt;&lt;P&gt;The production connector has a similar interval in which a delivery can repeat. Debezium waits for Zerobus to acknowledge the records for every target table in a batch before saving its position in the source. A restart between those two steps can resend a change. In envelope mode, the connector preserves the change record and includes an idempotency_key that a pipeline can use to recognize a replay. That key works for the customer table because each customer has a primary key. For a table without a primary key, snapshot rows can share an event identity, so using the event key alone could discard distinct rows. Two different updates to the same customer still need to be applied in order. That is what the sequencing field in AUTO CDC is for.&lt;/P&gt;&lt;H2&gt;Reading the PostgreSQL slot during the drill&lt;/H2&gt;&lt;P&gt;To see how much log history the database is carrying, run this query on the PostgreSQL primary, the server that accepts application writes. Substitute the name of your replication slot for lab_slot and take readings before, during and after the interruption.&lt;/P&gt;&lt;PRE&gt;WITH tip AS (SELECT pg_current_wal_lsn() AS wal_tip)
SELECT slot_name, wal_tip, restart_lsn, confirmed_flush_lsn,
       pg_wal_lsn_diff(wal_tip, restart_lsn) AS restart_gap_bytes,
       pg_wal_lsn_diff(wal_tip, confirmed_flush_lsn) AS confirm_gap_bytes,
       wal_status, safe_wal_size
FROM pg_replication_slots CROSS JOIN tip
WHERE slot_type = 'logical' AND slot_name = 'lab_slot';&lt;/PRE&gt;&lt;P&gt;Both gaps are in bytes. confirm_gap_bytes measures how far the end of the log is ahead of the position the capture process has confirmed. restart_gap_bytes measures back to the oldest position the slot may still need. In the experiment, the first gap had already fallen to zero while the second was still about 1.9 MB. The receiver had caught up, but PostgreSQL’s oldest required position had yet to move. Check actual free disk space alongside safe_wal_size, the slot’s remaining allowance. A null allowance can mean unlimited retention or a slot that has already lost the required history. The slot status and retention setting tell you which applies.&lt;/P&gt;&lt;H2&gt;Can reporting recover by its deadline?&lt;/H2&gt;&lt;P&gt;Take a four-hour interruption as a design target. Suppose the PostgreSQL instance normally generates 6 GiB of WAL an hour during the busy part of the day. If the oldest position the slot needs stays fixed for those four hours, another &lt;STRONG&gt;24 GiB&lt;/STRONG&gt; of WAL accumulates between that position and the end of the log. The database owner can compare that additional amount with the remaining usable disk space and the slot’s remaining allowance, if one is configured. The application still needs room to operate during recovery.&lt;/P&gt;&lt;P&gt;For the reporting team, the same four hours look different. At 2,000 captured changes per second, 28.8 million changes are waiting when delivery resumes. Suppose the pipeline can process 3,000 per second after restart. New transactions are still arriving at 2,000 per second, leaving 1,000 per second to clear the backlog. &lt;STRONG&gt;The four-hour interruption takes another eight hours to clear.&lt;/STRONG&gt; These rates illustrate the calculation. In a recovery drill, use the sustained rate measured while the application is still writing.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MouR_2-1795984136525.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33845i1B3958AFA71CD9E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="MouR_2-1795984136525.png" alt="MouR_2-1795984136525.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Calculated backlog during a four-hour interruption. New changes arrive at 2,000 per second throughout.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;If the business needs reporting current by 6 a.m. after a midnight interruption, delivery resumes at 4 a.m. with only two hours left. Clearing 28.8 million waiting changes in two hours requires 4,000 per second on top of the 2,000 still arriving. I’d test whether the pipeline can sustain &lt;STRONG&gt;6,000 changes per second&lt;/STRONG&gt; from the moment delivery resumes. Adding Kafka alone won’t make the Databricks consumer process changes any faster.&lt;/P&gt;&lt;P&gt;For a reporting-only pipeline, I’d choose direct delivery through Zerobus if the source can retain every change through the outage and reporting can catch up by its deadline. If another workload needs to act on a deletion at 2 a.m., it can’t wait for the Databricks job to restart at 4 a.m. I’d keep Kafka so that workload can read the change when it needs it.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Nov 2026 20:33:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/sending-database-changes-to-databricks-with-zerobus-ingest/m-p/178110#M2000</guid>
      <dc:creator>MouR</dc:creator>
      <dc:date>2026-11-29T20:33:08Z</dc:date>
    </item>
    <item>
      <title>Unity Catalog impact analysis: check before changing a column</title>
      <link>https://community.databricks.com/t5/community-articles/unity-catalog-impact-analysis-check-before-changing-a-column/m-p/178000#M1999</link>
      <description>&lt;P&gt;A useful update: Unity Catalog now has impact analysis in Beta.&lt;/P&gt;&lt;P&gt;Before renaming a column or changing its type, open the table in Catalog Explorer → Lineage → Conduct impact analysis. You can check downstream assets, their owners and impact levels. Genie Code can also summarize the results and export a CSV of impacted assets and owners.&lt;/P&gt;&lt;P&gt;The detail I’d watch: results are approximate, and new dependencies can take a few days to appear. An empty list is not proof that a change is safe.&lt;/P&gt;&lt;P&gt;I’d use this as an input to the release review, alongside tests and a check with downstream owners. An account admin needs to enable the preview first.&lt;/P&gt;&lt;P&gt;Docs: &lt;A href="https://docs.databricks.com/aws/en/data-governance/unity-catalog/impact-analysis" target="_blank"&gt;https://docs.databricks.com/aws/en/data-governance/unity-catalog/impact-analysis&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Nov 2026 07:59:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/unity-catalog-impact-analysis-check-before-changing-a-column/m-p/178000#M1999</guid>
      <dc:creator>karanvichare</dc:creator>
      <dc:date>2026-11-29T07:59:39Z</dc:date>
    </item>
    <item>
      <title>Lakebridge: More Than a Migration Tool</title>
      <link>https://community.databricks.com/t5/community-articles/lakebridge-more-than-a-migration-tool/m-p/178048#M1997</link>
      <description>&lt;DIV class=""&gt;&lt;H2 id="user-content-the-real-problem-it-was-built-to-solve"&gt;The Real Problem It Was Built to Solve&lt;/H2&gt;&lt;P&gt;When Databricks introduced Lakebridge, many people saw it as another migration utility, a way to move workloads from traditional data warehouses into the Databricks ecosystem. That description is technically correct, but it misses the larger story.&lt;/P&gt;&lt;P&gt;Lakebridge was not created simply because companies needed to move data. Data migration has never been the hardest part of modernization. The real challenge has always been understanding and migrating the business logic that organizations have accumulated over years, sometimes decades, of running their data platforms.&lt;/P&gt;&lt;P&gt;To understand why Lakebridge matters, we first need to understand that problem.&lt;/P&gt;&lt;H2 id="user-content-why-migrations-are-harder-than-they-appear"&gt;Why Migrations Are Harder Than They Appear&lt;/H2&gt;&lt;P&gt;Most organizations do not build their data ecosystems overnight. A company may start with Oracle for transactional systems, adopt Teradata or SQL Server for analytics as reporting grows, and later add Snowflake or Redshift as part of a cloud initiative. Eventually, data science teams need machine learning capabilities, and the organization starts looking at platforms such as Databricks.&lt;/P&gt;&lt;P&gt;What began as a few databases gradually turns into:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Thousands of tables and hundreds of views&lt;/LI&gt;&lt;LI&gt;Complex ETL pipelines and stored procedures&lt;/LI&gt;&lt;LI&gt;Reporting systems and data quality checks&lt;/LI&gt;&lt;LI&gt;Scheduling frameworks, security policies, and governance processes&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;By the time a migration project begins, the organization is no longer managing a database. It is managing years of business knowledge embedded in technology, scattered across SQL scripts, transformations, reports, and undocumented processes.&lt;/P&gt;&lt;P&gt;Consider a simple reporting dashboard. It depends on a view. That view depends on several transformation tables. Those tables are populated by ETL pipelines. And those pipelines execute business rules written years ago by engineers who may no longer be with the company.&lt;/P&gt;&lt;P&gt;A "simple" migration quickly becomes an investigation. Before anything moves, teams must answer:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What assets exist, and which are actually used?&lt;/LI&gt;&lt;LI&gt;Which pipelines are business-critical?&lt;/LI&gt;&lt;LI&gt;What dependencies exist between systems?&lt;/LI&gt;&lt;LI&gt;Which workloads can be converted automatically, and which need redesign?&lt;/LI&gt;&lt;LI&gt;How will we prove the new platform produces the same results?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Many migration projects spend more time understanding the existing environment than migrating it. This is the problem Lakebridge was designed to address.&lt;/P&gt;&lt;H2 id="user-content-what-lakebridge-actually-is"&gt;What Lakebridge Actually Is&lt;/H2&gt;&lt;P&gt;Lakebridge is a free, open-source project from Databricks Labs. It builds on the earlier &lt;EM&gt;Remorph&lt;/EM&gt; project and on technology from BladeBridge, which Databricks acquired in early 2025, and it was launched at Data + AI Summit 2025.&lt;/P&gt;&lt;P&gt;It covers the three phases every serious migration goes through:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Phase Component What it does &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Assess&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;Analyzer&lt;/TD&gt;&lt;TD&gt;Scans legacy SQL and ETL code to produce an inventory and complexity profile of the workloads&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Convert&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;Converter (Transpiler)&lt;/TD&gt;&lt;TD&gt;Translates SQL and ETL logic from sources such as Teradata, Oracle, Snowflake, SQL Server/Synapse, and Informatica into Databricks SQL and PySpark&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Validate&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;Reconciler&lt;/TD&gt;&lt;TD&gt;Compares source and target data (schema, row counts, column values, and aggregates) to confirm the migrated workload produces the same results&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Most discussions focus on the middle step. The real value comes from all three working together.&lt;/P&gt;&lt;H2 id="user-content-analyze-understanding-comes-first"&gt;Analyze: Understanding Comes First&lt;/H2&gt;&lt;P&gt;One of the biggest misconceptions about Lakebridge is that its main purpose is code conversion. Conversion matters, but its greatest value starts earlier: helping organizations understand their current landscape before migration begins.&lt;/P&gt;&lt;P&gt;Instead of manually reviewing thousands of database objects, engineers can use the Analyzer to profile:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SQL scripts and stored procedures&lt;/LI&gt;&lt;LI&gt;ETL jobs and transformation logic&lt;/LI&gt;&lt;LI&gt;Object counts and code complexity&lt;/LI&gt;&lt;LI&gt;Workloads that are likely to convert cleanly versus those that need manual attention&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This gives teams a realistic picture of scope, effort, and risk before they commit to timelines. For many organizations, the assessment alone is valuable: it can surface technical debt, hidden complexity, and redundant workloads that went unnoticed for years.&lt;/P&gt;&lt;H2 id="user-content-convert-why-syntax-alone-is-not-enough"&gt;Convert: Why Syntax Alone Is Not Enough&lt;/H2&gt;&lt;P&gt;A common assumption is that migration is mainly syntax conversion: replace one SQL dialect with another and you are done.&lt;/P&gt;&lt;P&gt;Much of the mechanical work really is about syntax, and that is where automation helps most. For example, a SQL Server query like this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECT&lt;/SPAN&gt;&lt;SPAN&gt; TOP&lt;/SPAN&gt;&lt;SPAN&gt; 10&lt;/SPAN&gt;&lt;SPAN&gt; customer_id,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ISNULL&lt;/SPAN&gt;&lt;SPAN&gt;(total_amount, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;AS&lt;/SPAN&gt;&lt;SPAN&gt; total_amount&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FROM&lt;/SPAN&gt;&lt;SPAN&gt; sales.orders&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WHERE&lt;/SPAN&gt;&lt;SPAN&gt; order_date &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;DATEADD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;day&lt;/SPAN&gt;&lt;SPAN&gt;, -&lt;/SPAN&gt;&lt;SPAN&gt;30&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;GETDATE&lt;/SPAN&gt;&lt;SPAN&gt;())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ORDER BY&lt;/SPAN&gt;&lt;SPAN&gt; total_amount &lt;/SPAN&gt;&lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;becomes something like this in Databricks SQL:&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SELECT&lt;/SPAN&gt;&lt;SPAN&gt; customer_id,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;COALESCE&lt;/SPAN&gt;&lt;SPAN&gt;(total_amount, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;AS&lt;/SPAN&gt;&lt;SPAN&gt; total_amount&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FROM&lt;/SPAN&gt;&lt;SPAN&gt; sales.orders&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;WHERE&lt;/SPAN&gt;&lt;SPAN&gt; order_date &amp;gt;= date_add(current_date&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;SPAN&gt;, -&lt;/SPAN&gt;&lt;SPAN&gt;30&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ORDER BY&lt;/SPAN&gt;&lt;SPAN&gt; total_amount &lt;/SPAN&gt;&lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;LIMIT&lt;/SPAN&gt;&lt;SPAN&gt; 10&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Multiply that by thousands of scripts and stored procedures, and automated conversion saves a large amount of manual effort.&lt;/P&gt;&lt;P&gt;But reality is more complicated. Two SQL statements can look equivalent and still behave differently under specific conditions. Oracle, for example, treats an empty string as NULL, while most other engines do not. Code that converts cleanly can still produce different results when it meets real data.&lt;/P&gt;&lt;P&gt;Business rules, exception handling, data quality logic, and platform-specific optimizations all add complexity. Engineers still need to understand why workloads were built, which assumptions they rely on, and where manual redesign makes more sense than direct translation.&lt;/P&gt;&lt;P&gt;Organizations rarely fail migrations because of syntax differences. They fail because hidden complexity stays undiscovered until it is too late.&lt;/P&gt;&lt;H2 id="user-content-reconcile-proving-equivalence"&gt;Reconcile: Proving Equivalence&lt;/H2&gt;&lt;P&gt;This is why Lakebridge does not stop at conversion.&lt;/P&gt;&lt;P&gt;The Reconciler compares data between the source system and Databricks at several levels:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Schema&lt;/STRONG&gt;: do column names and data types line up?&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Row&lt;/STRONG&gt;: do the same records exist on both sides?&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Column&lt;/STRONG&gt;: do individual values match?&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Aggregate&lt;/STRONG&gt;: do totals, counts, and other summary metrics agree?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It turns "we think it's equivalent" into "we've shown it's equivalent." For business stakeholders who need to trust the numbers on the new platform, that evidence often matters more than the migration itself.&lt;/P&gt;&lt;H2 id="user-content-getting-started"&gt;Getting Started&lt;/H2&gt;&lt;P&gt;Lakebridge installs as a Databricks Labs extension to the Databricks CLI. A typical flow looks like this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Install Lakebridge&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;databricks&lt;/SPAN&gt;&lt;SPAN&gt; labs&lt;/SPAN&gt;&lt;SPAN&gt; install&lt;/SPAN&gt;&lt;SPAN&gt; lakebridge&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# 1. Assess legacy code&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;databricks&lt;/SPAN&gt;&lt;SPAN&gt; labs&lt;/SPAN&gt;&lt;SPAN&gt; lakebridge&lt;/SPAN&gt;&lt;SPAN&gt; analyze&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# 2. Convert SQL to Databricks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;databricks&lt;/SPAN&gt;&lt;SPAN&gt; labs&lt;/SPAN&gt;&lt;SPAN&gt; lakebridge&lt;/SPAN&gt;&lt;SPAN&gt; install-transpile&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;databricks&lt;/SPAN&gt;&lt;SPAN&gt; labs&lt;/SPAN&gt;&lt;SPAN&gt; lakebridge&lt;/SPAN&gt;&lt;SPAN&gt; transpile&lt;/SPAN&gt;&lt;SPAN&gt; --source-dialect&lt;/SPAN&gt;&lt;SPAN&gt; snowflake&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;--input-source&lt;/SPAN&gt;&lt;SPAN&gt; ./legacy_sql&lt;/SPAN&gt;&lt;SPAN&gt; --output-folder&lt;/SPAN&gt;&lt;SPAN&gt; ./converted&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# 3. Validate the migrated data&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;databricks&lt;/SPAN&gt;&lt;SPAN&gt; labs&lt;/SPAN&gt;&lt;SPAN&gt; lakebridge&lt;/SPAN&gt;&lt;SPAN&gt; configure-reconcile&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;databricks&lt;/SPAN&gt;&lt;SPAN&gt; labs&lt;/SPAN&gt;&lt;SPAN&gt; lakebridge&lt;/SPAN&gt;&lt;SPAN&gt; reconcile&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;H2 id="user-content-the-strategic-importance-of-lakebridge"&gt;The Strategic Importance of Lakebridge&lt;/H2&gt;&lt;P&gt;From a technical perspective, Lakebridge is a migration accelerator. From a business perspective, it serves a larger purpose.&lt;/P&gt;&lt;P&gt;The Lakehouse vision of storing, processing, governing, and applying AI to data on one unified platform resonates with most organizations. But interest does not always become adoption. Even the most capable platform is hard to justify if migration looks too expensive, too risky, or too uncertain.&lt;/P&gt;&lt;P&gt;Lakebridge lowers those barriers. By giving teams visibility into what they have, automation for the repetitive work, and evidence that the results are correct, it turns migration from a blind leap into a structured, measurable initiative.&lt;/P&gt;&lt;P&gt;That shift in confidence can be just as valuable as the migration itself.&lt;/P&gt;&lt;H2 id="user-content-final-thoughts"&gt;Final Thoughts&lt;/H2&gt;&lt;P&gt;The significance of Lakebridge goes beyond workload conversion. Its real contribution is helping organizations understand what they have before deciding what they want to become.&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;Modern enterprises hold years of business logic across databases, pipelines, reports, and analytical systems. Migrating that knowledge is far harder than migrating data. Lakebridge exists because successful modernization needs clarity before execution, and proof after it.&lt;/P&gt;&lt;P&gt;In the end, Lakebridge is not really about moving data from one platform to another. It is about helping organizations move forward without losing the understanding they have built along the way.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 29 Nov 2026 14:52:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/lakebridge-more-than-a-migration-tool/m-p/178048#M1997</guid>
      <dc:creator>rajkumar8k</dc:creator>
      <dc:date>2026-11-29T14:52:10Z</dc:date>
    </item>
    <item>
      <title>Building a Governed AI Data Quality Agent with Databricks DQX: A Hands-on Insurance Industry</title>
      <link>https://community.databricks.com/t5/community-articles/building-a-governed-ai-data-quality-agent-with-databricks-dqx-a/m-p/177970#M1994</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Databricks AI Engineering Labs&amp;nbsp; Lab 01&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;1. Introduction&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;One of the challenges I have encountered in enterprise data engineering is translating business data quality requirements into reliable, executable validation rules.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;While large language models can accelerate this process, allowing an AI model to generate and execute arbitrary SQL introduces additional risks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I wanted to explore a different architectural pattern:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;AI understands the business requirement.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Structured outputs define the proposed validation plan.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;A deterministic rule registry controls permitted operations.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;A human reviews and approves the plan.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Databricks DQX performs the actual data quality validation.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;MLflow provides AI observability.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;To evaluate this approach, I developed an open-source insurance industry reference implementation using 185,000 synthetic records, ten data quality rules, two AI providers and a human-in-the-loop approval workflow.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This article explains the implementation, reproduction steps, benchmark results and engineering lessons.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;2. What you will build&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;By completing this lab, you will learn how to:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Generate realistic relational synthetic insurance data.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Implement native Databricks DQX validation.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Detect completeness, uniqueness, validity and referential integrity defects.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Separate valid and quarantined records.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Convert natural language requirements into structured quality plans.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Implement controlled rule selection and human approval.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Evaluate AI planning accuracy.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Monitor AI token consumption and execution latency.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;The complete implementation is available at:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/amising6/databricks-ai-engineering-labs" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;https://github.com/amising6/databricks-ai-engineering-labs&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;3. Solution architecture&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;The architecture separates AI planning from deterministic execution:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Business Requirement&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;↓&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AI Planning — Databricks or Ollama&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;↓&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pydantic Structured Output&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;↓&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Approved Data Quality Rule Registry&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;↓&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deterministic Rule Compiler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;↓&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Human Approval and Plan Fingerprint&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;↓&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Apache Spark + Databricks DQX&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;↓&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Valid Records + Quarantine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;↓&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Quality Analytics and MLflow Observability&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The fundamental design decision is that the AI model never receives unrestricted execution authority.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It selects approved rule identifiers rather than generating arbitrary executable code.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;4. Technology stack&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;Component Technology&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Data processing&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Apache Spark&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Data quality&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Databricks Labs DQX&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Governed storage&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Unity Catalog&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Hosted AI&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Databricks Model Serving&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Local AI&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Ollama&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Structured outputs&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Pydantic&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Observability&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;MLflow&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Interactive application&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Streamlit&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Testing&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Pytest&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Plan integrity&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;SHA-256&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;H2&gt;&lt;SPAN&gt;5. Prerequisites&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;For native Databricks execution:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;A Databricks workspace with compatible interactive compute.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Access to Unity Catalog.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Permission to create or use a schema and writable volume.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Python environment with compatible DQX dependencies.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Access to a supported model-serving endpoint if reproducing live AI planning.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;The native DQX notebooks were tested using Databricks Free Edition serverless compute.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The public interactive demonstration does not require a Databricks account.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;6. Download the engineering lab&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;Clone the repository:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;git clone https://github.com/amising6/databricks-ai-engineering-labs.git&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Navigate to Lab 01:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;cd databricks-ai-engineering-labs/01-structured-outputs&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The implementation contains:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Synthetic insurance data generator.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Approved quality rule registry.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Native DQX execution engine.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Structured AI planning.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Human approval workflow.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Lightweight demonstration engine.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Streamlit application.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Benchmark evidence.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Automated tests.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Executable Databricks notebooks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H2&gt;&lt;SPAN&gt;7. Generate a realistic synthetic insurance dataset&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;Data quality demonstrations often use small, isolated datasets. I wanted to test a more realistic relational model without exposing any confidential enterprise data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The insurance data model consists of four interconnected datasets:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Dataset Records Primary business identifier&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Customers&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;10,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;customer_id&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Policies&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;25,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;policy_id&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Claims&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;50,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;claim_id&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Payments&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;100,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;payment_id&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Total&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;185,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN&gt;The relationships are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Customers → Policies → Claims → Payments&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Each dataset also contains a separate row identifier to support accurate defect tracking.&lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN&gt;Dataset schemas&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Customers&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;row_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;customer_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;customer_name&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;email&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;country&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Policies&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;row_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;policy_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;customer_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;effective_date&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;expiration_date&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;premium_amount&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;policy_status&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Claims&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;row_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;claim_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;policy_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;claim_date&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;claim_amount&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;claim_status&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Payments&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;row_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;payment_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;claim_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;payment_date&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;payment_amount&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;payment_status&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;&lt;SPAN&gt;Execute the synthetic data generator&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN&gt;From the Lab 01 directory, run:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;python insurance_lab/generate_data.py&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The generator uses random seed 42 to produce reproducible datasets.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It creates the following files under the insurance data directory:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;customers.csv&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;policies.csv&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;claims.csv&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;payments.csv&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;defect_manifest.csv&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;dataset_summary.json&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;The complete generator is available here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/amising6/databricks-ai-engineering-labs/blob/main/01-structured-outputs/insurance_lab/generate_data.py" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;https://github.com/amising6/databricks-ai-engineering-labs/blob/main/01-structured-outputs/insurance_lab/generate_data.py&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN&gt;Controlled defect injection&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;Dataset Injected defect Count&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Customers&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Missing customer identifier&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;100&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Customers&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Invalid email&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;200&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Policies&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Duplicate policy identifier&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;100&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Policies&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Invalid policy dates&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;125&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Policies&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Invalid customer reference&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;50&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Claims&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Negative claim amount&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;500&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Claims&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Invalid policy reference&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;200&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Claims&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Invalid claim status&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;125&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Payments&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Negative payment amount&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;500&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Payments&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Invalid claim reference&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;200&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Total&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;2,100&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN&gt;Some records contain multiple defects.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The generator also creates a defect manifest containing the dataset, row identifier, affected column and defect type.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This manifest becomes the ground truth for evaluating detection accuracy.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;All records are synthetic and generated independently of any customer or production environment.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;8. Import the Databricks notebooks&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;Two executable notebooks are included:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Notebook 1: Governed AI Data Quality Agent&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;01_governed_ai_data_quality.ipynb&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Notebook 2: Native Insurance DQX Demonstration&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;02_insurance_dqx_demo.ipynb&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Download them from:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/amising6/databricks-ai-engineering-labs/tree/main/01-structured-outputs/notebooks" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;https://github.com/amising6/databricks-ai-engineering-labs/tree/main/01-structured-outputs/notebooks&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In Databricks:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Open your workspace.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Import both notebooks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Attach compatible interactive compute.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Start with the native insurance DQX demonstration.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Install the required dependencies.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;The tested dependency versions were:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;%pip install databricks-labs-dqx==0.16.0 pydantic==2.14.4&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Restart Python when instructed by the notebook.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Configure the catalog, schema and volume using values accessible in your environment.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;9. Configure Unity Catalog storage&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;For my Databricks Free Edition implementation, I used:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Catalog: workspace&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Schema: insurance_dq_lab&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Volume: synthetic_data&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;An illustrative setup is:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;CREATE SCHEMA IF NOT EXISTS workspace.insurance_dq_lab;

CREATE VOLUME IF NOT EXISTS workspace.insurance_dq_lab.synthetic_data;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The associated volume path is:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;/Volumes/workspace/insurance_dq_lab/synthetic_data/&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Replace these values if your workspace uses a different catalog or permissions model.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The notebooks use unique run directories to isolate generated datasets and execution outputs.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;10. Define an approved data quality rule registry&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;Rather than allowing an AI model to construct arbitrary validation expressions, I created a deterministic registry of approved rules.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The initial implementation contains ten rules.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Dataset Rule&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Customers&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Customer ID completeness&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Customers&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Customer email validity&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Policies&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Policy ID uniqueness&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Policies&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Policy date validity&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Policies&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Customer referential integrity&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Claims&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Claim amount validity&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Claims&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Claim status validity&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Claims&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Policy referential integrity&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Payments&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Payment amount validity&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Payments&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Claim referential integrity&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN&gt;For example, DQX metadata for the customer completeness check is defined as:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;{
    "name": "customer_id_completeness",
    "criticality": "error",
    "check": {
        "function": "is_not_null",
        "arguments": {
            "column": "customer_id"
        }
    }
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;A uniqueness rule is defined as:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;{
    "name": "policy_id_uniqueness",
    "criticality": "error",
    "check": {
        "function": "is_unique",
        "arguments": {
            "columns": ["policy_id"]
        }
    }
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;A referential integrity rule is defined as:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;{
    "name": "claim_policy_integrity",
    "criticality": "error",
    "check": {
        "function": "foreign_key",
        "arguments": {
            "columns": ["policy_id"],
            "ref_columns": ["policy_id"],
            "ref_df_name": "policies"
        }
    }
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The complete rule registry is available in:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;insurance_lab/rule_registry.py&lt;/SPAN&gt;&lt;/PRE&gt;&lt;H2&gt;&lt;SPAN&gt;11. Execute native Databricks DQX validation&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;The execution workflow:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Reads the synthetic datasets using Spark.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Converts financial amounts to decimal types.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Converts date columns to date types.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Prepares distinct parent reference keys.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Validates the approved DQX metadata.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Executes the registered rules.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Separates valid and quarantined records.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Produces dataset-level and rule-level metrics.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;The central DQX operation follows this pattern:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;valid_df, quarantine_df = (
    engine.apply_checks_by_metadata_and_split(
        df,
        checks,
        ref_dfs=reference_dataframes
    )
)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The complete executable implementation, including engine initialization and reference dataframe preparation, is included in the notebooks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DQX adds structured error information that can be inspected to identify failed rules and affected columns.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The quarantined records and error metadata are then used to construct operational quality reports.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;12. Introduce AI-assisted rule planning&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;Once deterministic execution was working, I introduced an AI planning layer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Consider the following requirement:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Check claims for negative amounts and invalid policy references."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The expected structured plan is:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;{
    "rules": [
        {
            "table": "claims",
            "rule_id": "claim_amount_validity"
        },
        {
            "table": "claims",
            "rule_id": "claim_policy_integrity"
        }
    ]
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The AI model does not generate SQL or directly configure Spark execution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It selects rule identifiers from the approved registry.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Pydantic validates the response structure before further processing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The final implementation also distinguishes between:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Supported requirements.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Unsupported requirements.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Ambiguous requirements.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;This allows the planner to reject requests that cannot be satisfied by the approved rule catalog.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;13. Human-in-the-loop approval&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;A valid AI response is not automatically authorized for execution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The deterministic compiler performs the following activities:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Verifies that each rule exists in the approved registry.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Removes duplicate rule selections.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Builds executable DQX metadata.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Calculates a SHA-256 fingerprint.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Presents the compiled plan for human review.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;The approved plan is validated again before execution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the plan or compiled metadata has changed, the fingerprint comparison fails.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This provides plan integrity checking. It is not a substitute for authenticated enterprise authorization, role-based access controls or a tamper-resistant audit store.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;14. Native DQX benchmark results&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;The complete insurance validation produced:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Dataset Input Valid Quarantined Quality&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Customers&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;10,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;9,800&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;200&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;98.00%&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Policies&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;25,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;24,700&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;300&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;98.80%&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Claims&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;50,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;49,400&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;600&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;98.80%&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Payments&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;100,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;99,400&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;600&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;99.40%&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Total&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;185,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;183,300&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;1,700&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;99&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sat, 28 Nov 2026 21:31:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/building-a-governed-ai-data-quality-agent-with-databricks-dqx-a/m-p/177970#M1994</guid>
      <dc:creator>AmitDECopilot</dc:creator>
      <dc:date>2026-11-28T21:31:51Z</dc:date>
    </item>
    <item>
      <title>Serving External Customers from a .NET Application on Databricks</title>
      <link>https://community.databricks.com/t5/community-articles/serving-external-customers-from-a-net-application-on-databricks/m-p/177945#M1993</link>
      <description>&lt;P&gt;A question that comes up in .NET shops: our customers are outside the company, and our application is in C#. How do we put Databricks data in front of them? The answer depends on who your users are and what they need to do. In some cases you need no custom application at all.&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT color="#E0661A"&gt;━━━━━━━━━━━━━━━━━━&lt;/FONT&gt;&lt;/P&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;Start with who the users are&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;Databricks Apps hosts an application on Databricks serverless compute, with authentication handled for you. It is the shortest path whenever every user can hold an identity in your Databricks account. The permissions page is explicit about the opposite case:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT color="#E0661A"&gt;&lt;STRONG&gt;FROM THE DOCUMENTATION&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;"You can't make Databricks apps public. Anonymous access and bypassing single sign-on (SSO) are not supported." (&lt;A href="https://docs.databricks.com/aws/en/dev-tools/databricks-apps/permissions" target="_blank" rel="noopener"&gt;Databricks Apps permissions&lt;/A&gt;)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Users do not have to belong to the same workspace, but they must belong to the same account. Apps runs Python 3.11 and Node.js 22, so a C# application cannot run there as it is.&lt;/P&gt;&lt;P&gt;So the first question is whether you can provision your customers as account identities. Partners under contract often can. Thousands of self-service customers usually cannot.&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT color="#E0661A"&gt;━━━━━━━━━━━━━━━━━━&lt;/FONT&gt;&lt;/P&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;If they only need dashboards&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;AI/BI dashboard embedding for external users is generally available. It shares a published dashboard "with viewers outside of your organization, such as partners and customers, without provisioning Databricks accounts for those users."&lt;/P&gt;&lt;P&gt;Your server holds a service principal. It exchanges the principal's token for a short-lived token scoped to one dashboard and one viewer, and passes an &lt;FONT face="courier new, courier, monospace"&gt;external_value&lt;/FONT&gt; that dataset queries read as &lt;FONT face="courier new, courier, monospace"&gt;__aibi_external_value&lt;/FONT&gt; to filter rows per customer. Any backend can make that exchange, including ASP.NET Core. Two limits to plan for: the Ask Genie button is not available to external viewers, and loads are rate-limited to 20 per second.&lt;/P&gt;&lt;P&gt;If view-and-filter dashboards are the whole requirement, stop here. You do not need a framework.&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT color="#E0661A"&gt;━━━━━━━━━━━━━━━━━━&lt;/FONT&gt;&lt;/P&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;If you need your own application&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;Some products go further. Customers start jobs, run their own queries, ask questions in natural language, and expect their data never to appear in another customer's session. Then you host the application yourself, outside Databricks, and these decisions are yours:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Decision&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;What has to be true&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Who is the tenant&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;Resolved on the server from your membership data, never from a URL or a header the client controls.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;How queries are scoped&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;Parameters bound by the Statement Execution API, never string-built SQL, with the tenant's catalog and schema chosen by the server.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;How Databricks is reached&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;A service principal or managed identity. Unity Catalog row filters keyed on &lt;FONT face="courier new, courier, monospace"&gt;session_user()&lt;/FONT&gt; do not separate customers who share one principal.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;How dashboards are embedded&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;The external embedding token exchange above, with the tenant in &lt;FONT face="courier new, courier, monospace"&gt;external_value&lt;/FONT&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;How Genie is shared&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;One Genie space per tenant. Conversation history belongs to the authenticated principal, so a shared principal shares it.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;How you prove isolation&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;Tests that try to read another tenant's data and fail the build when they succeed.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The Databricks SDKs cover Python, JavaScript, Go and Java. There is no Databricks SDK for .NET, so a C# team writes these pieces against the REST APIs or uses an open-source library.&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT color="#E0661A"&gt;━━━━━━━━━━━━━━━━━━&lt;/FONT&gt;&lt;/P&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;One open-source option&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;I maintain &lt;A href="https://github.com/ivanvyd/LakeWright.NET" target="_blank" rel="noopener"&gt;LakeWright.NET&lt;/A&gt;, an Apache-2.0 library for the third case: tenant resolution, a query layer that refuses string-built SQL, durable job operations, the embedding token exchange, Genie conversations bound to the tenant that started them, and a cross-tenant isolation test suite. Its compatibility matrix lists which claims were verified against a live workspace and which were not. Its "When not to use LakeWright" page sends you to Databricks Apps, external embedding or Lakebase when those fit, which is most of the time.&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT color="#E0661A"&gt;━━━━━━━━━━━━━━━━━━&lt;/FONT&gt;&lt;/P&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;Conclusion&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;If your users can be Databricks account identities, use Databricks Apps. If external customers only view dashboards, use AI/BI embedding for external users from any backend, .NET included. Build and host your own application only when customers need more than dashboards and cannot be account identities. In that case, decide the tenant model before writing the first query.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2026 14:23:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/serving-external-customers-from-a-net-application-on-databricks/m-p/177945#M1993</guid>
      <dc:creator>ivanvyd</dc:creator>
      <dc:date>2026-11-28T14:23:49Z</dc:date>
    </item>
    <item>
      <title>Predictive Optimization Bills You for the Empty system.lakebase Tables</title>
      <link>https://community.databricks.com/t5/community-articles/predictive-optimization-bills-you-for-the-empty-system-lakebase/m-p/177928#M1992</link>
      <description>&lt;P&gt;If your workspace uses Lakebase and has predictive optimization turned on, check one schema you did not create: &lt;FONT face="courier new, courier, monospace"&gt;system.lakebase&lt;/FONT&gt;. In our workspace, predictive optimization maintained its ten empty tables every day, and every run showed up on the bill. We could not turn it off ourselves. Databricks turned it off after a support case. This post shows how to find out whether it affects you, and what to put in the case if it does.&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT color="#E0661A"&gt;━━━━━━━━━━━━━━━━━━&lt;/FONT&gt;&lt;/P&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;What we saw&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;The billing usage table showed a predictive optimization charge every day. The operations history showed where it came from: &lt;FONT face="courier new, courier, monospace"&gt;VACUUM&lt;/FONT&gt;, &lt;FONT face="courier new, courier, monospace"&gt;PURGE&lt;/FONT&gt; and &lt;FONT face="courier new, courier, monospace"&gt;DELETE&lt;/FONT&gt; runs on all ten tables of &lt;FONT face="courier new, courier, monospace"&gt;system.lakebase&lt;/FONT&gt;, such as &lt;FONT face="courier new, courier, monospace"&gt;postgres_logs&lt;/FONT&gt;, &lt;FONT face="courier new, courier, monospace"&gt;plan_history&lt;/FONT&gt; and &lt;FONT face="courier new, courier, monospace"&gt;active_session_history&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;That schema is owned by a Databricks service identity, not by anyone in the workspace. All ten tables were empty, and the Lakebase observability previews were off. There was nothing to maintain, but the maintenance ran and was billed.&lt;/P&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;Why the schema ran when its catalog did not&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;Predictive optimization is inherited: account, then catalog, then schema, then table. An object that sets &lt;FONT face="courier new, courier, monospace"&gt;ENABLE&lt;/FONT&gt; or &lt;FONT face="courier new, courier, monospace"&gt;DISABLE&lt;/FONT&gt; explicitly ignores its parent. In our workspace the settings were:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Object&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Setting&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Effect&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Catalog &lt;FONT face="courier new, courier, monospace"&gt;system&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="courier new, courier, monospace"&gt;DISABLE&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;Off for schemas that inherit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Schema &lt;FONT face="courier new, courier, monospace"&gt;system.lakebase&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="courier new, courier, monospace"&gt;ENABLE&lt;/FONT&gt;, set on the schema itself&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#E0661A"&gt;&lt;STRONG&gt;On, despite the catalog&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Our own catalogs&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="courier new, courier, monospace"&gt;INHERIT&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;On, from the account&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The explicit &lt;FONT face="courier new, courier, monospace"&gt;ENABLE&lt;/FONT&gt; on the schema overrides the catalog's &lt;FONT face="courier new, courier, monospace"&gt;DISABLE&lt;/FONT&gt;, so the ten tables stayed eligible for maintenance.&lt;/P&gt;&lt;P align="center"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Diagram: the system catalog is set to DISABLE, but the system.lakebase schema carries its own ENABLE, so its ten empty tables are maintained and billed every day, while your own catalogs inherit ENABLE from the account." style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33820iBEC643FCBBE1065E/image-size/large?v=v2&amp;amp;px=999" role="button" title="po-inheritance.png" alt="po-inheritance.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT color="#E0661A"&gt;&lt;STRONG&gt;Figure 1.&lt;/STRONG&gt;&lt;/FONT&gt; &lt;EM&gt;An explicit ENABLE on the schema overrides the catalog's DISABLE.&lt;/EM&gt;&lt;/P&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;Why you cannot fix it yourself&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;Catalog Explorer shows the lock. Open &lt;STRONG&gt;Catalog&lt;/STRONG&gt;, then &lt;FONT face="courier new, courier, monospace"&gt;system&lt;/FONT&gt;, then &lt;FONT face="courier new, courier, monospace"&gt;lakebase&lt;/FONT&gt;, and select the &lt;STRONG&gt;Details&lt;/STRONG&gt; tab. Under &lt;STRONG&gt;Advanced&lt;/STRONG&gt;, the predictive optimization row has no setting to change.&lt;/P&gt;&lt;P align="center"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Catalog Explorer, system.lakebase schema, Details tab: under Advanced, the Predictive Optimization row reads &amp;quot;Predictive optimization can't be managed for this schema.&amp;quot;" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33822iE07697CE48E65E96/image-size/large?v=v2&amp;amp;px=999" role="button" title="fig2-details.png" alt="fig2-details.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT color="#E0661A"&gt;&lt;STRONG&gt;Figure 2.&lt;/STRONG&gt;&lt;/FONT&gt; &lt;EM&gt;The Details tab of system.lakebase: the setting cannot be managed from the workspace.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;All three obvious fixes fail or cost more than the problem:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Changing the schema fails. &lt;FONT face="courier new, courier, monospace"&gt;PATCH /api/2.1/unity-catalog/schemas/system.lakebase&lt;/FONT&gt; returns 403 with &lt;FONT face="courier new, courier, monospace"&gt;Predictive optimization can't be modified on a system schema&lt;/FONT&gt;.&lt;/LI&gt;&lt;LI&gt;Changing each table fails. &lt;FONT face="courier new, courier, monospace"&gt;ALTER TABLE ... DISABLE PREDICTIVE OPTIMIZATION&lt;/FONT&gt; is refused for lack of &lt;FONT face="courier new, courier, monospace"&gt;MODIFY&lt;/FONT&gt; on the table.&lt;/LI&gt;&lt;LI&gt;Turning predictive optimization off for the account does not help. The &lt;A href="https://learn.microsoft.com/azure/databricks/optimizations/predictive-optimization#enable-predictive-optimization" target="_blank" rel="noopener"&gt;predictive optimization documentation&lt;/A&gt; states that an account-level disable leaves explicitly enabled catalogs and schemas enabled. It would also stop maintenance on your own tables.&lt;/LI&gt;&lt;/UL&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;How to check your workspace&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;Run these as read-only queries on any SQL warehouse.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. The schema setting.&lt;/STRONG&gt; Look at the &lt;FONT face="courier new, courier, monospace"&gt;Predictive Optimization&lt;/FONT&gt; row. &lt;FONT face="courier new, courier, monospace"&gt;ENABLE&lt;/FONT&gt; means the schema can still be maintained.&lt;/P&gt;&lt;PRE&gt;DESCRIBE SCHEMA EXTENDED system.lakebase;&lt;/PRE&gt;&lt;P&gt;The same value is in &lt;FONT face="courier new, courier, monospace"&gt;enable_predictive_optimization&lt;/FONT&gt; and &lt;FONT face="courier new, courier, monospace"&gt;effective_predictive_optimization_flag&lt;/FONT&gt; from &lt;FONT face="courier new, courier, monospace"&gt;GET /api/2.1/unity-catalog/schemas/system.lakebase&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Maintenance runs on system tables.&lt;/STRONG&gt; Any row here is predictive optimization working on a schema you do not own.&lt;/P&gt;&lt;PRE&gt;SELECT catalog_name, schema_name, table_name, operation_type,
       count(*) AS operations, min(start_time) AS first_run, max(start_time) AS last_run
FROM system.storage.predictive_optimization_operations_history
WHERE catalog_name = 'system'
GROUP BY ALL
ORDER BY operations DESC;&lt;/PRE&gt;&lt;P&gt;In our workspace it returned 30 rows, all in &lt;FONT face="courier new, courier, monospace"&gt;system.lakebase&lt;/FONT&gt;: every one of the ten tables had &lt;FONT face="courier new, courier, monospace"&gt;VACUUM&lt;/FONT&gt;, &lt;FONT face="courier new, courier, monospace"&gt;PURGE&lt;/FONT&gt; and &lt;FONT face="courier new, courier, monospace"&gt;DELETE&lt;/FONT&gt; runs.&lt;/P&gt;&lt;P align="center"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Query result in the SQL editor: rows for catalog system, schema lakebase, with tables such as database_counters, postgres_logs and plan_history, operation types VACUUM, PURGE and DELETE, and 14 or 10 operations per row." style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33823iFDF85E900EFC1B74/image-size/large?v=v2&amp;amp;px=999" role="button" title="fig3-operations.png" alt="fig3-operations.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT color="#E0661A"&gt;&lt;STRONG&gt;Figure 3.&lt;/STRONG&gt;&lt;/FONT&gt; &lt;EM&gt;Query 2 in our workspace: maintenance runs on the empty system.lakebase tables.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. What it cost.&lt;/STRONG&gt; &lt;FONT face="courier new, courier, monospace"&gt;usage_quantity&lt;/FONT&gt; in the operations history gives the DBUs of each run, so this query gives the share that went to the system schema:&lt;/P&gt;&lt;PRE&gt;SELECT schema_name, operation_type, count(*) AS runs,
       round(sum(usage_quantity), 4) AS dbus
FROM system.storage.predictive_optimization_operations_history
WHERE catalog_name = 'system' AND schema_name = 'lakebase'
GROUP BY ALL
ORDER BY dbus DESC;&lt;/PRE&gt;&lt;P&gt;Ours showed 340 runs and about 26.7 DBUs in just over nine days, all spent on tables with no rows. &lt;FONT face="courier new, courier, monospace"&gt;VACUUM&lt;/FONT&gt; alone took 23.9 of them.&lt;/P&gt;&lt;P align="center"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Query result: schema lakebase, VACUUM 140 runs 23.8741 DBUs, PURGE 100 runs 1.7179 DBUs, DELETE 100 runs 1.0849 DBUs." style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33821i4FF8699A9B28E812/image-size/large?v=v2&amp;amp;px=999" role="button" title="fig4-dbus.png" alt="fig4-dbus.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT color="#E0661A"&gt;&lt;STRONG&gt;Figure 4.&lt;/STRONG&gt;&lt;/FONT&gt; &lt;EM&gt;DBUs that predictive optimization spent on system.lakebase, by operation type.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;To see where those runs land on the bill, compare the daily totals in billing usage with the run dates from query 2:&lt;/P&gt;&lt;PRE&gt;SELECT usage_date, sum(usage_quantity) AS dbus
FROM system.billing.usage
WHERE billing_origin_product = 'PREDICTIVE_OPTIMIZATION'
  AND usage_date &amp;gt;= current_date() - INTERVAL 30 DAYS
GROUP BY usage_date
ORDER BY usage_date;&lt;/PRE&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT color="#E0661A"&gt;&lt;STRONG&gt;IF QUERY 2 RETURNS ROWS&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Do not disable predictive optimization for the account to stop them. Open a support case instead, and keep your own catalogs as they are.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;Working the support case&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;We opened the case through Azure support. A system schema is owned by Databricks, so the fix had to come from Databricks engineering, and the case needed to reach them. These steps kept it short:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Send evidence support can rerun.&lt;/STRONG&gt; The case carried the settings from query 1, the runs from query 2 with table names and operation types, the billing rows from query 3, and the 403 response to the &lt;FONT face="courier new, courier, monospace"&gt;PATCH&lt;/FONT&gt; request.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Say what must not change.&lt;/STRONG&gt; We asked for predictive optimization to stay on for our own catalogs, so the fix would not be an account-wide disable.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Agree on a trigger for escalation.&lt;/STRONG&gt; Support agreed that another daily run on the schema while it still showed &lt;FONT face="courier new, courier, monospace"&gt;ENABLE&lt;/FONT&gt; would send the case to Databricks engineering. When the next run appeared, we sent one follow-up with fresh results from queries 1 and 2, asked for that escalation, and asked for a named engineer to own the case.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Confirm with the same queries.&lt;/STRONG&gt; After the change we ran queries 1 and 2 again before asking support to close the case.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Databricks set &lt;FONT face="courier new, courier, monospace"&gt;system.lakebase&lt;/FONT&gt; to &lt;FONT face="courier new, courier, monospace"&gt;DISABLE&lt;/FONT&gt; within a few days of that follow-up. No predictive optimization run has touched the schema since. Our own catalogs still inherit &lt;FONT face="courier new, courier, monospace"&gt;ENABLE&lt;/FONT&gt;, so our tables are maintained as before.&lt;/P&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;Conclusion&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;Predictive optimization can maintain and bill the Databricks-owned &lt;FONT face="courier new, courier, monospace"&gt;system.lakebase&lt;/FONT&gt; schema even when its tables are empty and the &lt;FONT face="courier new, courier, monospace"&gt;system&lt;/FONT&gt; catalog is disabled, because the schema carries its own &lt;FONT face="courier new, courier, monospace"&gt;ENABLE&lt;/FONT&gt;. You cannot change that setting, and an account-level disable does not reach it. Run the queries above. If query 2 shows runs on &lt;FONT face="courier new, courier, monospace"&gt;system.lakebase&lt;/FONT&gt;, open a support case with that evidence, agree when it goes to engineering, and leave your own predictive optimization settings alone.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2026 11:50:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/predictive-optimization-bills-you-for-the-empty-system-lakebase/m-p/177928#M1992</guid>
      <dc:creator>ivanvyd</dc:creator>
      <dc:date>2026-11-28T11:50:19Z</dc:date>
    </item>
    <item>
      <title>Auto Loader: addNewColumns can still stop your stream</title>
      <link>https://community.databricks.com/t5/community-articles/auto-loader-addnewcolumns-can-still-stop-your-stream/m-p/176758#M1989</link>
      <description>&lt;P&gt;A useful detail in the Auto Loader docs: addNewColumns does not mean the stream keeps running when a new column arrives.&lt;/P&gt;&lt;P&gt;Auto Loader updates its saved schema, then stops with UnknownFieldException. Restarting the stream picks up the new schema. Databricks recommends using Lakeflow Jobs to restart automatically.&lt;/P&gt;&lt;P&gt;For production, I’d also monitor _rescued_data and check that the target Delta table allows the intended schema change. Reader schema evolution and target table evolution need to line up.&lt;/P&gt;&lt;P&gt;Docs: &lt;A href="https://docs.databricks.com/aws/en/ingestion/cloud-object-storage/auto-loader/schema" target="_blank"&gt;https://docs.databricks.com/aws/en/ingestion/cloud-object-storage/auto-loader/schema&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://docs.databricks.com/aws/en/data-engineering/schema-evolution" target="_blank"&gt;https://docs.databricks.com/aws/en/data-engineering/schema-evolution&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2026 12:21:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/auto-loader-addnewcolumns-can-still-stop-your-stream/m-p/176758#M1989</guid>
      <dc:creator>karanvichare</dc:creator>
      <dc:date>2026-11-18T12:21:08Z</dc:date>
    </item>
    <item>
      <title>Planning Oracle CDC into Databricks? Check These Limitations Before You Start</title>
      <link>https://community.databricks.com/t5/community-articles/planning-oracle-cdc-into-databricks-check-these-limitations/m-p/177379#M1987</link>
      <description>&lt;P&gt;Is the Native CDC Connector Enough for Enterprise Migrations?&lt;/P&gt;&lt;P&gt;At first glance, the Databricks Oracle ingestion connector looks like exactly what enterprise data teams want: managed ingestion, built-in change data capture (CDC), and direct delivery into Delta Lake. Fewer moving parts, less custom code, and faster time to value.&lt;/P&gt;&lt;P&gt;But during Oracle modernization programs, architecture decisions are rarely driven by the happy path. A handful of platform constraints can determine whether the native connector becomes your strategic ingestion standard or whether you need a more specialized CDC approach. After reviewing the connector capabilities against common enterprise Oracle deployments, several practical considerations stand out.&lt;/P&gt;&lt;P&gt;The connector supports Oracle Database 12c through 26ai, including both single-instance and multitenant (CDB/PDB) environments. Organizations running Oracle 11g or older will need an upgrade path before considering the connector. For many customers, that is straightforward. The more important question is how the Oracle environment is deployed.&lt;/P&gt;&lt;P&gt;The biggest architectural checkpoint is Oracle RAC (Real Application Clusters). RAC remains a standard deployment pattern across large enterprises because it provides high availability and horizontal scale. It is especially common in Exadata environments. From a CDC perspective, RAC introduces complexity because each participating node generates its own redo thread. A CDC engine must continuously read, reconcile, and correctly sequence transactions across all threads before publishing changes downstream. If ordering is reconstructed incorrectly, the target system can receive an inaccurate representation of the source table state.&lt;/P&gt;&lt;P&gt;According to Databricks documentation, the native Oracle connector does not currently support RAC. That single limitation can become a decisive factor for enterprises planning large-scale migrations. If your production Oracle footprint runs on RAC or Exadata with RAC enabled, alternative CDC technologies such as Oracle GoldenGate, Qlik Replicate, or Fivetran become more appropriate options. A common pattern is to land CDC files into cloud storage and then use Databricks Auto Loader to ingest them into Delta tables.&lt;/P&gt;&lt;P&gt;Another frequently encountered enterprise design pattern is Oracle Data Guard. Many organizations intentionally run reporting workloads and downstream data extraction against a standby database to reduce impact on production systems. Because physical standby databases are not supported by the native connector, teams must carefully evaluate the operational impact of reading changes directly from the primary database.&lt;/P&gt;&lt;P&gt;Oracle Autonomous Database introduces a different challenge. CDC solutions typically require access to transaction logs and elevated privileges. In Autonomous Database environments, Oracle abstracts much of that infrastructure away, limiting the access needed by log-based CDC technologies. As a result, the native connector is not currently a fit for Autonomous Database sources.&lt;/P&gt;&lt;P&gt;Schema analysis is equally important. Several Oracle data types, including XMLTYPE, JSON, Spatial data types, and BFILE columns, are not supported for CDC capture. Large Object (LOB) columns such as CLOB, BLOB, and NCLOB also deserve careful evaluation. These limitations are easy to overlook during planning and often surface late in migration programs when validation testing begins. For that reason, a data type assessment should be one of the first discovery activities in any Oracle-to-Databricks initiative.&lt;/P&gt;&lt;P&gt;Organizations using Transparent Data Encryption (TDE) should also pay attention to operational processes. CDC of encrypted data depends on the encryption wallet remaining accessible. If wallet management procedures are not automated and monitored, change capture interruptions can occur after database restarts or maintenance events.&lt;/P&gt;&lt;P&gt;Before selecting an ingestion strategy, ask four simple questions: Is the source database RAC-enabled? Is it a primary or standby environment? Does it contain unsupported or complex data types? Are encrypted tables protected through well-managed TDE wallet procedures? In most organizations, a DBA can answer these questions within hours, potentially avoiding weeks of redesign later.&lt;/P&gt;&lt;P&gt;A practical decision framework emerges. Single-instance Oracle deployments on supported versions with conventional relational data are strong candidates for the native Databricks connector. RAC-based systems, Exadata deployments, or applications with heavy XML, JSON, and LOB usage often benefit from Oracle GoldenGate, Qlik Replicate, or Fivetran. For relatively static datasets, Lakehouse Federation or one-time bulk migration approaches may provide a simpler path.&lt;/P&gt;&lt;P&gt;The key lesson is that connector limitations should be treated as architecture inputs, not footnotes. Most migration challenges are not caused by Databricks itself; they stem from assumptions about the source environment. Teams that perform an early assessment of Oracle topology, database roles, data types, and encryption practices are far more likely to avoid surprises and deliver a predictable migration outcome.&lt;/P&gt;&lt;P&gt;If you have navigated Oracle RAC, Data Guard, or complex LOB migrations into Databricks, the lessons learned are often more valuable than the technology choices themselves. Sharing those experiences helps the community build better migration playbooks.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/128093"&gt;@bhaskarpalit&lt;/a&gt;&amp;nbsp; &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/113532"&gt;@berat&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Author: Rinku Kalra | Senior Data Architect&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2026 01:44:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/planning-oracle-cdc-into-databricks-check-these-limitations/m-p/177379#M1987</guid>
      <dc:creator>RDTAI_genpact</dc:creator>
      <dc:date>2026-11-24T01:44:25Z</dc:date>
    </item>
    <item>
      <title>Databricks on Azure vs AWS vs Google Cloud: what actually differs at the infrastructure level</title>
      <link>https://community.databricks.com/t5/community-articles/databricks-on-azure-vs-aws-vs-google-cloud-what-actually-differs/m-p/177690#M1983</link>
      <description>&lt;P&gt;Most Databricks concepts carry over between clouds: Unity Catalog, workspaces, clusters, SQL warehouses. The infrastructure underneath does not. I have deployed the same private-network workspace design with Terraform and Terragrunt on Azure, AWS and Google Cloud, and the differences that cost me time were not in the notebooks. They were in how the workspace is created, which identity does it, and how the network and storage are wired.&lt;/P&gt;&lt;P&gt;This article is for architects and platform engineers who know one cloud well and now have to build Databricks on another, or who have to choose between them. It covers classic compute in a customer-managed network. Serverless compute is out of scope.&lt;/P&gt;&lt;DIV class=""&gt;&lt;H2&gt;The comparison&lt;/H2&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp; Azure AWS Google Cloud&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Cloud boundary&lt;/TD&gt;&lt;TD&gt;Subscription and resource group&lt;/TD&gt;&lt;TD&gt;AWS account&lt;/TD&gt;&lt;TD&gt;Google Cloud project&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;How the workspace is created&lt;/TD&gt;&lt;TD&gt;An Azure resource, through Azure Resource Manager&lt;/TD&gt;&lt;TD&gt;Databricks account API, referencing parts you registered&lt;/TD&gt;&lt;TD&gt;Databricks account API, referencing your project and network&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;How Databricks operates in your cloud&lt;/TD&gt;&lt;TD&gt;Managed resource group next to the workspace (visible, not changeable)&lt;/TD&gt;&lt;TD&gt;Cross-account IAM role that Databricks assumes&lt;/TD&gt;&lt;TD&gt;Workspace service account that Databricks creates in your project&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Deploying identity&lt;/TD&gt;&lt;TD&gt;Azure identity with rights on the subscription&lt;/TD&gt;&lt;TD&gt;AWS identity for the AWS resources, plus a Databricks account admin for the account API&lt;/TD&gt;&lt;TD&gt;One Google identity: Databricks account admin and rights in the project&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Classic compute network&lt;/TD&gt;&lt;TD&gt;VNet with two delegated subnets (host and container)&lt;/TD&gt;&lt;TD&gt;VPC with subnets in two or more availability zones, plus security groups&lt;/TD&gt;&lt;TD&gt;VPC with one regional subnet, plus a firewall rule&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Lakehouse storage and Unity Catalog access&lt;/TD&gt;&lt;TD&gt;ADLS Gen2, through an access connector (managed identity)&lt;/TD&gt;&lt;TD&gt;Amazon S3, through an IAM role&lt;/TD&gt;&lt;TD&gt;Cloud Storage, through a Databricks-managed service account&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Private path to storage&lt;/TD&gt;&lt;TD&gt;Storage private endpoint&lt;/TD&gt;&lt;TD&gt;S3 gateway endpoint&lt;/TD&gt;&lt;TD&gt;Private Google Access&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Private connectivity to the control plane&lt;/TD&gt;&lt;TD&gt;Azure Private Link, Premium tier&lt;/TD&gt;&lt;TD&gt;AWS PrivateLink, Enterprise tier&lt;/TD&gt;&lt;TD&gt;Private Service Connect, Enterprise tier&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="V01_Community_Image_1_Azure.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33747i1C98E6B005371274/image-size/large?v=v2&amp;amp;px=999" role="button" title="V01_Community_Image_1_Azure.png" alt="V01_Community_Image_1_Azure.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="V01_Community_Image_2_AWS.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33748iE2732526030E06B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="V01_Community_Image_2_AWS.png" alt="V01_Community_Image_2_AWS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="V01_Community_Image_3_Google_Cloud.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33749iC28731CE918FEE2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="V01_Community_Image_3_Google_Cloud.png" alt="V01_Community_Image_3_Google_Cloud.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;H2&gt;Four differences that matter in practice&lt;/H2&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;H3&gt;1. Who creates the workspace&lt;/H3&gt;&lt;/DIV&gt;&lt;P&gt;On Azure, the workspace is a native Azure resource. In Terraform it is azurerm_databricks_workspace, deployed through Azure Resource Manager like a storage account or a key vault. On AWS and Google Cloud, the workspace is created by the Databricks account API (databricks_mws_workspaces), and your cloud only supplies the parts it references.&lt;/P&gt;&lt;P&gt;Why it matters: on Azure, workspace creation follows Azure RBAC, Azure Policy and resource group conventions. On AWS and Google Cloud, a Databricks account admin is on the critical path for every new workspace, and the workspace does not appear as a resource in your cloud inventory the way it does on Azure.&lt;/P&gt;&lt;DIV class=""&gt;&lt;H3&gt;2. How Databricks gets into your cloud&lt;/H3&gt;&lt;/DIV&gt;&lt;P&gt;Each cloud gives Databricks a different foothold:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Azure:&lt;/STRONG&gt; Azure creates a managed resource group alongside the workspace. Databricks manages it; you can see it but not change it. You name it up front (managed_resource_group_name in my config).&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;AWS:&lt;/STRONG&gt; you create a cross-account IAM role, and Databricks assumes it to launch clusters. You register it with the Databricks account as a credential configuration.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Google Cloud:&lt;/STRONG&gt; you create nothing for this. When the workspace is created, Databricks itself adds a workspace service account and the workspace system storage to your project.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Why it matters: this is what your security team will ask about first. On AWS the trust is an explicit role you write and review. On Google Cloud it is created on your behalf, so the review moves to the permissions of the identity that creates the workspace.&lt;/P&gt;&lt;DIV class=""&gt;&lt;H3&gt;3. The deploying identity&lt;/H3&gt;&lt;/DIV&gt;&lt;P&gt;On Azure, one service principal with Contributor on the subscription creates the workspace. In my repo the same service principal is also a Databricks account admin, because the account-level steps (metastore assignment, workspace admin group) still need it. On AWS, two identities work side by side: GitHub Actions reaches AWS through OIDC to create the role, bucket and VPC, and a Databricks service principal with an OAuth secret calls the account API. On Google Cloud, one Google service account does both, and there is no Databricks OAuth secret at all.&lt;/P&gt;&lt;P&gt;Why it matters: on Google Cloud, Databricks uses that identity's Google credentials to create resources in your project, so it needs real project permissions, not just Databricks rights. Keep three Google identities apart: the creator that deploys the workspace, the workspace service account that runs compute, and the storage credential's service account that reads and writes the data.&lt;/P&gt;&lt;DIV class=""&gt;&lt;H3&gt;4. Private control plane connectivity is a pricing tier decision&lt;/H3&gt;&lt;/DIV&gt;&lt;P&gt;Private access to your data and private access to the Databricks control plane are two separate decisions. The first uses the cloud's own private paths. The second needs Azure Private Link (Premium tier) or, on AWS and Google Cloud, PrivateLink and Private Service Connect (Enterprise tier).&lt;/P&gt;&lt;P&gt;Why it matters: on the Premium tier, my Azure workspaces use Private Link, while my AWS and Google Cloud workspaces cannot. On those two, clusters reach the control plane through the NAT gateway or Cloud NAT instead, and I kept PrivateLink and Private Service Connect in the code behind a flag, off by default.&lt;/P&gt;&lt;DIV class=""&gt;&lt;H2&gt;What the repos look like&lt;/H2&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;Azure&lt;/STRONG&gt; (modules/adb_workspace_private/modules/workspace/main.tf) creates the workspace as an Azure resource and guards the design with preconditions:&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;resource&lt;/SPAN&gt; &lt;SPAN class=""&gt;"azurerm_databricks_workspace"&lt;/SPAN&gt; &lt;SPAN class=""&gt;"this"&lt;/SPAN&gt; {
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;name&lt;/SPAN&gt;                                  &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;workspace_name&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;resource_group_name&lt;/SPAN&gt;                   &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;data&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;azurerm_resource_group&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;this&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;name&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;location&lt;/SPAN&gt;                              &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;region&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;sku&lt;/SPAN&gt;                                   &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;pricing_tier&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;managed_resource_group_name&lt;/SPAN&gt;           &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;managed_resource_group_name&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;AWS&lt;/STRONG&gt; (modules/dbx_workspace_private/modules/workspace/main.tf) creates it from registered configurations:&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;credentials_id&lt;/SPAN&gt;             &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;credentials_id&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;storage_configuration_id&lt;/SPAN&gt;   &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;storage_configuration_id&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;network_id&lt;/SPAN&gt;                 &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;network_id&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;private_access_settings_id&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;private_access_settings_id&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;Google Cloud&lt;/STRONG&gt; (modules/dbx_workspace_private/modules/workspace/main.tf) points the workspace at a project and lets Databricks fill it:&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;  &lt;SPAN class=""&gt;cloud_resource_container&lt;/SPAN&gt; {
    &lt;SPAN class=""&gt;gcp&lt;/SPAN&gt; {
      &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;project_id&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;gcp_project_id&lt;/SPAN&gt;
    }
  }&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;The three blocks show the whole difference in creation path: a resource in your cloud, an assembly of registered parts, or a project that Databricks writes into.&lt;/P&gt;&lt;DIV class=""&gt;&lt;H2&gt;Easy to get wrong&lt;/H2&gt;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Azure subnet names.&lt;/STRONG&gt; The Terraform arguments are public_subnet_name and private_subnet_name, but with secure cluster connectivity neither subnet has public IPs. They are the host and container subnets, and both must be delegated to Microsoft.Databricks/workspaces.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Azure without NAT.&lt;/STRONG&gt; My Azure repo does not create a NAT gateway, so classic clusters have no outbound internet access and the validation notebook's internet check warns. If clusters need PyPI, Maven or external APIs, add an outbound path. A NAT gateway is a design choice, not a rule.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Google Cloud firewall.&lt;/STRONG&gt; Databricks does not create firewall rules in a customer-managed VPC. Without an intra-subnet ingress rule, cluster nodes cannot talk to each other. My repo creates db-&amp;lt;subnet&amp;gt;-ingress allowing all traffic from the node subnet.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Google Cloud network shape.&lt;/STRONG&gt; One regional subnet, no secondary ranges. Teams coming from GKE often add secondary ranges out of habit.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;IAM propagation.&lt;/STRONG&gt; Both AWS and Google Cloud reject a credential that is registered too early. My AWS module waits 60 seconds after creating the cross-account role before registering it, and the Google Cloud module waits for the storage credential's new service account before granting it bucket access.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;The AWS Unity Catalog role.&lt;/STRONG&gt; It trusts the Unity Catalog master role with an external ID that Databricks generates for the credential, and it must also trust itself. That forces an order: create the storage credential first (with validation skipped), then the role, then the external location.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Region alignment.&lt;/STRONG&gt; On all three, each workspace must be in the same region as the Unity Catalog metastore it is assigned to.&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&lt;H2&gt;Checklist&lt;/H2&gt;&lt;/DIV&gt;&lt;OL&gt;&lt;LI&gt;Write down the cloud boundary per environment: subscription and resource group, AWS account, or project.&lt;/LI&gt;&lt;LI&gt;Decide which identity creates workspaces and confirm it is a Databricks account admin where the account API is used.&lt;/LI&gt;&lt;LI&gt;On Google Cloud, separate the creator, the workspace service account and the storage credential's service account, and review the creator's project roles.&lt;/LI&gt;&lt;LI&gt;Size the network to the cloud's shape: two delegated subnets on Azure, subnets in at least two availability zones on AWS, one regional subnet on Google Cloud.&lt;/LI&gt;&lt;LI&gt;Decide the outbound path (NAT gateway, Cloud NAT, or none) based on what clusters must reach.&lt;/LI&gt;&lt;LI&gt;Keep data traffic private with a storage private endpoint, the S3 gateway endpoint or Private Google Access.&lt;/LI&gt;&lt;LI&gt;Check your Databricks pricing tier before planning private control plane connectivity.&lt;/LI&gt;&lt;LI&gt;Put the workspace and its metastore in the same region.&lt;/LI&gt;&lt;LI&gt;Add explicit waits for IAM propagation on AWS and Google Cloud.&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;&lt;H2&gt;Going deeper&lt;/H2&gt;&lt;/DIV&gt;&lt;P&gt;I wrote one article per cloud with the full deployment and verification:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Azure: [link to Azure article]&lt;/LI&gt;&lt;LI&gt;AWS: [link to AWS article]&lt;/LI&gt;&lt;LI&gt;Google Cloud: [link to GCP article]&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;These deployments are the infrastructure stage of a series in which I build one enterprise Databricks platform in public, from infrastructure to governance, data engineering and AI/BI.&lt;/P&gt;&lt;P&gt;The code for all three clouds: &lt;A href="https://github.com/DBxArchitectLab" target="_blank" rel="noopener"&gt;https://github.com/DBxArchitectLab&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Full walkthrough: &lt;A href="https://youtu.be/MaatDV7-SRU" target="_blank" rel="nofollow noopener"&gt;https://youtu.be/MaatDV7-SRU&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2026 11:16:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/databricks-on-azure-vs-aws-vs-google-cloud-what-actually-differs/m-p/177690#M1983</guid>
      <dc:creator>HongC</dc:creator>
      <dc:date>2026-11-26T11:16:31Z</dc:date>
    </item>
    <item>
      <title>What Is – a DBU? (The kWh on your Databricks bill)</title>
      <link>https://community.databricks.com/t5/community-articles/what-is-a-dbu-the-kwh-on-your-databricks-bill/m-p/177010#M1979</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If you're new to Databricks, or you've just started building dashboards or Genie Agents and someone asked what they'll cost, here's the simple version.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;SPAN&gt;The short answer&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;A &lt;/SPAN&gt;&lt;STRONG&gt;DBU (Databricks Unit)&lt;/STRONG&gt;&lt;SPAN&gt; is how Databricks measures the work your compute does. Think of it as the &lt;/SPAN&gt;&lt;STRONG&gt;kWh on your electricity bill&lt;/STRONG&gt;&lt;SPAN&gt;: it isn't money, it's what you used. You get to money by multiplying the units by a price.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;DBUs used × price per DBU = cost.&lt;/STRONG&gt;&lt;/P&gt;
&lt;H3&gt;&lt;SPAN&gt;How the meter works&lt;/SPAN&gt;&lt;/H3&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Bigger appliances use more per hour.&lt;/STRONG&gt;&lt;SPAN&gt; A bigger cluster or SQL warehouse burns more DBUs per hour than a small one, just like an oven uses more than a lamp.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;The meter only runs while something is on.&lt;/STRONG&gt;&lt;SPAN&gt; Usage is measured by the second while compute is running. That includes compute that's switched on but doing nothing, so auto-stop is your best friend.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Some appliances work harder but finish sooner.&lt;/STRONG&gt;&lt;SPAN&gt; On classic compute, Photon uses more DBUs per hour but often finishes the job faster, so the total can go down. Judge by the total, not the rate.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3&gt;&lt;SPAN&gt;Why the price per unit changes&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;Your energy supplier charges different rates for different tariffs. Databricks does the same. The price of one DBU depends on:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;What you're running.&lt;/STRONG&gt;&lt;SPAN&gt; Scheduled jobs, interactive notebooks, SQL warehouses, Genie and model serving each have their own rate. Running a scheduled job on an interactive cluster is like doing your laundry at peak rate.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Where you run it.&lt;/STRONG&gt;&lt;SPAN&gt; Cloud, region and plan all change the rate.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;So "1,000 DBUs" can be a small bill or a big one. It depends on which tariff they were on.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;SPAN&gt;From DBUs to dollars: a worked example&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;Take a team with one SQL warehouse behind their dashboards. &lt;/SPAN&gt;&lt;I&gt;&lt;SPAN&gt;(Illustrative numbers: use the pricing page or your own data for real ones.)&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;The warehouse uses &lt;/SPAN&gt;&lt;STRONG&gt;12 DBUs an hour&lt;/STRONG&gt;&lt;SPAN&gt; while it's on.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;It's left on &lt;/SPAN&gt;&lt;STRONG&gt;8 hours a day&lt;/STRONG&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;22 working days&lt;/STRONG&gt;&lt;SPAN&gt; a month.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI aria-level="1"&gt;&lt;STRONG&gt;12 × 8 × 22 = 2,112 DBUs&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;At an illustrative &lt;/SPAN&gt;&lt;STRONG&gt;$0.70 per DBU&lt;/STRONG&gt;&lt;SPAN&gt;, that's about &lt;/SPAN&gt;&lt;STRONG&gt;$1,480 a month at list price&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;Now set auto-stop to 10 minutes. If people actually use it about 3 hours a day:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI aria-level="1"&gt;&lt;STRONG&gt;12 × 3 × 22 = 792 DBUs ≈ $555 a month.&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Same dashboards, same users, about a third of the cost. Most early savings look like this: the meter runs less, not a cheaper rate.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To do the same sum on your real usage, &lt;/SPAN&gt;&lt;SPAN&gt;system.billing.usage&lt;/SPAN&gt;&lt;SPAN&gt; has the DBUs and &lt;/SPAN&gt;&lt;SPAN&gt;system.billing.list_prices&lt;/SPAN&gt;&lt;SPAN&gt; has the list rates:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;SELECT u.sku_name,

       ROUND(SUM(u.usage_quantity))                                    AS dbus,

       ROUND(SUM(u.usage_quantity * p.pricing.effective_list.default)) AS list_cost

FROM system.billing.usage u

JOIN system.billing.list_prices p

  ON  u.sku_name   = p.sku_name

  AND u.cloud      = p.cloud

  AND u.usage_unit = p.usage_unit

  AND u.usage_end_time &amp;gt;= p.price_start_time

  AND (p.price_end_time IS NULL OR u.usage_end_time &amp;lt; p.price_end_time)

WHERE u.usage_date &amp;gt;= current_date() - INTERVAL 30 DAYS

GROUP BY u.sku_name

ORDER BY list_cost DESC

LIMIT 10;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;That gives you your top 10 cost lines for the last 30 days, &lt;/SPAN&gt;&lt;STRONG&gt;at list price&lt;/STRONG&gt;&lt;SPAN&gt;. Which brings us to discounts.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;SPAN&gt;List price isn't your price: where discounts come in&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;The public price list is the "standard tariff". What you actually pay can be lower:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Commitment contracts.&lt;/STRONG&gt;&lt;SPAN&gt; Many organisations commit to a level of spend over one or more years in exchange for a lower rate per DBU, like a fixed-rate energy deal. The bigger and longer the commitment, the bigger the discount usually is.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Promotions.&lt;/STRONG&gt;&lt;SPAN&gt; Some products launch with a promotional rate for a limited period. Genie's billable usage, for example, currently carries a promotional discount.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Free allowances.&lt;/STRONG&gt;&lt;SPAN&gt; Some usage is free up to a limit, like Genie's 150 DBUs per person a month until 31 January 2027. It's still metered, so it shows up in your usage data. That's what lets you price it before it becomes billable.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Your cloud bill has its own discounts.&lt;/STRONG&gt;&lt;SPAN&gt; On classic compute, the machines underneath are billed by your cloud provider. Their reserved-instance or savings-plan discounts apply there, not to the DBUs.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;The practical rule:&lt;/STRONG&gt;&lt;SPAN&gt; the query above gives you list price. Your negotiated rate is in your contract, and your account team can confirm it. When you forecast for finance, show both, &lt;/SPAN&gt;&lt;STRONG&gt;list&lt;/STRONG&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;STRONG&gt;after discount&lt;/STRONG&gt;&lt;SPAN&gt;. A range is more honest than a single number, and finance will trust it more.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;SPAN&gt;What this means for dashboards and Genie&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;If you're building rather than paying the bill, two things to know:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Dashboards run on SQL warehouses.&lt;/STRONG&gt;&lt;SPAN&gt; Every refresh, filter and scheduled update uses warehouse DBUs. A dashboard nobody opens but that refreshes every hour still keeps the meter running. That's why retiring unused dashboards and Genie Agents is a cost lever, not just tidying up: see &lt;/SPAN&gt;&lt;A href="https://community.databricks.com/t5/warehousing-analytics/how-to-retire-genie-agents-and-dashboards-nobody-uses-so-you-can/td-p/174786" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to retire Genie Agents and dashboards nobody uses&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Genie is metered per user.&lt;/STRONG&gt;&lt;SPAN&gt; Each question uses DBUs, and the free allowance covers each person up to a limit. To forecast what that becomes after the free period, see &lt;/SPAN&gt;&lt;A href="https://community.databricks.com/t5/generative-ai/how-to-size-your-genie-bill-genie-agent-genie-code-before-the/td-p/175617" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to size your Genie bill before the free period ends&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3&gt;&lt;SPAN&gt;Three gotchas&lt;/SPAN&gt;&lt;/H3&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;DBUs aren't always the whole bill.&lt;/STRONG&gt;&lt;SPAN&gt; On classic compute you also pay your cloud provider for the machines, like paying rent separately from electricity. Serverless is more like an all-inclusive apartment: the compute is in the DBU price.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Idle isn't free.&lt;/STRONG&gt;&lt;SPAN&gt; A warehouse or cluster that's on but unused still burns DBUs. Auto-stop is the single cheapest fix.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Rates differ by product, so totals mislead.&lt;/STRONG&gt;&lt;SPAN&gt; 1,000 jobs DBUs and 1,000 serverless SQL DBUs are different amounts of money. Always multiply by the rate before you compare.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3&gt;&lt;SPAN&gt;Where to go next&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;If system tables are new to you, start with &lt;/SPAN&gt;&lt;A href="https://community.databricks.com/t5/warehousing-analytics/what-is-a-system-table-your-databricks-bank-statement/td-p/173619" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;What Is – a system table? (Your Databricks bank statement)&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;SPAN&gt;Why it matters&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;Once a team stops reading DBUs as dollars and starts asking "which tariff, which appliance, how long was it on, and what's our rate?", cost conversations get a lot shorter. And the fixes get obvious: switch things off, use the right compute for the job, and size to the work.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2026 18:15:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/what-is-a-dbu-the-kwh-on-your-databricks-bill/m-p/177010#M1979</guid>
      <dc:creator>Valeria_Koz_DBX</dc:creator>
      <dc:date>2026-11-19T18:15:31Z</dc:date>
    </item>
    <item>
      <title>Your Lakeflow Connect Table Is a Replica, Not a Ledger</title>
      <link>https://community.databricks.com/t5/community-articles/your-lakeflow-connect-table-is-a-replica-not-a-ledger/m-p/177399#M1976</link>
      <description>&lt;P&gt;By&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/132044"&gt;@ozaaditya&lt;/a&gt;&amp;nbsp;&amp;nbsp;in collaboration with&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/85833"&gt;@sridharplv&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;Most medallion designs I've reviewed rest on one quiet assumption: bronze remembers. Silver can be rebuilt and gold can be recomputed, because somewhere upstream there's a table holding everything that ever arrived. Databricks' own full-refresh guidance leans on exactly this idea. Land raw data in a bronze streaming table and keep its types flexible, and downstream tables can be refreshed against it while bronze never needs a refresh itself.&lt;/P&gt;&lt;P&gt;Then you adopt Lakeflow Connect, and bronze becomes a set of destination tables created and maintained by a managed connector. They're good tables: governed, incremental, low effort. But the connector decides what's in them, and under well-defined conditions it's entitled to throw the contents away and take a fresh snapshot.&lt;BR /&gt;So the question I think every team should ask, and few do, is simple. If bronze can be re-snapshotted, where does history actually live?&lt;/P&gt;&lt;P&gt;This post is my attempt at an answer. It isn't a setup guide; there are plenty of those already. It's about a design decision that's easy to miss until the day an auditor asks for last quarter's version of a customer record.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The re-snapshot is not an edge case:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;A full refresh of a managed ingestion table clears its data and state and reprocesses the source (docs). For a database connector, what comes back is the source's current state plus whatever changes follow. Every intermediate state the source went through before the refresh is gone from that table.&lt;/P&gt;&lt;P&gt;If you turned on the connector's own history tracking (SCD type 2), that goes too. The history tracking page says it plainly: a full refresh replaces the table, removes previous row versions, and history starts again from the refresh point.&lt;/P&gt;&lt;P&gt;To be clear, this isn't a bug. It's exactly what a replica should do. The problem only appears when we treat a replica as if it were a ledger.&lt;/P&gt;&lt;P&gt;How often does a refresh actually happen? More often than you'd think, because the triggers come from quite different places. When I went through the connector docs, they fell into these groups:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE width="602"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="167"&gt;&lt;P&gt;&lt;STRONG&gt;Where the refresh comes from&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="435"&gt;&lt;P&gt;&lt;STRONG&gt;Examples (connector-specific, so check yours)&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="167"&gt;&lt;P&gt;Someone on your team&lt;/P&gt;&lt;/TD&gt;&lt;TD width="435"&gt;&lt;P&gt;A manual refresh to fix data. Adding a column that was previously excluded also needs a refresh to backfill its history.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="167"&gt;&lt;P&gt;A policy you enabled&lt;/P&gt;&lt;/TD&gt;&lt;TD width="435"&gt;&lt;P&gt;The &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/ingestion/lakeflow-connect/full-refresh" target="_blank" rel="noopener"&gt;auto full refresh policy&lt;/A&gt; reacts to table truncates, incompatible type changes, column renames and new columns with defaults.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="167"&gt;&lt;P&gt;A break in source continuity&lt;/P&gt;&lt;/TD&gt;&lt;TD width="435"&gt;&lt;P&gt;A stopped SQL Server gateway can lose changes to log retention. An Availability Group failover under change tracking forces a refresh of every table in the pipeline (&lt;A href="https://docs.databricks.com/ingestion/lakeflow-connect/sql-server-limits" target="_blank" rel="noopener"&gt;SQL Server limitations&lt;/A&gt;).&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="167"&gt;&lt;P&gt;A cursor that expired&lt;/P&gt;&lt;/TD&gt;&lt;TD width="435"&gt;&lt;P&gt;Gmail's history cursor lasts about seven days. Run the pipeline less often than that and the connector falls back to a full refresh (&lt;A href="https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/gmail-limits" target="_blank" rel="noopener"&gt;Gmail limitations&lt;/A&gt;).&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="167"&gt;&lt;P&gt;Changes the connector can't see incrementally&lt;/P&gt;&lt;/TD&gt;&lt;TD width="435"&gt;&lt;P&gt;Salesforce hard deletes, and deletes purged from the recycle bin before the next sync, only show up after a full refresh (&lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/salesforce-limits" target="_blank" rel="noopener"&gt;Salesforce limitations&lt;/A&gt;).&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="167"&gt;&lt;P&gt;The connector's design&lt;/P&gt;&lt;/TD&gt;&lt;TD width="435"&gt;&lt;P&gt;Smartsheet report tables are fully refreshed on every run (&lt;A href="https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/smartsheet-limits" target="_blank" rel="noopener"&gt;Smartsheet limitations&lt;/A&gt;).&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Two things in that table bother me as an architect.&lt;/P&gt;&lt;P&gt;First, several of these triggers are outside the data team's control. A DBA failover or a source schema change can start a re-snapshot of a table your finance marts depend on.&lt;/P&gt;&lt;P&gt;Second, auto full refresh is a double-edged feature. Operationally it's great, because an incident heals itself overnight. But it also means an event that destroys history can now happen with nobody in the loop. The only built-in brake is min_interval_hours, which defaults to 24.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What downstream sees when it happens:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The impact depends almost entirely on how your downstream pipelines read the connector table. Each common pattern fails in its own way, and that's the part I see underestimated most.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE width="602"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="143"&gt;&lt;P&gt;&lt;STRONG&gt;How downstream reads the table&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="213"&gt;&lt;P&gt;&lt;STRONG&gt;Normal day&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="245"&gt;&lt;P&gt;&lt;STRONG&gt;The day the table is re-snapshotted&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="143"&gt;&lt;P&gt;Plain streaming read&lt;/P&gt;&lt;/TD&gt;&lt;TD width="213"&gt;&lt;P&gt;Fails the first time the connector applies an update or delete. Connector tables are mutable, and &lt;A href="https://docs.databricks.com/aws/en/structured-streaming/delta-lake" target="_blank" rel="noopener"&gt;Structured Streaming only accepts appends&lt;/A&gt;.&lt;/P&gt;&lt;/TD&gt;&lt;TD width="245"&gt;&lt;P&gt;Never worked in the first place.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="143"&gt;&lt;P&gt;skipChangeCommits&lt;/P&gt;&lt;/TD&gt;&lt;TD width="213"&gt;&lt;P&gt;Runs, but quietly ignores every update and delete.&lt;/P&gt;&lt;/TD&gt;&lt;TD width="245"&gt;&lt;P&gt;Keeps running and stays quietly wrong. For CDC sources, this is the option I'd ban.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="143"&gt;&lt;P&gt;Change data feed into AUTO CDC (SCD2)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="213"&gt;&lt;P&gt;Correct and incremental. The right tool for row-level history.&lt;/P&gt;&lt;/TD&gt;&lt;TD width="245"&gt;&lt;P&gt;The stream's position no longer matches the refreshed table, so you need a recovery procedure. Also check delete semantics: Salesforce documents that under SCD1, deletes don't appear as explicit delete events in the change feed.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="143"&gt;&lt;P&gt;Materialized views&lt;/P&gt;&lt;/TD&gt;&lt;TD width="213"&gt;&lt;P&gt;Recompute when inputs change. Simple and correct for current state.&lt;/P&gt;&lt;/TD&gt;&lt;TD width="245"&gt;&lt;P&gt;Recompute again. Fine, because they never held history.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="143"&gt;&lt;P&gt;AUTO CDC FROM SNAPSHOT (SCD2)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="213"&gt;&lt;P&gt;Reads the replica in batch each run and compares it with the last snapshot.&lt;/P&gt;&lt;/TD&gt;&lt;TD width="245"&gt;&lt;P&gt;Keeps working, because there's no streaming checkpoint on the source to invalidate. A &lt;A href="https://github.com/rsleedbx/databricks-agent-skills-tests/pull/59" target="_blank" rel="noopener"&gt;public test&lt;/A&gt; of this exact case on SQL Server reported no spurious versions through a full refresh.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="143"&gt;&lt;P&gt;The connector's own SCD2&lt;/P&gt;&lt;/TD&gt;&lt;TD width="213"&gt;&lt;P&gt;History lives inside the replica.&lt;/P&gt;&lt;/TD&gt;&lt;TD width="245"&gt;&lt;P&gt;Erased.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Once you lay it out like this, the pattern is hard to miss. Anything that keeps history inside the connector table, or tracks its position in that table, inherits the table's refresh behaviour. Anything that treats the table as a series of observed states, read in batch and compared, is insulated from it.&lt;/P&gt;&lt;P&gt;Separate the replica from the ledger&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The rule I'd build around is short:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The connector owns the replica. The platform owns the ledger. Nothing the connector does should be able to refresh the ledger.&lt;/P&gt;&lt;P&gt;In practice, that means a history zone sitting between the connector's destination schema and your silver layer. Your own pipeline populates it, and the tables in it are protected with the pipelines.reset.allowed = false table property (docs). That property blocks full refreshes but still allows incremental writes, which is exactly the behaviour you want from a ledger.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="figure1_architecture.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33660iE73F6445653A7928/image-size/large?v=v2&amp;amp;px=999" role="button" title="figure1_architecture.png" alt="figure1_architecture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;A couple of notes on the picture.&lt;/P&gt;&lt;P&gt;The gateway and staging volume belong to the gateway-based database architecture. &lt;A href="https://docs.databricks.com/aws/en/security/network/onprem/lakeflow-connect" target="_blank" rel="noopener"&gt;Integrated CDC&lt;/A&gt;, currently Beta for SQL Server and Oracle, folds extraction and apply into one pipeline, but the replica behaves the same way.&lt;/P&gt;&lt;P&gt;And don't count on the staging volume as a safety net. It's temporary storage, and data in it is purged after 30 days (&lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/cdc-overview" target="_blank" rel="noopener"&gt;database connector docs&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H1&gt;Deciding table by table&lt;/H1&gt;&lt;P&gt;Not every table needs a ledger, and building one everywhere is just a different mistake. The question I'd put to the business owner of each table is blunt: what do you lose if this table's past disappears tonight?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="figure2_decision_flow.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33661i115E7AF7F8E65B5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="figure2_decision_flow.png" alt="figure2_decision_flow.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;TABLE width="602"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100"&gt;&lt;P&gt;&lt;STRONG&gt;Class&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;&lt;STRONG&gt;Typical tables&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="143"&gt;&lt;P&gt;&lt;STRONG&gt;Route&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="113"&gt;&lt;P&gt;&lt;STRONG&gt;Refresh stance&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="128"&gt;&lt;P&gt;&lt;STRONG&gt;What you give up&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100"&gt;&lt;P&gt;A: current state only&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Reference data, lookups, operational dashboards&lt;/P&gt;&lt;/TD&gt;&lt;TD width="143"&gt;&lt;P&gt;Read the replica directly; materialized views downstream&lt;/P&gt;&lt;/TD&gt;&lt;TD width="113"&gt;&lt;P&gt;Auto full refresh is fine&lt;/P&gt;&lt;/TD&gt;&lt;TD width="128"&gt;&lt;P&gt;Nothing important&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100"&gt;&lt;P&gt;B: as-of history&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Customer attributes, price lists, account owners&lt;/P&gt;&lt;/TD&gt;&lt;TD width="143"&gt;&lt;P&gt;AUTO CDC FROM SNAPSHOT (SCD2) into the history zone&lt;/P&gt;&lt;/TD&gt;&lt;TD width="113"&gt;&lt;P&gt;Let the replica refresh; the ledger is insulated&lt;/P&gt;&lt;/TD&gt;&lt;TD width="128"&gt;&lt;P&gt;History is only as fine-grained as your schedule, and every run scans the whole table&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100"&gt;&lt;P&gt;C: every change matters&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Order lifecycle, postings, audit trails&lt;/P&gt;&lt;/TD&gt;&lt;TD width="143"&gt;&lt;P&gt;Change feed into AUTO CDC (SCD2), plus a written recovery runbook&lt;/P&gt;&lt;/TD&gt;&lt;TD width="113"&gt;&lt;P&gt;Manual, windowed refreshes; auto refresh off for these tables&lt;/P&gt;&lt;/TD&gt;&lt;TD width="128"&gt;&lt;P&gt;More engineering and operating effort, and a continuity break still leaves a gap&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100"&gt;&lt;P&gt;nice to have&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Exploratory or low-stakes tables&lt;/P&gt;&lt;/TD&gt;&lt;TD width="143"&gt;&lt;P&gt;The connector's own SCD2&lt;/P&gt;&lt;/TD&gt;&lt;TD width="113"&gt;&lt;P&gt;Accept that a refresh erases it&lt;/P&gt;&lt;/TD&gt;&lt;TD width="128"&gt;&lt;P&gt;Durability&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Three caveats keep this framework honest.&lt;/P&gt;&lt;P&gt;Class C has a ceiling. If the source's change log was truncated before the connector read it, those changes are gone, and no downstream design brings them back. When every change really matters, the most durable history is usually the one the source system already keeps. Ingest its audit or history tables as ordinary data and treat the replica as a convenience. That's a conversation with the source-system owner, not a pipeline setting, and in my view it's the most valuable thing an architect can bring to this decision.&lt;/P&gt;&lt;P&gt;Class B has a cost dimension. Comparing snapshots means scanning the whole replica each run. The &lt;A href="https://github.com/rsleedbx/databricks-agent-skills-tests/pull/59" target="_blank" rel="noopener"&gt;public test&lt;/A&gt; I mentioned kept the change-feed route specifically for tables too large to scan every time. So size the decision against volume as well as importance.&lt;/P&gt;&lt;P&gt;Classification is per table, not per source. One SQL Server database will easily contain all four classes. Conveniently, the &lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/sql-server-pipeline" target="_blank" rel="noopener"&gt;pipeline spec&lt;/A&gt; supports table-level table_configuration overrides, so the policy can follow the classification.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H1&gt;A worked example&lt;/H1&gt;&lt;P&gt;Picture a retailer ingesting from two sources:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A SQL Server ERP through the gateway-based connector, covering customers, price_list, sales_order_header and a large inventory_snapshot.&lt;/LI&gt;&lt;LI&gt;Salesforce, covering Account and Opportunity.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here's how the classification might go:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;inventory_snapshot is Class A. Only current stock matters operationally.&lt;/LI&gt;&lt;LI&gt;customers and price_list are Class B. Finance needs "what was the price on the invoice date", not every intermediate edit.&lt;/LI&gt;&lt;LI&gt;sales_order_header is Class C, because status transitions drive revenue recognition. The team also asks the ERP owner whether an order-status audit table already exists.&lt;/LI&gt;&lt;LI&gt;Opportunity is Class B with one caveat. Hard deletes in Salesforce only arrive with a refresh, so the ledger will record those deletions late.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The ingestion pipeline turns that policy into configuration. Auto full refresh is on by default, switched off for the Class C table, and snapshots are pushed into a weekend window (&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/ingestion/lakeflow-connect/full-refresh" target="_blank" rel="noopener"&gt;refresh window docs)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;resources:
  pipelines:
    erp_ingestion:
      name: 'lfc-erp-ingestion-${bundle.target}'
      serverless: true
      catalog: ${var.dest_catalog}
      schema: ${var.dest_schema}
      ingestion_definition:
        ingestion_gateway_id: ${resources.pipelines.erp_gateway.id}
        table_configuration:
          scd_type: 'SCD_TYPE_1'
          auto_full_refresh_policy:
            enabled: true
            min_interval_hours: 24
        full_refresh_window:
          start_hour: 2
          days_of_week:
            - SATURDAY
            - SUNDAY
          time_zone_id: 'Asia/Kolkata'
        objects:
          - table:
              source_catalog: ${var.source_database}
              source_schema: dbo
              source_table: sales_order_header
              destination_catalog: ${var.dest_catalog}
              destination_schema: ${var.dest_schema}
              table_configuration:
                auto_full_refresh_policy:
                  enabled: false
          # remaining tables inherit the pipeline-level policy&lt;/LI-CODE&gt;&lt;P&gt;The Class B ledger lives in a separate pipeline the platform team owns. It reads the replica as a periodic snapshot using &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/ldp/developer/ldp-python-ref-apply-changes-from-snapshot" target="_blank" rel="noopener"&gt;create_auto_cdc_from_snapshot_flow&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from pyspark import pipelines as dp
 
dp.create_streaming_table(
    name="customers_history",
    comment="Platform-owned SCD2 ledger of ERP customers.",
    table_properties={"pipelines.reset.allowed": "false"},
)
 
dp.create_auto_cdc_from_snapshot_flow(
    target="customers_history",
    source="erp_bronze.dbo_replica.customers",
    keys=["customer_id"],
    stored_as_scd_type=2,
)&lt;/LI-CODE&gt;&lt;P&gt;Two design choices matter more than the code itself.&lt;/P&gt;&lt;P&gt;Chain the pipelines; don't schedule them independently. Run the history pipeline as a task that depends on the ingestion task in the same Lakeflow Job. Here's why:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;For database connectors, the &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/ingestion/lakeflow-connect/full-refresh" target="_blank" rel="noopener"&gt;docs&lt;/A&gt; describe the refresh as effectively atomic. The old data stays queryable until the snapshot is applied in a single update.&lt;/LI&gt;&lt;LI&gt;That guarantee is written up for database connectors only, though. The docs also warn that interrupted refresh retries can leave tables partially loaded.&lt;/LI&gt;&lt;LI&gt;A snapshot comparison that happens to read a half-loaded replica would record a wave of deletions in your ledger.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Running the tasks in sequence removes the timing risk. A lightweight gate in front of the history task, such as a row-count sanity check that skips the run on an implausible drop, removes most of what's left.&lt;/P&gt;&lt;P&gt;Protect the ledger, not the replica. The reset-protection property belongs on the history tables. The replica should stay freely refreshable, because refreshing is how the connector heals itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H1&gt;Running it in production&lt;/H1&gt;&lt;P&gt;Make refreshes visible. Every full refresh of a Class B or C source table should raise an alert and leave a note in an operations log. The pipeline event log and update history are the obvious places to watch, and there's dedicated freshness monitoring for CDC tables. Build the alert on whichever signal you've confirmed in your own workspace.&lt;/P&gt;&lt;P&gt;Write the Class C runbook before you need it. It should answer four questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Who approves a refresh?&lt;/LI&gt;&lt;LI&gt;How do you measure the gap between the last applied change and the refresh point?&lt;/LI&gt;&lt;LI&gt;How do you recover the change-feed consumer?&lt;/LI&gt;&lt;LI&gt;How do you tell finance which period's history is incomplete?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Rehearse refreshes on purpose. In staging, trigger a manual refresh and at least one auto refresh caused by a schema change. Then check that the ledger doesn't show any phantom closures. Databricks' &lt;A href="https://docs.databricks.com/aws/en/ldp/full-refresh-st" target="_blank" rel="noopener"&gt;own guidance&lt;/A&gt; recommends testing refreshes outside production and documenting the downstream dependencies; the ledger is what makes that second part manageable.&lt;/P&gt;&lt;P&gt;Treat schedules as a correctness control. A Gmail pipeline that runs less often than its cursor lasts triggers its own refreshes. A SQL Server gateway paused "just for a while" can lose changes to log retention. Run cadence and gateway uptime aren't only cost levers; they protect your data.&lt;/P&gt;&lt;P&gt;Don't lean on time travel. Delta time travel is limited by retention and VACUUM, and it's tied to the very table that gets refreshed. It's useful for recovery, but it isn't a ledger.&lt;/P&gt;&lt;P&gt;Budget for the ledger honestly. Snapshot comparison costs a full scan per run. The change-feed route costs engineering and on-call effort. Both are cheaper than explaining to an auditor why last quarter's customer segmentation can't be reproduced.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H1&gt;When not to bother&lt;/H1&gt;&lt;P&gt;Please don't build a history zone for Class A tables just because the pattern is tidy. In most estates, the majority of ingested tables are current-state lookups, and a ledger for them is pure cost.&lt;/P&gt;&lt;P&gt;And if the source already provides authoritative history, use it. ERP audit tables and Salesforce field history objects ingested as data are good examples. Rebuilding that history from the replica would be duplicate effort.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H1&gt;What I'd want an architect to take away&lt;/H1&gt;&lt;UL&gt;&lt;LI&gt;A managed connector's destination table is a replica, and the connector may replace its contents. Some of the triggers aren't yours to control.&lt;/LI&gt;&lt;LI&gt;History stored inside the replica, or tied to a streaming position in it, inherits its refresh behaviour.&lt;/LI&gt;&lt;LI&gt;Batch snapshot comparison tolerates refreshes naturally. The change feed is more precise but needs a recovery plan.&lt;/LI&gt;&lt;LI&gt;Decide table by table, and let the pipeline spec's table-level overrides carry the decision.&lt;/LI&gt;&lt;LI&gt;skipChangeCommits on a CDC replica is a correctness bug, not a tuning choice.&lt;/LI&gt;&lt;LI&gt;When every change matters, the most reliable history is usually the one the source keeps.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Lakeflow Connect takes a lot of work off our plates: extraction, cursors, retries, schema drift. That's the point of it. But automating ingestion also moves the line of responsibility. The connector now guarantees a faithful present, and nobody guarantees the past unless you decide someone should.&lt;/P&gt;&lt;P&gt;A replica can always be rebuilt. A ledger only exists if someone chose to keep one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H1&gt;Credit where it's due&lt;/H1&gt;&lt;P&gt;This post builds on several community discussions and one public test repository:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The &lt;A href="https://community.databricks.com/t5/data-engineering/operationalizing-lakeflow-connect-handling-upstream-schema/td-p/169738" target="_blank" rel="noopener"&gt;Operationalizing Lakeflow Connect&lt;/A&gt; thread, on history erasure and testing downstream recovery.&lt;/LI&gt;&lt;LI&gt;The &lt;A href="https://community.databricks.com/t5/data-engineering/incremental-load-issue-with-sdp/td-p/167891" target="_blank" rel="noopener"&gt;incremental load with SDP&lt;/A&gt; thread, on reading the change feed from mutable bronze tables.&lt;/LI&gt;&lt;LI&gt;The &lt;A href="https://community.databricks.com/t5/data-engineering/architecture-advice-dlt-strategy-for-daily-snapshots-to-scd2/m-p/150318" target="_blank" rel="noopener"&gt;daily snapshots to SCD2&lt;/A&gt; thread, on pipelines.reset.allowed.&lt;/LI&gt;&lt;LI&gt;The &lt;A href="https://github.com/rsleedbx/databricks-agent-skills-tests/pull/59" target="_blank" rel="noopener"&gt;rsleedbx test PR&lt;/A&gt;, which tested AUTO CDC FROM SNAPSHOT through a full refresh.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H1&gt;References&lt;/H1&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/" target="_blank" rel="noopener"&gt;Lakeflow Connect connector concepts&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/cdc-overview" target="_blank" rel="noopener"&gt;Managed database connectors&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/ingestion/lakeflow-connect/full-refresh" target="_blank" rel="noopener"&gt;Fully refresh target tables (window, auto policy, CDC behaviour)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/ingestion/lakeflow-connect/scd" target="_blank" rel="noopener"&gt;Enable history tracking (SCD type 2)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/sql-server-pipeline" target="_blank" rel="noopener"&gt;Ingest data from SQL Server&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/ingestion/lakeflow-connect/sql-server-limits" target="_blank" rel="noopener"&gt;SQL Server connector limitations&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/salesforce-limits" target="_blank" rel="noopener"&gt;Salesforce connector limitations&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/gmail-limits" target="_blank" rel="noopener"&gt;Gmail connector limitations&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/smartsheet-limits" target="_blank" rel="noopener"&gt;Smartsheet connector limitations&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/ldp/full-refresh-st" target="_blank" rel="noopener"&gt;Full refresh for streaming tables&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/structured-streaming/delta-lake" target="_blank" rel="noopener"&gt;Delta Lake table streaming reads and writes&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/ldp/developer/ldp-python-ref-apply-changes-from-snapshot" target="_blank" rel="noopener"&gt;create_auto_cdc_from_snapshot_flow reference&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/ldp/updates" target="_blank" rel="noopener"&gt;Run a pipeline update (pipelines.reset.allowed)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/security/network/onprem/lakeflow-connect" target="_blank" rel="noopener"&gt;Ingest on-premises data with Lakeflow Connect (integrated CDC)&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 24 Nov 2026 07:37:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/your-lakeflow-connect-table-is-a-replica-not-a-ledger/m-p/177399#M1976</guid>
      <dc:creator>ozaaditya</dc:creator>
      <dc:date>2026-11-24T07:37:12Z</dc:date>
    </item>
    <item>
      <title>Parameterised metric views in Excel: what the Databricks Add-in can and can't do (Nov 2026)</title>
      <link>https://community.databricks.com/t5/community-articles/parameterised-metric-views-in-excel-what-the-databricks-add-in/m-p/176554#M1975</link>
      <description>&lt;DIV class=""&gt;&lt;H1 id="parameterised-metric-views-in-excel-what-the-databricks-excel-add-in-can-and-cant-do-today-nov-2026"&gt;Parameterised metric views in Excel: what the Databricks Excel Add-in can and can't do today (Nov 2026)&lt;/H1&gt;&lt;P&gt;&lt;EM&gt;Drafted with AI assistance. Every result below was reproduced by hand on 2026-11-16 and checked against plain SQL on samples.tpch.orders.&lt;/EM&gt;&lt;/P&gt;&lt;H2 id="tldr"&gt;TL;DR&lt;/H2&gt;&lt;P&gt;I tested a Unity Catalog metric view &lt;STRONG&gt;with parameters&lt;/STRONG&gt; from the Databricks Excel Add-in.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Write SQL&lt;/STRONG&gt; lets you bind parameters to Excel cells: change a cell, refresh, get new numbers.&lt;/LI&gt;&lt;LI&gt;The &lt;STRONG&gt;DATABRICKS.SQL formula&lt;/STRONG&gt; does the same and recalculates live, but returns text.&lt;/LI&gt;&lt;LI&gt;The &lt;STRONG&gt;Select data pivot builder has no way to pass parameters&lt;/STRONG&gt;, so it always runs on the defaults. It also caps results at 1,000 rows by default, with no warning.&lt;/LI&gt;&lt;/UL&gt;&lt;H2 id="which-route"&gt;Which route?&lt;/H2&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s0-decision-flow.png" style="width: 747px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33394i38FF528CA3FE2CFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="s0-decision-flow.png" alt="s0-decision-flow.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Which route to take, depending on whether users need to change parameter values and how.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;A &lt;EM&gt;wrapper view per scenario&lt;/EM&gt; is a plain SQL view that calls the metric view with fixed arguments, so pivot users get a parameter-free object per scenario.&lt;/P&gt;&lt;H2 id="setup"&gt;Setup&lt;/H2&gt;Item Value &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Source&lt;/TD&gt;&lt;TD&gt;samples.tpch.orders (7.5M rows, available in every workspace)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Compute&lt;/TD&gt;&lt;TD&gt;Serverless SQL warehouse, DBSQL 2026.45 (querying a parameterised metric view needs Databricks Runtime 18.2 or above)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Client&lt;/TD&gt;&lt;TD&gt;Excel for Mac 16.114.4, Databricks Excel Add-in&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Reference&lt;/TD&gt;&lt;TD&gt;Plain SQL on the source table, so every Excel result can be checked&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;H2 id="the-demo-metric-view"&gt;The demo metric view&lt;/H2&gt;&lt;P&gt;Two parameters and a validation filter. Full DDL in Appendix A.&lt;/P&gt;Parameter Type Default Used in &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;p_discount&lt;/TD&gt;&lt;TD&gt;DOUBLE&lt;/TD&gt;&lt;TD&gt;0.15&lt;/TD&gt;&lt;TD&gt;net_revenue measure; rejected outside 0 to 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;p_from_date&lt;/TD&gt;&lt;TD&gt;DATE&lt;/TD&gt;&lt;TD&gt;1995-01-01&lt;/TD&gt;&lt;TD&gt;view filter on o_orderdate&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Measures: order_count, gross_revenue, net_revenue. Fields: order_priority, order_status, order_date, order_year, customer_key.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s8-view-definition.png" style="width: 981px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33395iA37CE30FC2B47CC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="s8-view-definition.png" alt="s8-view-definition.png" /&gt;&lt;/span&gt;&lt;P&gt;&lt;EM&gt;The view in Catalog Explorer (Details tab): the two parameters with defaults, and the validation filter that calls raise_error. Catalog Explorer renders the fields: block as dimensions:; both keys are accepted (dimensions is the backward-compatible synonym).&lt;/EM&gt;&lt;/P&gt;&lt;H2 id="route-1-select-data-pivot"&gt;Route 1: Select data (pivot)&lt;/H2&gt;&lt;P&gt;&lt;STRONG&gt;Steps:&lt;/STRONG&gt; New import → &lt;EM&gt;Select data&lt;/EM&gt; → pick the view → for a metric view the add-in opens the pivot builder directly (for a table you tick &lt;EM&gt;Pivot Data&lt;/EM&gt; first) → Rows order_priority, Values order_count, gross_revenue, net_revenue → Save and import.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s1-pivot-builder.png" style="width: 768px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33396iC6C9D1C9442E439E/image-size/large?v=v2&amp;amp;px=999" role="button" title="s1-pivot-builder.png" alt="s1-pivot-builder.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Select data on the demo view. Fields, measures, Rows and Values, Live query, and a row limit set to 1000 by default. There is nowhere to enter p_discount or p_from_date.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What happens&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The metric view's measures work as pivot values. The docs say the headers may read Sum(measure); in my run they showed the plain measure names. Either way no extra aggregation happens.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;There is no field for parameters&lt;/STRONG&gt; (pivot builder, filters panel, ⋮ menus). The defaults apply: discount 0.15, from 1995-01-01.&lt;/LI&gt;&lt;LI&gt;Cell-bound &lt;STRONG&gt;filters&lt;/STRONG&gt; work and re-query on refresh. A filter on a column that is derived from a parameter does not change the parameter.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Reference values from plain SQL on samples.tpch.orders (discount 0.15, from 1995-01-01):&lt;/P&gt;order_priority orders gross_revenue net_revenue &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1-URGENT&lt;/TD&gt;&lt;TD&gt;817,013&lt;/TD&gt;&lt;TD&gt;123,486,712,128.42&lt;/TD&gt;&lt;TD&gt;104,963,705,309.16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2-HIGH&lt;/TD&gt;&lt;TD&gt;816,819&lt;/TD&gt;&lt;TD&gt;123,456,065,747.72&lt;/TD&gt;&lt;TD&gt;104,937,655,885.56&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3-MEDIUM&lt;/TD&gt;&lt;TD&gt;815,382&lt;/TD&gt;&lt;TD&gt;123,175,438,745.16&lt;/TD&gt;&lt;TD&gt;104,699,122,933.39&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4-NOT SPECIFIED&lt;/TD&gt;&lt;TD&gt;817,797&lt;/TD&gt;&lt;TD&gt;123,598,232,983.94&lt;/TD&gt;&lt;TD&gt;105,058,498,036.35&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5-LOW&lt;/TD&gt;&lt;TD&gt;816,279&lt;/TD&gt;&lt;TD&gt;123,235,562,195.73&lt;/TD&gt;&lt;TD&gt;104,750,227,866.37&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The Excel pivot below matches all five rows to the cent.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s2-pivot-result.png" style="width: 722px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33397i9994FBC06D2A8F63/image-size/large?v=v2&amp;amp;px=999" role="button" title="s2-pivot-result.png" alt="s2-pivot-result.png" /&gt;&lt;/span&gt;The imported pivot on the defaults (discount 0.15, from 1995-01-01). Numbers shown with the Excel locale's decimal comma.&lt;/EM&gt;&lt;/P&gt;&lt;H3 id="the-silent-row-cap"&gt;The silent row cap&lt;/H3&gt;&lt;P&gt;The pivot's generated SQL ends in GROUP BY ALL LIMIT 1000. With Rows order_date (1,310 distinct dates from 1995) the import lands exactly 1,000 rows and shows no warning. There is no ORDER BY, so the 1,000 rows kept are an arbitrary subset, not the first or last 1,000 days. In my run the sheet started at 1995-01-03 and ended at 1998-08-02, so 310 of the 1,310 days were silently missing. The Row limit is editable (default 1,000); raising it removes the cut.&lt;/P&gt;&lt;P&gt;Guardrail: set the Row limit above the expected row count and compare the grand total with a SQL total (reference: 1,310 days, 616,952,011,800.97 gross).&lt;/P&gt;&lt;H2 id="route-2-write-sql-with-cell-bound-parameters"&gt;Route 2: Write SQL with cell-bound parameters&lt;/H2&gt;&lt;P&gt;&lt;STRONG&gt;Steps:&lt;/STRONG&gt; New import → &lt;EM&gt;Write SQL&lt;/EM&gt; → paste the query → &lt;STRONG&gt;+Add&lt;/STRONG&gt; one parameter per :marker (name without the colon) → click the value box → the arrow button → pick the cell → Preview → Save and import.&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;SELECT&lt;/SPAN&gt; order_priority,&lt;/SPAN&gt;
&lt;SPAN&gt;       MEASURE(order_count)   &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; orders,&lt;/SPAN&gt;
&lt;SPAN&gt;       MEASURE(gross_revenue) &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; gross_revenue,&lt;/SPAN&gt;
&lt;SPAN&gt;       MEASURE(net_revenue)   &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; net_revenue&lt;/SPAN&gt;
&lt;SPAN&gt;&lt;SPAN class=""&gt;FROM&lt;/SPAN&gt;   &lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;catalog&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;.&lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;schema&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;.metric_tpch_orders_param_demo&lt;/SPAN&gt;
&lt;SPAN&gt;       (p_discount  &lt;SPAN class=""&gt;=&amp;gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;CAST&lt;/SPAN&gt;(&lt;SPAN class=""&gt;REPLACE&lt;/SPAN&gt;(&lt;SPAN class=""&gt;:discount&lt;/SPAN&gt;, &lt;SPAN class=""&gt;','&lt;/SPAN&gt;, &lt;SPAN class=""&gt;'.'&lt;/SPAN&gt;) &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; &lt;SPAN class=""&gt;DOUBLE&lt;/SPAN&gt;),&lt;/SPAN&gt;
&lt;SPAN&gt;        p_from_date &lt;SPAN class=""&gt;=&amp;gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;CAST&lt;/SPAN&gt;(&lt;SPAN class=""&gt;:from_date&lt;/SPAN&gt; &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; &lt;SPAN class=""&gt;DATE&lt;/SPAN&gt;))&lt;/SPAN&gt;
&lt;SPAN&gt;&lt;SPAN class=""&gt;GROUP&lt;/SPAN&gt;  &lt;SPAN class=""&gt;BY&lt;/SPAN&gt; &lt;SPAN class=""&gt;ALL&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;&lt;SPAN class=""&gt;ORDER&lt;/SPAN&gt;  &lt;SPAN class=""&gt;BY&lt;/SPAN&gt; order_priority&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;The mapping is the point.&lt;/STRONG&gt; Each :marker in the query is tied to one Excel cell:&lt;/P&gt;Query marker Add-in parameter name Excel cell Cell content &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;p_discount =&amp;gt; :discount&lt;/TD&gt;&lt;TD&gt;discount&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Params!B3&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;0.15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;p_from_date =&amp;gt; :from_date&lt;/TD&gt;&lt;TD&gt;from_date&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Params!B4&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;1995-01-01 (text)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG&gt;Cast every marker.&lt;/STRONG&gt; The add-in appears to send each cell value as an untyped STRING parameter. Without a cast, the number parameter fails with [METRIC_VIEW_INVALID_PARAMETER_VALUE] … parameter p_discount at position 0 requires "DOUBLE". The argument given is "STRING" (SQLSTATE 42K09). A string &lt;EM&gt;literal&lt;/EM&gt; works in the SQL editor because Spark casts literals implicitly; a bound marker is typed, so it does not. Use CAST(:discount AS DOUBLE) and CAST(:from_date AS DATE).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Locale trap.&lt;/STRONG&gt; With European Excel settings the number 0.15 in a cell is sent as the text '0,15', and the cast fails with [CAST_INVALID_INPUT] The value '0,15' of the type "STRING" cannot be cast to "DOUBLE". Two ways out: keep the parameter cell as &lt;EM&gt;text&lt;/EM&gt; with a dot ('0.15), or make the query locale-proof with CAST(REPLACE(:discount, ',', '.') AS DOUBLE), as in the query above. A date kept as text in yyyy-mm-dd is not affected.&lt;/P&gt;&lt;P&gt;Check each binding in the pane: it is easy to point two markers at the same cell. The pane lists them as :discount = Params!B3 and :from_date = Params!B4.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s4-write-sql-pane.png" style="width: 768px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33398i8D2C48EF356F135A/image-size/large?v=v2&amp;amp;px=999" role="button" title="s4-write-sql-pane.png" alt="s4-write-sql-pane.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Write SQL: the query on top (my catalog and schema; use yours), and below it each marker bound to a cell on the Params sheet.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What happens&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Text cells work: the add-in sends the value as a STRING and the query casts it (see above).&lt;/LI&gt;&lt;LI&gt;Change a cell, then Imports tab → ⟳ on the same import: the query re-runs with the new values.&lt;/LI&gt;&lt;LI&gt;No row cap in my test (the pivot cap does not apply to Write SQL).&lt;/LI&gt;&lt;LI&gt;Invalid input (discount 1.5): the view's own raise_error text appears in the add-in, with the statement ID. No wrong figures are shown.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Result on the starting values (discount 0.15, from 1995-01-01): identical to the pivot, to the cent.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s5-write-sql-result.png" style="width: 706px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33399iFB1971E92B2D5A0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="s5-write-sql-result.png" alt="s5-write-sql-result.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The Write SQL import. Same five rows as the pivot, now driven by the cells Params!B3 and Params!B4.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Expected for discount 0.10 and from 1996-01-01:&lt;/P&gt;order_priority orders gross_revenue net_revenue &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1-URGENT&lt;/TD&gt;&lt;TD&gt;590,000&lt;/TD&gt;&lt;TD&gt;89,188,886,898.81&lt;/TD&gt;&lt;TD&gt;80,269,998,208.93&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2-HIGH&lt;/TD&gt;&lt;TD&gt;588,589&lt;/TD&gt;&lt;TD&gt;88,947,603,612.54&lt;/TD&gt;&lt;TD&gt;80,052,843,251.29&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3-MEDIUM&lt;/TD&gt;&lt;TD&gt;588,448&lt;/TD&gt;&lt;TD&gt;88,931,760,715.16&lt;/TD&gt;&lt;TD&gt;80,038,584,643.64&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4-NOT SPECIFIED&lt;/TD&gt;&lt;TD&gt;590,362&lt;/TD&gt;&lt;TD&gt;89,235,906,429.78&lt;/TD&gt;&lt;TD&gt;80,312,315,786.80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5-LOW&lt;/TD&gt;&lt;TD&gt;589,583&lt;/TD&gt;&lt;TD&gt;89,015,180,424.48&lt;/TD&gt;&lt;TD&gt;80,113,662,382.03&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s5b-write-sql-changed-params.png" style="width: 708px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33400i8597E74165FB5CAA/image-size/large?v=v2&amp;amp;px=999" role="button" title="s5b-write-sql-changed-params.png" alt="s5b-write-sql-changed-params.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The same import after setting Params!B3 to 0.10 and Params!B4 to 1996-01-01 and refreshing. All 15 values match the table above to the cent (decimal comma from the Excel locale).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s6-invalid-input-error.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33401iFCCD4305ED80F3EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="s6-invalid-input-error.png" alt="s6-invalid-input-error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Params!B3 set to 1.5 and the import refreshed. The view's own raise_error message comes back in the add-in, so a bad cell value fails loudly instead of returning wrong numbers.&lt;/EM&gt;&lt;/P&gt;&lt;H2 id="route-3-databrickssql-formula"&gt;Route 3: DATABRICKS.SQL formula&lt;/H2&gt;&lt;PRE&gt;=DATABRICKS.SQL(SQL!C3; Params!A3:B4)&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;Name/value pairs go in the same row of the range (discount | 0.15, from_date | 1995-01-01).&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;The SQL comes from a cell.&lt;/STRONG&gt; Excel rejects quoted text longer than 255 characters inside a formula.&lt;/LI&gt;&lt;LI&gt;The separator follows the Excel locale: ; for European settings, , for US.&lt;/LI&gt;&lt;LI&gt;The result &lt;STRONG&gt;spills&lt;/STRONG&gt; and recalculates when a parameter cell changes, with no refresh click.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Every column arrives as text&lt;/STRONG&gt;, including amounts and dates, with a dot decimal. Convert with =NUMBERVALUE(C9; "."; ",").&lt;/LI&gt;&lt;LI&gt;A formula does not refresh when the workbook is reopened until you sign in to the add-in and a cell changes (documented behaviour).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s7-formula-spill.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33402iAE3FEDC6A3198A47/image-size/large?v=v2&amp;amp;px=999" role="button" title="s7-formula-spill.png" alt="s7-formula-spill.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The DATABRICKS.SQL spill on the default parameters. The values match the reference to the cent, but they are left-aligned text with a dot decimal, so wrap them in NUMBERVALUE before calculating.&lt;/EM&gt;&lt;/P&gt;&lt;H2 id="comparison"&gt;Comparison&lt;/H2&gt;Route Parameters from cells Result size Output Skills needed &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Select data, pivot&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;1,000 rows by default, silent&lt;/TD&gt;&lt;TD&gt;Real numbers&lt;/TD&gt;&lt;TD&gt;None&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Write SQL, cell-bound&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Yes&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;No cap seen (about 8.5k rows tested on a larger view)&lt;/TD&gt;&lt;TD&gt;Real numbers&lt;/TD&gt;&lt;TD&gt;SQL once; then edit cells&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DATABRICKS.SQL&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Yes&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;Not measured (the docs give 10 MB for DATABRICKS.Table; nothing stated for DATABRICKS.SQL)&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;SQL and Excel formulas&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Wrapper view per scenario&lt;/TD&gt;&lt;TD&gt;Fixed at build time&lt;/TD&gt;&lt;TD&gt;Per view&lt;/TD&gt;&lt;TD&gt;Real numbers&lt;/TD&gt;&lt;TD&gt;None for users&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;H2 id="gotchas"&gt;Gotchas&lt;/H2&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Silent pivot row cap&lt;/STRONG&gt; (above).&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Bound parameters arrive as STRING, formatted in the Excel locale.&lt;/STRONG&gt; Cast them in the query and handle a decimal comma (Route 2). A literal in the SQL editor doesn't show this.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Parameter defaults are SQL expression text.&lt;/STRONG&gt; For a string write default: "'F'"; a bare F fails at CREATE with METRIC_VIEW_INVALID_VIEW_DEFINITION.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;A named argument on a view without parameters&lt;/STRONG&gt; fails with METRIC_VIEW_UNRECOGNIZED_PARAMETER_NAME; an unbound :marker fails with UNBOUND_SQL_PARAMETER.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Dates must be yyyy-mm-dd.&lt;/STRONG&gt; A pivot filter written as 20260201 failed with CAST_INVALID_INPUT.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;The pivot's filters are generated as LOWER(col) = LOWER('val')&lt;/STRONG&gt;, which may defeat data skipping on clustered columns.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Parameterised metric views can't be materialised&lt;/STRONG&gt; (documented limitation).&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Timings&lt;/STRONG&gt; on serverless: about 9–12 s for the first query of a session, about 0.6 s for a cached refresh, about 6 s for a changed parameter on an 8.5k-row result.&lt;/LI&gt;&lt;/OL&gt;&lt;H2 id="who-benefits-who-doesnt"&gt;Who benefits, who doesn't&lt;/H2&gt;&lt;P&gt;&lt;STRONG&gt;Benefits&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Finance and FP&amp;amp;A for period-end packs or scenario runs, where one person builds the Write SQL template and others edit cells.&lt;/LI&gt;&lt;LI&gt;Data teams who want one governed metric definition behind many workbooks.&lt;/LI&gt;&lt;LI&gt;Analysts doing pivot exploration on views whose defaults are what they need.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Doesn't (yet)&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Non-SQL users who need to change parameters inside a pivot.&lt;/LI&gt;&lt;LI&gt;Anyone using pivots on large results without checking the Row limit.&lt;/LI&gt;&lt;LI&gt;Workbooks that depend on DATABRICKS.SQL refreshing at reopen.&lt;/LI&gt;&lt;LI&gt;Teams needing materialised, repeatedly fast queries on parameterised views.&lt;/LI&gt;&lt;/UL&gt;&lt;H2 id="take-aways"&gt;Take-aways&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;SQL- and formula-only parameter passing is genuinely good: one governed metric definition, cells drive the numbers, bad input fails loudly. But it needs someone who can write (or at least paste and cast) SQL, and the pivot builder has no parameter prompt yet. So the least technical users, the ones pivots exist for, are the ones left on the defaults.&lt;/LI&gt;&lt;LI&gt;The silent 1,000-row cap is the sharper edge: it doesn't error, it just quietly shows you less. Raise the limit and reconcile a total until the add-in warns.&lt;/LI&gt;&lt;LI&gt;DATABRICKS.SQL is the most Excel-native route and the least finished one: live recalculation, but everything comes back as text.&lt;/LI&gt;&lt;LI&gt;Practical pattern for teams today: one SQL-literate person builds the Write SQL template; everyone else edits two cells and clicks refresh. For pure pivot users, publish a wrapper view per scenario until parameter prompts arrive.&lt;/LI&gt;&lt;/UL&gt;&lt;H2 id="what-id-like-to-see"&gt;What I'd like to see&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;Parameter inputs in the Select data pivot builder.&lt;/LI&gt;&lt;LI&gt;A visible warning when a pivot hits its Row limit.&lt;/LI&gt;&lt;LI&gt;Saved workspace queries loading in the add-in. The launch post lists reuse of workspace queries as supported, and in my workspace they were listed but didn't load into the editor, even after an explicit Save in the SQL editor. Is there a precondition I'm missing?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Has anyone seen these on a roadmap, or tried the add-in on Windows? &lt;A href="https://www.databricks.com/blog/author/toussaint-webb" target="_blank" rel="noopener"&gt;Toussaint Webb&lt;/A&gt;, if the add-in asks land in your area I'd welcome your take. The three asks were also submitted via in-product feedback on 2026-11-16.&lt;/P&gt;&lt;H2 id="appendix-a-view-ddl"&gt;Appendix A: view DDL&lt;/H2&gt;&lt;P&gt;Run in the SQL editor in a schema of your own (you need CREATE TABLE and USE SCHEMA on the schema, USE CATALOG on the catalog, and SELECT on samples.tpch.orders). Replace &amp;lt;catalog&amp;gt;.&amp;lt;schema&amp;gt;.&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;CREATE&lt;/SPAN&gt; &lt;SPAN class=""&gt;OR&lt;/SPAN&gt; &lt;SPAN class=""&gt;REPLACE&lt;/SPAN&gt; &lt;SPAN class=""&gt;VIEW&lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;catalog&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;.&lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;schema&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;.metric_tpch_orders_param_demo&lt;/SPAN&gt;
&lt;SPAN&gt;&lt;SPAN class=""&gt;WITH&lt;/SPAN&gt; METRICS&lt;/SPAN&gt;
&lt;SPAN&gt;LANGUAGE YAML&lt;/SPAN&gt;
&lt;SPAN&gt;&lt;SPAN class=""&gt;AS&lt;/SPAN&gt; $$&lt;/SPAN&gt;
&lt;SPAN&gt;version: &lt;SPAN class=""&gt;1.1&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;&lt;SPAN class=""&gt;comment&lt;/SPAN&gt;: &lt;SPAN class=""&gt;&amp;gt;-&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;  Demo &lt;SPAN class=""&gt;for&lt;/SPAN&gt; &lt;SPAN class=""&gt;the&lt;/SPAN&gt; Excel &lt;SPAN class=""&gt;Add&lt;/SPAN&gt;&lt;SPAN class=""&gt;-&lt;/SPAN&gt;&lt;SPAN class=""&gt;in&lt;/SPAN&gt; article: parameterised revenue &lt;SPAN class=""&gt;on&lt;/SPAN&gt; samples.tpch.orders.&lt;/SPAN&gt;
&lt;SPAN&gt;&lt;SPAN class=""&gt;source&lt;/SPAN&gt;: samples.tpch.orders&lt;/SPAN&gt;
&lt;SPAN&gt;&lt;SPAN class=""&gt;parameters&lt;/SPAN&gt;:&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;-&lt;/SPAN&gt; name: p_discount&lt;/SPAN&gt;
&lt;SPAN&gt;    data_type: &lt;SPAN class=""&gt;double&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;    &lt;SPAN class=""&gt;default&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"0.15"&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;-&lt;/SPAN&gt; name: p_from_date&lt;/SPAN&gt;
&lt;SPAN&gt;    data_type: &lt;SPAN class=""&gt;date&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;    &lt;SPAN class=""&gt;default&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"DATE'1995-01-01'"&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;&lt;SPAN class=""&gt;filter&lt;/SPAN&gt;: &lt;SPAN class=""&gt;&amp;gt;-&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;CASE&lt;/SPAN&gt; &lt;SPAN class=""&gt;WHEN&lt;/SPAN&gt; p_discount &lt;SPAN class=""&gt;BETWEEN&lt;/SPAN&gt; &lt;SPAN class=""&gt;0&lt;/SPAN&gt; &lt;SPAN class=""&gt;AND&lt;/SPAN&gt; &lt;SPAN class=""&gt;1&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;       &lt;SPAN class=""&gt;THEN&lt;/SPAN&gt; o_orderdate &lt;SPAN class=""&gt;&amp;gt;=&lt;/SPAN&gt; p_from_date&lt;/SPAN&gt;
&lt;SPAN&gt;       &lt;SPAN class=""&gt;ELSE&lt;/SPAN&gt; &lt;SPAN class=""&gt;CAST&lt;/SPAN&gt;(raise_error(&lt;SPAN class=""&gt;'p_discount must be between 0 and 1'&lt;/SPAN&gt;) &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; &lt;SPAN class=""&gt;BOOLEAN&lt;/SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;END&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;fields:&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;-&lt;/SPAN&gt; name: order_priority&lt;/SPAN&gt;
&lt;SPAN&gt;    expr: o_orderpriority&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;-&lt;/SPAN&gt; name: order_status&lt;/SPAN&gt;
&lt;SPAN&gt;    expr: o_orderstatus&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;-&lt;/SPAN&gt; name: order_date&lt;/SPAN&gt;
&lt;SPAN&gt;    expr: o_orderdate&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;-&lt;/SPAN&gt; name: order_year&lt;/SPAN&gt;
&lt;SPAN&gt;    expr: &lt;SPAN class=""&gt;YEAR&lt;/SPAN&gt;(o_orderdate)&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;-&lt;/SPAN&gt; name: customer_key&lt;/SPAN&gt;
&lt;SPAN&gt;    expr: o_custkey&lt;/SPAN&gt;
&lt;SPAN&gt;measures:&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;-&lt;/SPAN&gt; name: order_count&lt;/SPAN&gt;
&lt;SPAN&gt;    expr: &lt;SPAN class=""&gt;COUNT&lt;/SPAN&gt;(&lt;SPAN class=""&gt;1&lt;/SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;    display_name: Orders&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;-&lt;/SPAN&gt; name: gross_revenue&lt;/SPAN&gt;
&lt;SPAN&gt;    expr: &lt;SPAN class=""&gt;SUM&lt;/SPAN&gt;(o_totalprice)&lt;/SPAN&gt;
&lt;SPAN&gt;    display_name: Gross revenue&lt;/SPAN&gt;
&lt;SPAN&gt;    format:&lt;/SPAN&gt;
&lt;SPAN&gt;      &lt;SPAN class=""&gt;type&lt;/SPAN&gt;: &lt;SPAN class=""&gt;number&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;      decimal_places:&lt;/SPAN&gt;
&lt;SPAN&gt;        &lt;SPAN class=""&gt;type&lt;/SPAN&gt;: exact&lt;/SPAN&gt;
&lt;SPAN&gt;        places: &lt;SPAN class=""&gt;2&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;-&lt;/SPAN&gt; name: net_revenue&lt;/SPAN&gt;
&lt;SPAN&gt;    expr: &lt;SPAN class=""&gt;CAST&lt;/SPAN&gt;(&lt;SPAN class=""&gt;SUM&lt;/SPAN&gt;(o_totalprice) &lt;SPAN class=""&gt;*&lt;/SPAN&gt; &lt;SPAN class=""&gt;CAST&lt;/SPAN&gt;(&lt;SPAN class=""&gt;1&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; p_discount &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; &lt;SPAN class=""&gt;DECIMAL&lt;/SPAN&gt;(&lt;SPAN class=""&gt;10&lt;/SPAN&gt;, &lt;SPAN class=""&gt;4&lt;/SPAN&gt;)) &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; &lt;SPAN class=""&gt;DECIMAL&lt;/SPAN&gt;(&lt;SPAN class=""&gt;28&lt;/SPAN&gt;, &lt;SPAN class=""&gt;2&lt;/SPAN&gt;))&lt;/SPAN&gt;
&lt;SPAN&gt;    display_name: Net revenue&lt;/SPAN&gt;
&lt;SPAN&gt;    &lt;SPAN class=""&gt;comment&lt;/SPAN&gt;: Gross revenue &lt;SPAN class=""&gt;after&lt;/SPAN&gt; &lt;SPAN class=""&gt;the&lt;/SPAN&gt; discount parameter.&lt;/SPAN&gt;
&lt;SPAN&gt;    format:&lt;/SPAN&gt;
&lt;SPAN&gt;      &lt;SPAN class=""&gt;type&lt;/SPAN&gt;: &lt;SPAN class=""&gt;number&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;      decimal_places:&lt;/SPAN&gt;
&lt;SPAN&gt;        &lt;SPAN class=""&gt;type&lt;/SPAN&gt;: exact&lt;/SPAN&gt;
&lt;SPAN&gt;        places: &lt;SPAN class=""&gt;2&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;$$&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;net_revenue is cast to DECIMAL on purpose: money stays exact to the cent, and the Excel screenshots show no floating-point noise.&lt;/P&gt;&lt;P&gt;Smoke test in the SQL editor, expected equal to the first table above:&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;SELECT&lt;/SPAN&gt; order_priority, MEASURE(order_count), MEASURE(gross_revenue), MEASURE(net_revenue)&lt;/SPAN&gt;
&lt;SPAN&gt;&lt;SPAN class=""&gt;FROM&lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;catalog&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;.&lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;schema&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;.metric_tpch_orders_param_demo &lt;SPAN class=""&gt;GROUP&lt;/SPAN&gt; &lt;SPAN class=""&gt;BY&lt;/SPAN&gt; &lt;SPAN class=""&gt;ALL&lt;/SPAN&gt; &lt;SPAN class=""&gt;ORDER&lt;/SPAN&gt; &lt;SPAN class=""&gt;BY&lt;/SPAN&gt; &lt;SPAN class=""&gt;1&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;Official docs: &lt;A href="https://docs.databricks.com/aws/en/uc-semantics/metric-views/use-parameters" target="_blank" rel="noopener"&gt;Use parameters with metric views&lt;/A&gt;, &lt;A href="https://docs.databricks.com/aws/en/uc-semantics/metric-views/yaml-reference" target="_blank" rel="noopener"&gt;Metric view YAML reference&lt;/A&gt;, &lt;A href="https://docs.databricks.com/aws/en/integrations/excel/query-data" target="_blank" rel="noopener"&gt;Import and query data using the Databricks Excel Add-in&lt;/A&gt;.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Nov 2026 14:33:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/parameterised-metric-views-in-excel-what-the-databricks-add-in/m-p/176554#M1975</guid>
      <dc:creator>DmitryKuznetsov</dc:creator>
      <dc:date>2026-11-16T14:33:26Z</dc:date>
    </item>
    <item>
      <title>Databricks Latest Features: Genie Code CLI, App Builder, Agent Memory and DABs Deployment History</title>
      <link>https://community.databricks.com/t5/community-articles/databricks-latest-features-genie-code-cli-app-builder-agent/m-p/176443#M1968</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;Databricks has shipped a lot of new features recently. Here’s a quick summary of the most useful ones, grouped by area.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. DABs Deployment History&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What it is:&lt;/STRONG&gt;&lt;BR /&gt;Databricks Asset Bundles (DABs) now keep a history of every deployment. Each record shows the deployment version, its status, and the resources it manages.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why it matters:&lt;/STRONG&gt;&lt;BR /&gt;Until now, working out what changed between two bundle deployments meant digging through Git history or comparing configurations by hand. Deployment history shows those changes directly. For example, if you raise a job’s timeout from 60 to 120 seconds and redeploy, the history records exactly that change.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where you’d use it:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Auditing changes in production environments&lt;/LI&gt;&lt;LI&gt;Troubleshooting when a job starts behaving differently after a deployment&lt;/LI&gt;&lt;LI&gt;Getting better visibility in CI/CD pipelines built on DABs&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;2. Genie Code CLI&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What it is:&lt;/STRONG&gt;&lt;BR /&gt;Genie Code, the Databricks AI coding assistant, now runs from your terminal. It works with your local files and Databricks workflows.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why it matters:&lt;/STRONG&gt;&lt;BR /&gt;Many developers spend most of their time in a local IDE and terminal. With the CLI, you get AI help without switching to the workspace UI. You can ask it to compare two bundle files, upload files, or help with workflow-related tasks.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Good to know:&lt;/STRONG&gt;&lt;BR /&gt;Model usage from the CLI is billed through &lt;STRONG&gt;Unity Gateway&lt;/STRONG&gt;, so cost tracking and governance stay in one place.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where you’d use it:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Reviewing changes between bundle configurations&lt;/LI&gt;&lt;LI&gt;Doing routine file and workflow tasks faster&lt;/LI&gt;&lt;LI&gt;Local-first development&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;3. Genie App Builder&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What it is:&lt;/STRONG&gt;&lt;BR /&gt;Describe the app you want in plain language, and Genie App Builder creates a Databricks App. You can then keep refining it through chat.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why it matters:&lt;/STRONG&gt;&lt;BR /&gt;Building even a simple internal app used to take frontend skills and setup time. Now you can go from an idea to a working prototype in minutes. The original article’s example is a news tracker with sample data that filters six cards by topic, built from a short description.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Governance:&lt;/STRONG&gt;&lt;BR /&gt;Building, sharing and permissions are controlled through &lt;STRONG&gt;App Spaces&lt;/STRONG&gt;, so teams can create apps quickly without losing control over who builds and who can access them.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where you’d use it:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Quick internal tools and dashboards&lt;/LI&gt;&lt;LI&gt;Prototypes to show business stakeholders&lt;/LI&gt;&lt;LI&gt;Letting analysts and less technical users build simple apps&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;4. Materialized Views and Streaming Tables from Python&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What it is:&lt;/STRONG&gt;&lt;BR /&gt;You can now create standalone materialized views and streaming tables directly from a serverless notebook, using the &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/25059"&gt;@DP&lt;/a&gt;.materialized_view and &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/25059"&gt;@DP&lt;/a&gt;.table decorators.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why it matters:&lt;/STRONG&gt;&lt;BR /&gt;Previously these objects were usually defined inside a full declarative pipeline. Now, for simpler cases, you can define them right in a notebook in Python, which means less setup and faster development.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where you’d use it:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Quick incremental aggregations&lt;/LI&gt;&lt;LI&gt;Lightweight streaming ingestion&lt;/LI&gt;&lt;LI&gt;Testing transformation logic before moving it into a full pipeline&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;5. JDBC Connections in Unity Catalog (Generally Available)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What it is:&lt;/STRONG&gt;&lt;BR /&gt;You can save a JDBC driver, endpoint and credentials once as a Unity Catalog connection, then use it by name in any notebook.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirements:&lt;/STRONG&gt;&lt;BR /&gt;Serverless compute and DBR 19 or above.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why it matters:&lt;/STRONG&gt;&lt;BR /&gt;Teams often copy connection strings and credentials across many notebooks, which is a maintenance headache and a security risk. With UC JDBC connections:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Credentials are stored once and governed centrally&lt;/LI&gt;&lt;LI&gt;Access is controlled through Unity Catalog permissions&lt;/LI&gt;&lt;LI&gt;Notebooks stay clean, with no hardcoded connection details&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Where you’d use it:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Reading from external databases such as MySQL, PostgreSQL or SQL Server&lt;/LI&gt;&lt;LI&gt;Sharing approved connections across teams safely&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;6. Audio Transcription in SQL with ai_transcribe (Beta)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What it is:&lt;/STRONG&gt;&lt;BR /&gt;A new AI function that turns audio into timestamped text with speaker labels, called directly from SQL.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Languages:&lt;/STRONG&gt; English and Spanish (currently)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why it matters:&lt;/STRONG&gt;&lt;BR /&gt;Audio data used to need separate speech-to-text services and custom pipelines. Now you can transcribe audio with a simple SQL query, then analyze the text with other AI functions such as ai_summarize, ai_classify or ai_analyze_sentiment, all within Databricks.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where you’d use it:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Call-center analytics (customer sentiment, complaint detection)&lt;/LI&gt;&lt;LI&gt;Meeting and interview transcription&lt;/LI&gt;&lt;LI&gt;Compliance monitoring of recorded calls&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;7. Agent Memory&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What it is:&lt;/STRONG&gt;&lt;BR /&gt;AI agents can now store useful facts and user preferences and use them in later conversations. The memory is stored in &lt;STRONG&gt;Lakebase&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why it matters:&lt;/STRONG&gt;&lt;BR /&gt;Without memory, every conversation with an agent starts from scratch. With Agent Memory, the agent remembers context. In the original article’s example, a user’s preferred news format is saved and used in a later session, without the earlier conversation being sent again.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where you’d use it:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Personalized assistants and chatbots&lt;/LI&gt;&lt;LI&gt;Customer support agents that remember past interactions&lt;/LI&gt;&lt;LI&gt;Internal copilots that learn team preferences over time&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sun, 15 Nov 2026 14:30:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/databricks-latest-features-genie-code-cli-app-builder-agent/m-p/176443#M1968</guid>
      <dc:creator>rajkumar8k</dc:creator>
      <dc:date>2026-11-15T14:30:31Z</dc:date>
    </item>
    <item>
      <title>Protecting Your Company Data When Integrating Coding Agents through Unity AI Gateway</title>
      <link>https://community.databricks.com/t5/community-articles/protecting-your-company-data-when-integrating-coding-agents/m-p/176397#M1966</link>
      <description>&lt;P&gt;Coding agents like Claude Code, Codex, OpenCode, or PI, started through the ug launcher, and integrated with foundation models through Unity AI Gateway can run with whatever Databricks permissions the developer already has through MCPs that is native on Databricks such as AI Search MCP(s), or Genie MCP(s).&lt;/P&gt;&lt;P&gt;Basically this introduce risk to the company if you are trying to protect the data before the model for whatever the reason is AI governance, law, etc, ...&lt;/P&gt;&lt;P&gt;We have been adopting protective mechanism in layers, where each one catches what the one above it misses.&lt;/P&gt;&lt;P&gt;- The first layer is what you already have. Since the agent acts as the user, Unity Catalog row filters, column masks, ABAC tag policies and plain least-privilege grants still apply to whatever it reads. But usually, people have multiple permissions and we want to protect the coding agent from reading the PII from those who have such permissions.&lt;/P&gt;&lt;P&gt;- The second layer is Sensitive Data Detection policy on the model service, you can turn this on on the UI and set it at rank 1, with tags email_address and credit_card. The model gets a token such as [US_SSN] instead of the value. Everything else just allows or denies. Some limitations that we have experience, the REDACT mechanism can be sometime to strict and remove important information from the coding agent such as AWS account number, Databricks workspace id when it is trying to perform task on such environment and break the workflow.&lt;/P&gt;&lt;P&gt;- The third layer is for what the built-ins miss or you can replace it completely to match some of your workflow. A custom SQL policy is a function that takes the event and returns a decision. The body is converted to a small SQL subset, so no regexp, just things like CONTAINS, LIKE and STARTSWITH.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;CREATE OR REPLACE FUNCTION main.governance.block_private_keys(
  event VARIANT
)
RETURNS VARIANT
LANGUAGE SQL
RETURN
  CASE
    WHEN event:type::string = 'request'
      AND CONTAINS(event:context.message::string, 'PRIVATE KEY-----')
    THEN to_variant_object(named_struct('result', 'DENY', 'reason', 'Prompt contains a private key.'))
    ELSE to_variant_object(named_struct('result', 'ALLOW', 'reason', ''))
  END;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Nov 2026 10:30:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/protecting-your-company-data-when-integrating-coding-agents/m-p/176397#M1966</guid>
      <dc:creator>DoTA</dc:creator>
      <dc:date>2026-11-14T10:30:49Z</dc:date>
    </item>
    <item>
      <title>The Databricks Architect in the Age of AI: Why Judgement Matters More Than Knowing Every Feature</title>
      <link>https://community.databricks.com/t5/community-articles/the-databricks-architect-in-the-age-of-ai-why-judgement-matters/m-p/176437#M1964</link>
      <description>&lt;H1&gt;&lt;SPAN&gt;The Databricks Architect in the Age of AI: Why Judgement Matters More Than Knowing Every Feature&lt;/SPAN&gt;&lt;/H1&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;As AI makes technical knowledge increasingly accessible, the real differentiator in enterprise data architecture is shifting towards experience, context and architectural judgement.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are entering an interesting phase in the evolution of data engineering and enterprise architecture.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AI can generate SQL, write PySpark transformations, explain Delta Lake, recommend Spark configurations, create data pipelines and increasingly assist with architectural decisions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With AI coding assistants and agentic engineering becoming part of our daily workflows, the effort required to acquire technical knowledge and translate it into working solutions is changing dramatically.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This raises an important question:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;If AI can increasingly perform the technical tasks that data engineers and architects have spent years mastering, what will make an experienced Databricks architect valuable?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I believe the answer lies in something beyond technical knowledge: &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;the ability to exercise sound architectural judgement.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let's look at this through some practical Databricks scenarios.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;1. Knowing the platform is not the same as architecting an enterprise solution&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;Consider a typical enterprise Lakehouse implementation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;An AI assistant can help you:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Generate a Medallion Architecture.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Write PySpark transformations.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Create Delta tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Configure Unity Catalog.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Recommend Liquid Clustering strategies.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Build Lakeflow pipelines.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Identify potential Spark performance bottlenecks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;All of this is useful, and increasingly accessible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But enterprise architecture is rarely a problem of simply knowing which Databricks feature to use.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It is about understanding whether you should use it in the first place.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Should every source system be ingested into the Lakehouse, or would Lakehouse Federation be more appropriate for certain workloads?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Should business transformations happen in the Silver layer, Gold layer or downstream semantic models?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Should we use streaming tables, materialized views or conventional Delta tables?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Should we optimize for query performance, data freshness, infrastructure cost or operational simplicity?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;These are not merely technology questions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;They are architectural decisions influenced by business requirements, data characteristics, workload patterns, organizational maturity, security obligations and economics.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;The platform provides the capabilities. The architect must understand the consequences of using them.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;2. Three architectural decisions where judgement matters&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;Let's consider three situations that enterprise data architects regularly encounter.&lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN&gt;Scenario A: Lakehouse Federation versus data ingestion&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN&gt;Imagine an enterprise with several operational databases and an existing Databricks Lakehouse.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A straightforward recommendation might be to ingest all relevant data into Delta tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But is that always the right decision?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Consider a source that:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Contains data accessed infrequently.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Has modest query latency requirements.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Is already governed by an established operational team.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Would introduce additional replication and synchronization overhead if ingested.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Lakehouse Federation might be a more appropriate choice for certain workloads.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;On the other hand, if the workload demands high concurrency, predictable performance, complex transformations or historical processing, ingestion might be preferable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The decision requires understanding access patterns, data freshness, source-system impact, cost and operational ownership.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Knowing the feature is one thing. Knowing when not to use it is another.&lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN&gt;Scenario B: Medallion Architecture versus business complexity&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN&gt;Medallion Architecture has become a widely adopted pattern for organizing data refinement in the Lakehouse.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, implementing Bronze, Silver and Gold layers does not automatically produce a well-designed enterprise data platform.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Consider a large retail enterprise.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sales transactions, inventory movements, customer information and supply chain data may have different ownership structures, data quality expectations and business rules.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Simply moving data through three layers does not answer:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Where should business validation rules reside?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Who owns the definition of a trusted business entity?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;How should data contracts be enforced?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;How do we manage schema evolution?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;What happens when an upstream source changes?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;How do we prevent downstream reporting disruptions?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;These decisions require an understanding of business domains, operational dependencies and consumption requirements.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;An architect must design for the enterprise, not merely implement an architecture diagram.&lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN&gt;Scenario C: Performance optimization versus economics&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN&gt;Databricks offers several capabilities to improve query performance and optimize workloads.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Liquid Clustering, predictive optimization, caching and workload management can all contribute to better performance in appropriate circumstances.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But consider this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A query that takes 30 seconds might be perfectly acceptable for a report refreshed once every night.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The same query might be unacceptable for an operational dashboard refreshed every few minutes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Optimizing both workloads using identical strategies would be a mistake.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The architect must understand:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Query frequency and concurrency.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Data volume and growth patterns.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Service-level agreements.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Compute consumption.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Business criticality.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Total cost of ownership.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;The objective is not to build the fastest possible data platform.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It is to build a platform that delivers the required business outcomes at an economically sustainable cost.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Optimization without context is often just unnecessary engineering.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;3. Experience changes the quality of architectural decisions&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;There is a significant difference between implementing an architectural pattern and understanding the problem it is intended to solve.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You develop a different perspective when you have:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Experienced a production pipeline failure.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Dealt with upstream schema changes.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Reconciled discrepancies across environments.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Managed competing stakeholder expectations.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Handled security and access-control challenges.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Experienced the consequences of poorly designed data models.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Supported a platform after its original implementation team has moved on.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;These experiences influence how you approach your next architectural decision.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You begin to anticipate problems before they materialize.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You understand that a seemingly simple technical decision can have implications across governance, operations, reporting, security and business continuity.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AI can increasingly help analyse these situations and recommend solutions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But the quality of those recommendations depends heavily on the context provided, the assumptions challenged and the decisions made by the people responsible for the outcome.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is where accumulated experience becomes valuable.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;4. AI should augment architectural judgement, not replace it&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;I don't see AI as an adversary to experienced Databricks architects.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I see it as a force multiplier.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AI can:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Accelerate technical implementation.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Reduce repetitive engineering effort.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Explore alternative architectural patterns.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Help identify potential failure scenarios.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Improve documentation and knowledge sharing.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Accelerate experimentation and prototyping.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;These are meaningful productivity gains.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, generating a technically valid implementation is not the same as delivering a successful enterprise solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;An enterprise needs someone to ensure that the solution:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Addresses the actual business problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Meets security and regulatory requirements.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Integrates with the existing technology ecosystem.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Operates reliably at scale.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Remains maintainable.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Delivers measurable business value.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;A technically correct implementation can still be a poor architectural decision.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The responsibility for that decision cannot simply be delegated to an AI-generated recommendation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The opportunity for architects is therefore not to compete with AI on implementation speed, but to use AI to improve the quality and speed of their decision-making.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;5. The next generation of Databricks architects&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;I believe the role of a Databricks architect will increasingly evolve beyond platform specialization.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The next generation of architects must become:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Problem framers:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; Understand the business problem before selecting the technology.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Systems thinkers:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; Understand how ingestion, storage, transformation, governance, consumption and operations interact.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Decision makers:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; Evaluate architectural trade-offs instead of blindly following recommended patterns.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Business translators:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; Connect platform capabilities with measurable business outcomes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Accountable leaders:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; Take ownership of architectural decisions and their consequences.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;AI-enabled practitioners:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; Use AI to accelerate execution while retaining independent technical judgement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The objective should not be to compete with AI on how much technical information we can remember.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It should be to become better at knowing what knowledge matters, when to apply it and what consequences follow.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;6. Build knowledge that travels with you&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;There is one more aspect of this discussion that I find particularly important.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Technology platforms will evolve. Organizational structures will change. Designations, authority, teams and access to resources are contextual.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But the knowledge acquired through building, troubleshooting, experimenting and delivering enterprise platforms travels with you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Your ability to understand a complex problem, evaluate alternatives, make sound decisions and deliver outcomes becomes part of your professional capital.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Relationships and reputation are equally important. They create trust, influence and opportunities.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But they should amplify your capabilities, never become substitutes for them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Build capabilities that cannot be taken away. Build a reputation that travels beyond your organization. Build relationships that create opportunities, but never become dependent on them for your professional relevance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That, to me, is a sustainable approach to building a technology career.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;A final thought&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;Databricks will continue to evolve. New capabilities will emerge. Some of today's architectural practices will become obsolete. AI will increasingly automate activities that currently require considerable engineering effort.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We cannot build our professional identity around knowing every feature of a technology platform.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We must build it around the ability to understand problems, make decisions and deliver outcomes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Don't compete with AI on the volume of knowledge. Develop the judgement to know what knowledge matters, when to apply it, and what consequences follow.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Because knowing Databricks might get you started.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But knowing how to architect with Databricks, in the context of a real enterprise, is what makes you valuable.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;HR /&gt;&lt;/DIV&gt;&lt;H2&gt;&lt;SPAN&gt;Let's hear from the community&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;As AI becomes increasingly capable of generating data pipelines, SQL transformations and architectural recommendations:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;What do you believe will differentiate an experienced Databricks architect from an AI-enabled developer?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Technical depth?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Architectural judgement?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Business understanding?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Experience managing production complexity?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Accountability for outcomes?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;I'd particularly welcome perspectives from practitioners who have built and operated enterprise-scale Lakehouse platforms.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;Technology will continue to change. The quality of our decisions must evolve with it.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Nov 2026 12:40:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/the-databricks-architect-in-the-age-of-ai-why-judgement-matters/m-p/176437#M1964</guid>
      <dc:creator>TheDataMaverick</dc:creator>
      <dc:date>2026-11-15T12:40:52Z</dc:date>
    </item>
  </channel>
</rss>

