<?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>Fri, 04 Dec 2026 17:00:00 GMT</pubDate>
    <dc:creator>Knowledge-Sharing-Hub</dc:creator>
    <dc:date>2026-12-04T17:00:00Z</dc:date>
    <item>
      <title>Parameters, Task Values, and Dynamic References: How They Fit Together in Lakeflow Jobs</title>
      <link>https://community.databricks.com/t5/community-articles/parameters-task-values-and-dynamic-references-how-they-fit/m-p/178766#M2033</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The parameterization options in &lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/jobs/" target="_blank"&gt;&lt;SPAN&gt;Lakeflow Jobs&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; are among the most underrated features on the platform. Most jobs I review use parameters for the basics: passing a date, an environment name, or maybe a catalog. That works, but it barely scratches the surface.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Lakeflow Jobs gives you &lt;/SPAN&gt;&lt;I&gt;&lt;SPAN&gt;three distinct ways&lt;/SPAN&gt;&lt;/I&gt;&lt;SPAN&gt; to configure and pass values through a job. When you use them together, your tasks stop depending on each other's code. A downstream task no longer has to rebuild the name of the table the previous task wrote. An audit step no longer has to look up which run produced a row. When the naming convention changes, only one notebook changes instead of three.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Those three options are &lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;parameters, task values, and dynamic value references&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt;. Each one answers a different question, and they work best together.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This post uses one small job to show how the three options differ, when to use each, and how they connect. It is for data engineers who build multi-task jobs and have not used task values or dynamic value references yet.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For another walkthrough built around a claims pipeline, see the &lt;/SPAN&gt;&lt;A href="https://community.databricks.com/t5/technical-blog/workflows-parameterization-build-flexible-production-ready/ba-p/152561" target="_blank"&gt;&lt;SPAN&gt;Community Technical Blog post on Workflows Parameterization&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2&gt;&lt;SPAN&gt;&lt;BR /&gt;Three options, one question: when is the value known?&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P&gt;&lt;SPAN&gt;Every value a job needs becomes known at a specific moment. That moment tells you which option to use.&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt; Parameters&lt;/STRONG&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/jobs/parameters" target="_blank"&gt;&lt;SPAN&gt;docs&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;) are known before the run starts. You set them in the job definition or override them when you trigger a run. &lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/jobs/job-parameters" target="_blank"&gt;&lt;SPAN&gt;Job parameters&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; are key-value pairs defined at the job level and pushed down to tasks. &lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/jobs/task-parameters" target="_blank"&gt;&lt;SPAN&gt;Task parameters&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; are key-value pairs or JSON arrays defined on a single task.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;I&gt;&lt;SPAN&gt;Example&lt;/SPAN&gt;&lt;/I&gt;&lt;SPAN&gt;: You have one job that runs in dev, staging, and prod. Instead of maintaining three copies, you define a job parameter called &lt;/SPAN&gt;&lt;SPAN&gt;env&lt;/SPAN&gt;&lt;SPAN&gt; and set it to &lt;/SPAN&gt;&lt;SPAN&gt;dev&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;staging&lt;/SPAN&gt;&lt;SPAN&gt;, or &lt;/SPAN&gt;&lt;SPAN&gt;prod&lt;/SPAN&gt;&lt;SPAN&gt; at trigger time. Every task in the job reads &lt;/SPAN&gt;&lt;SPAN&gt;env&lt;/SPAN&gt;&lt;SPAN&gt; to decide which catalog and schema to write to, allowing the same code to work in all three environments.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt; Task values&lt;/STRONG&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/jobs/task-values" target="_blank"&gt;&lt;SPAN&gt;docs&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;) are known only after a task runs. A task sets them in Python using &lt;/SPAN&gt;&lt;SPAN&gt;dbutils.jobs.taskValues.set&lt;/SPAN&gt;&lt;SPAN&gt;, and any subsequent task in the same run can read them - either directly in Python code or through a dynamic value reference.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;I&gt;&lt;SPAN&gt;Example&lt;/SPAN&gt;&lt;/I&gt;&lt;SPAN&gt;: An ingestion task writes a table and records its name as a task value. The next task reads that name instead of rebuilding it from parameters; as a result, when the naming convention changes, only the ingestion task needs updating.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL start="3"&gt;
&lt;LI&gt;&lt;STRONG&gt; Dynamic value references&lt;/STRONG&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/jobs/dynamic-value-references" target="_blank"&gt;&lt;SPAN&gt;docs&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;) use the &lt;/SPAN&gt;&lt;SPAN&gt;{{ }}&lt;/SPAN&gt;&lt;SPAN&gt; syntax to configure tasks. They can read job parameters, task values set by upstream tasks, and job metadata such as the run ID, trigger type, and start time. When a task starts, each reference is replaced by a plain string.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;I&gt;&lt;SPAN&gt;Example&lt;/SPAN&gt;&lt;/I&gt;&lt;SPAN&gt;: An audit task needs to log the run ID and the table written by the upstream task. You set its parameters to &lt;/SPAN&gt;&lt;SPAN&gt;{{job.run_id}}&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN&gt;{{tasks.ingest.values.output_table}}&lt;/SPAN&gt;&lt;SPAN&gt;, and the notebook receives plain strings without needing to know they originated from a reference.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="naharsenior_0-1796392569282.png" style="width: 629px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/34087i4A22D7E1A8B87BCA/image-dimensions/629x354?v=v2" width="629" height="354" role="button" title="naharsenior_0-1796392569282.png" alt="naharsenior_0-1796392569282.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH&gt;
&lt;P&gt;&lt;STRONG&gt;Option&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TH&gt;
&lt;TH&gt;
&lt;P&gt;&lt;STRONG&gt;Who sets it&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TH&gt;
&lt;TH&gt;
&lt;P&gt;&lt;STRONG&gt;When it is known&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TH&gt;
&lt;TH&gt;
&lt;P&gt;&lt;STRONG&gt;Can it change per run?&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;STRONG&gt;Job parameter&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN&gt;You, in the job definition or at trigger time&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN&gt;Before the run&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN&gt;Yes, override the default&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;STRONG&gt;Task parameter&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN&gt;You, on one task&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN&gt;Before the run&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN&gt;No, only by editing the task&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;STRONG&gt;Task value&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN&gt;A Python notebook task, in code&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN&gt;After that task runs&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN&gt;Yes, it is computed every run&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;STRONG&gt;Dynamic value reference&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN&gt;You, in task configuration&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN&gt;When the task starts&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN&gt;Resolves fresh every run&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;&lt;SPAN&gt;The Example Job&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P&gt;&lt;SPAN&gt;To keep things concrete, every example in this post uses a job called &lt;/SPAN&gt;&lt;SPAN&gt;orders_daily&lt;/SPAN&gt;&lt;SPAN&gt;. It runs on serverless compute with synthetic order data for a fictional online store.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Sequential Tasks:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;ingest_orders&lt;/STRONG&gt;&lt;SPAN&gt;: Loads orders for a specific date and reports two task values (&lt;/SPAN&gt;&lt;SPAN&gt;output_table&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN&gt;row_count&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;clean_orders&lt;/STRONG&gt;&lt;SPAN&gt;: Reads the table written by &lt;/SPAN&gt;&lt;SPAN&gt;ingest_orders&lt;/SPAN&gt;&lt;SPAN&gt; via a reference and reports its own &lt;/SPAN&gt;&lt;SPAN&gt;output_table&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;audit_run&lt;/STRONG&gt;&lt;SPAN&gt;: Writes an audit row using only references (run ID, trigger type, start time, and upstream task values)&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Job Configuration &amp;amp; Execution:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Job Parameters&lt;/STRONG&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;env&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN&gt;run_date&lt;/SPAN&gt;&lt;SPAN&gt; (defaulting to a reference for the run's start date)&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Task Parameters&lt;/STRONG&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;source_format&lt;/SPAN&gt;&lt;SPAN&gt; on &lt;/SPAN&gt;&lt;SPAN&gt;ingest_orders&lt;/SPAN&gt;&lt;SPAN&gt; (fixed to &lt;/SPAN&gt;&lt;SPAN&gt;json&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="naharsenior_1-1796392569282.png" style="width: 736px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/34088i85136FDF0C0CE559/image-dimensions/736x414?v=v2" width="736" height="414" role="button" title="naharsenior_1-1796392569282.png" alt="naharsenior_1-1796392569282.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="naharsenior_2-1796392569282.png" style="width: 778px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/34089i0473D3C6A025D65D/image-dimensions/778x323?v=v2" width="778" height="323" role="button" title="naharsenior_2-1796392569282.png" alt="naharsenior_2-1796392569282.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;&lt;SPAN&gt;Parameters: inputs you decide before the run&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P&gt;&lt;SPAN&gt;A &lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/jobs/job-parameters" target="_blank"&gt;&lt;SPAN&gt;job parameter&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; is a key-value pair defined on the job. Its value serves as a default that you can override for a single run using &lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/jobs/run-now" target="_blank"&gt;&lt;SPAN&gt;Run now with different parameters&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; or through the REST API. A &lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/jobs/task-parameters" target="_blank"&gt;&lt;SPAN&gt;task parameter&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; is defined on a single task and changes only when someone edits that task configuration.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In &lt;/SPAN&gt;&lt;SPAN&gt;orders_daily&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;env&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN&gt;run_date&lt;/SPAN&gt;&lt;SPAN&gt; are job parameters because every task requires them and because an operator may want to change them. Conversely, &lt;/SPAN&gt;&lt;SPAN&gt;source_format&lt;/SPAN&gt;&lt;SPAN&gt; is a task parameter because only &lt;/SPAN&gt;&lt;SPAN&gt;ingest_orders&lt;/SPAN&gt;&lt;SPAN&gt; uses it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Job parameters reach tasks in two ways, which frequently causes confusion. Tasks that accept key-value parameters—such as notebook and SQL tasks—receive job parameters automatically. If a job parameter and a task parameter share a key, the job parameter takes precedence.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="naharsenior_3-1796392569283.png" style="width: 675px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/34090i65FE40EEFDA13BFA/image-dimensions/675x383?v=v2" width="675" height="383" role="button" title="naharsenior_3-1796392569283.png" alt="naharsenior_3-1796392569283.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Best practices.&lt;/STRONG&gt;&lt;SPAN&gt; Place values that change per run or environment in job parameters; keep settings specific to one task in task parameters.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2&gt;&lt;SPAN&gt;Task values and dynamic value references: how tasks talk to each other&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P&gt;&lt;SPAN&gt;Some values do not exist until a task runs. For instance, the table name written by &lt;/SPAN&gt;&lt;SPAN&gt;ingest_orders&lt;/SPAN&gt;&lt;SPAN&gt; depends on &lt;/SPAN&gt;&lt;SPAN&gt;env&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN&gt;run_date&lt;/SPAN&gt;&lt;SPAN&gt;, while the row count depends on the data itself. These are &lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/jobs/task-values" target="_blank"&gt;&lt;SPAN&gt;task values&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;. A Python notebook task sets them using &lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/dev-tools/databricks-utils/#set-command-dbutilsjobstaskvaluesset" target="_blank"&gt;&lt;SPAN&gt;dbutils.jobs.taskValues.set&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;, and any subsequent task in the same run can read them by task name and key.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In &lt;/SPAN&gt;&lt;SPAN&gt;orders_daily&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ingest_orders&lt;/SPAN&gt;&lt;SPAN&gt; sets &lt;/SPAN&gt;&lt;SPAN&gt;output_table&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN&gt;row_count&lt;/SPAN&gt;&lt;SPAN&gt;, while &lt;/SPAN&gt;&lt;SPAN&gt;clean_orders&lt;/SPAN&gt;&lt;SPAN&gt; sets its own &lt;/SPAN&gt;&lt;SPAN&gt;output_table&lt;/SPAN&gt;&lt;SPAN&gt;. Without task values, &lt;/SPAN&gt;&lt;SPAN&gt;clean_orders&lt;/SPAN&gt;&lt;SPAN&gt; would have to reconstruct the table name from &lt;/SPAN&gt;&lt;SPAN&gt;env&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN&gt;run_date&lt;/SPAN&gt;&lt;SPAN&gt; - an approach that breaks if naming conventions change in one notebook but not another.&lt;/SPAN&gt;&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="naharsenior_4-1796392569283.png" style="width: 655px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/34092i1073929D4B710DA7/image-dimensions/655x385?v=v2" width="655" height="385" role="button" title="naharsenior_4-1796392569283.png" alt="naharsenior_4-1796392569283.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are two ways to read a task value, and the &lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/jobs/task-values" target="_blank"&gt;&lt;SPAN&gt;docs are clear&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; about which method to prefer. While &lt;/SPAN&gt;&lt;SPAN&gt;dbutils.jobs.taskValues.get&lt;/SPAN&gt;&lt;SPAN&gt; works inside Python code, it requires hardcoding the upstream task name; renaming that task breaks every reader.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A &lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/jobs/dynamic-value-references" target="_blank"&gt;&lt;SPAN&gt;dynamic value reference&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; such as &lt;/SPAN&gt;&lt;SPAN&gt;{{tasks.ingest_orders.values.output_table}}&lt;/SPAN&gt;&lt;SPAN&gt; resides in the task configuration, which Databricks recommends as the preferred way to read task values.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="naharsenior_5-1796392569283.png" style="width: 674px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/34091iB0429262FC12157C/image-dimensions/674x453?v=v2" width="674" height="453" role="button" title="naharsenior_5-1796392569283.png" alt="naharsenior_5-1796392569283.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;References can also read job metadata (such as run ID, start time, and trigger type) and parameter values directly. &lt;/SPAN&gt;&lt;SPAN&gt;orders_daily&lt;/SPAN&gt;&lt;SPAN&gt; uses references in three key ways:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Setting a default:&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;run_date&lt;/SPAN&gt;&lt;SPAN&gt; defaults to &lt;/SPAN&gt;&lt;SPAN&gt;{{job.start_time.iso_date}}&lt;/SPAN&gt;&lt;SPAN&gt;, so a scheduled run always processes its start date, while a backfill can override it. Start times resolve in UTC.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Passing a value between tasks: &lt;/STRONG&gt;&lt;SPAN&gt;clean_orders&lt;/SPAN&gt;&lt;SPAN&gt; has a task parameter, &lt;/SPAN&gt;&lt;SPAN&gt;input_table&lt;/SPAN&gt;&lt;SPAN&gt;, set to &lt;/SPAN&gt;&lt;SPAN&gt;{{tasks.ingest_orders.values.output_table}}&lt;/SPAN&gt;&lt;SPAN&gt;. The notebook reads &lt;/SPAN&gt;&lt;SPAN&gt;input_table&lt;/SPAN&gt;&lt;SPAN&gt; like any standard parameter without needing to know where the value originated, allowing the same notebook to be reused across jobs.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Describing the run: &lt;/STRONG&gt;&lt;SPAN&gt;audit_run&lt;/SPAN&gt;&lt;SPAN&gt; accepts &lt;/SPAN&gt;&lt;SPAN&gt;{{job.run_id}}&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;{{job.trigger.type}}&lt;/SPAN&gt;&lt;SPAN&gt;, and &lt;/SPAN&gt;&lt;SPAN&gt;{{job.start_time.iso_datetime}}&lt;/SPAN&gt;&lt;SPAN&gt; directly without requiring a task to compute them. In the audit table, Run 1 and Run 2 log distinct run IDs, trigger types, and timestamps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="naharsenior_6-1796392569284.png" style="width: 679px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/34093i46D67114E5A58E15/image-dimensions/679x501?v=v2" width="679" height="501" role="button" title="naharsenior_6-1796392569284.png" alt="naharsenior_6-1796392569284.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Best practices:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;Treat task names and keys as contracts between tasks: choose clear names and keep them stable. Pass references (such as a table name or path) rather than raw data. Check resolved values on the run details page after the initial execution; typos or missing braces are passed as literal strings rather than triggering immediate syntax errors.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2&gt;&lt;SPAN&gt;Choosing the right option&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH&gt;
&lt;P&gt;&lt;STRONG&gt;If the value is...&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TH&gt;
&lt;TH&gt;
&lt;P&gt;&lt;STRONG&gt;Use&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN&gt;Known before the run, and the operator may change it&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/jobs/job-parameters" target="_blank"&gt;&lt;SPAN&gt;Job parameter&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN&gt;Known before the run, and only one task needs it&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/jobs/task-parameters" target="_blank"&gt;&lt;SPAN&gt;Task parameter&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN&gt;Produced by a task during the run&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/jobs/task-values" target="_blank"&gt;&lt;SPAN&gt;Task value&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;, read through a reference&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN&gt;A fact about the job or the run&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/jobs/dynamic-value-references" target="_blank"&gt;&lt;SPAN&gt;Dynamic value reference&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;SPAN&gt;If you want one takeaway to try this week, find a downstream notebook that reconstructs a table name from parameters. Have the upstream task set the name as a task value and pass it to the downstream task via a reference. It is a small change, and the next time naming conventions change, only a single notebook will need editing.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H2&gt;&lt;SPAN&gt;Looking Ahead&lt;/SPAN&gt;&lt;/H2&gt;
&lt;P&gt;&lt;SPAN&gt;The same three options also apply to more complex orchestration logic. For example, dynamic value references drive the conditions in If/else tasks, and task values can feed the iteration lists in For each loops, letting you build jobs that branch and repeat based on what earlier tasks produce. That is something we can explore in a future post.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2026 14:01:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/parameters-task-values-and-dynamic-references-how-they-fit/m-p/178766#M2033</guid>
      <dc:creator>naharsenior</dc:creator>
      <dc:date>2026-12-04T14:01:58Z</dc:date>
    </item>
    <item>
      <title>Where Does a Deleted Customer Still Live?</title>
      <link>https://community.databricks.com/t5/community-articles/where-does-a-deleted-customer-still-live/m-p/177550#M2031</link>
      <description>&lt;P&gt;&lt;SPAN&gt;By &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 &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/85833"&gt;@sridharplv&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The request looks simple. A customer wants to be forgotten, legal signs off, and someone runs a DELETE against the customer table. The row stops showing up in queries, and the ticket gets closed.&lt;BR /&gt;&lt;BR /&gt;But the customer hasn't really left. They're still in last week's data files and in the change feed. They might be in a Postgres copy that an app reads from, or in a vector index that a chatbot searches. Some of those copies clean themselves up within a week. Some never do.&lt;BR /&gt;&lt;BR /&gt;In my last post, &lt;A href="https://community.databricks.com/t5/data-engineering/your-lakeflow-connect-table-is-a-replica-not-a-ledger/td-p/177399" target="_blank" rel="noopener"&gt;Your Lakeflow Connect Table Is a Replica&lt;/A&gt;, Not a Ledger, I argued for keeping history on purpose, somewhere a connector can't wipe it. This post looks at the opposite problem. Once someone has the right to be forgotten, every copy you've made has to be dealt with, and that includes the ledger you worked so hard to protect.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;A quick disclaimer: I'm not a lawyer, and none of this is legal advice. What follows is the engineering side. Where does personal data end up in a modern Lakehouse, how long does each copy last on default settings, and how do you build an erasure process you can actually prove?&lt;/P&gt;&lt;H1&gt;DELETE is the easy part&lt;/H1&gt;&lt;P&gt;The Delta Lake side of this is well covered already. Databricks' &lt;A href="https://docs.databricks.com/aws/en/security/privacy/gdpr-delta" target="_blank"&gt;GDPR guide&lt;/A&gt; explains it properly, and so does a recent &lt;A href="https://community.databricks.com/t5/certifications/delete-removed-the-customer-record-but-did-it-remove-the-data/m-p/168006" target="_blank"&gt;Community post&lt;/A&gt;, so here's the short version.&lt;/P&gt;&lt;P&gt;A DELETE removes the row from the current version of the table. If deletion vectors are enabled, the data file isn't rewritten at all; the row is just marked as deleted. To get rid of it from the files, you run REORG TABLE ... APPLY (PURGE), which according to the docs works on Delta tables, materialized views and streaming tables. Even then, the old files are still sitting in storage until VACUUM removes them, and by default it only touches files older than 7 days. Predictive optimization and pipeline maintenance run VACUUM for you. Without them, someone has to schedule it.&lt;/P&gt;&lt;P&gt;Until all of that has happened, time travel can bring the row straight back.&lt;/P&gt;&lt;P&gt;The harder question is everything outside that one table. Someone asked in the Community whether Databricks has a built-in way to delete a person's data across the whole Lakehouse. The &lt;A href="https://community.databricks.com/t5/data-governance/gdpr-ccpa-compliance-delete-for-pii-data/m-p/165481" target="_blank"&gt;accepted answer&lt;/A&gt;, from a Databricks employee, was no. You build it yourself with pipelines and control tables. And before you can build it, you need to know where to look.&lt;/P&gt;&lt;H1&gt;The erasure map&lt;/H1&gt;&lt;P&gt;I went through the current docs for every feature that copies or keeps data, and asked the same three questions each time. Why would a deleted row survive here? How long does it last on default settings? What actually removes it? I expected to end up with maybe half a dozen places. I stopped at twenty, and they fall into five groups.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="figure1_erasure_map (1).png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33702i6F2E3B7CDA074316/image-size/large?v=v2&amp;amp;px=999" role="button" title="figure1_erasure_map (1).png" alt="figure1_erasure_map (1).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here's the same map with the detail filled in.&lt;/P&gt;&lt;TABLE width="602"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="77"&gt;&lt;P&gt;&lt;STRONG&gt;Zone&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;&lt;STRONG&gt;Where the row survives&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="157"&gt;&lt;P&gt;&lt;STRONG&gt;Why it's still there&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;P&gt;&lt;STRONG&gt;Default lifetime&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="152"&gt;&lt;P&gt;&lt;STRONG&gt;What clears it&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="77"&gt;&lt;P&gt;Upstream&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Source systems and message topics&lt;/P&gt;&lt;/TD&gt;&lt;TD width="157"&gt;&lt;P&gt;Deleting in Databricks doesn't touch sources outside Delta Lake (&lt;A href="https://docs.databricks.com/aws/en/security/privacy/gdpr-delta" target="_blank"&gt;GDPR guide&lt;/A&gt;)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;P&gt;Whatever the source keeps&lt;/P&gt;&lt;/TD&gt;&lt;TD width="152"&gt;&lt;P&gt;Delete at the source; check topic retention&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="77"&gt;&lt;P&gt;Upstream&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Raw landing files read by Auto Loader&lt;/P&gt;&lt;/TD&gt;&lt;TD width="157"&gt;&lt;P&gt;cloudFiles.cleanSource is OFF by default&lt;/P&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;P&gt;Indefinitely&lt;/P&gt;&lt;/TD&gt;&lt;TD width="152"&gt;&lt;P&gt;cleanSource = DELETE; retention defaults to 30 days and must be over 7 (&lt;A href="https://docs.databricks.com/aws/en/ingestion/cloud-object-storage/auto-loader/clean-source" target="_blank"&gt;docs&lt;/A&gt;)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="77"&gt;&lt;P&gt;Upstream&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Lakeflow Connect staging volume&lt;/P&gt;&lt;/TD&gt;&lt;TD width="157"&gt;&lt;P&gt;The gateway buffers extracted changes&lt;/P&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;P&gt;Purged after 30 days (&lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/cdc-overview" target="_blank"&gt;docs&lt;/A&gt;)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="152"&gt;&lt;P&gt;Time&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="77"&gt;&lt;P&gt;Delta table&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Soft-deleted rows&lt;/P&gt;&lt;/TD&gt;&lt;TD width="157"&gt;&lt;P&gt;Deletion vectors mark rows without rewriting files&lt;/P&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;P&gt;Until the files are rewritten&lt;/P&gt;&lt;/TD&gt;&lt;TD width="152"&gt;&lt;P&gt;REORG TABLE ... APPLY (PURGE)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="77"&gt;&lt;P&gt;Delta table&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Old data files&lt;/P&gt;&lt;/TD&gt;&lt;TD width="157"&gt;&lt;P&gt;Time travel&lt;/P&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;P&gt;7 days, then until VACUUM actually runs&lt;/P&gt;&lt;/TD&gt;&lt;TD width="152"&gt;&lt;P&gt;VACUUM or predictive optimization&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="77"&gt;&lt;P&gt;Delta table&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Change data feed files&lt;/P&gt;&lt;/TD&gt;&lt;TD width="157"&gt;&lt;P&gt;Change records include the row data (&lt;A href="https://docs.databricks.com/aws/en/delta/delta-change-data-feed" target="_blank"&gt;docs&lt;/A&gt;)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;P&gt;Same retention as data files&lt;/P&gt;&lt;/TD&gt;&lt;TD width="152"&gt;&lt;P&gt;VACUUM&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="77"&gt;&lt;P&gt;Delta table&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Transaction log statistics&lt;/P&gt;&lt;/TD&gt;&lt;TD width="157"&gt;&lt;P&gt;Per-file column min and max values live in the log&lt;/P&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;P&gt;Log files: 30 days by default (&lt;A href="https://docs.databricks.com/aws/en/delta/vacuum" target="_blank"&gt;docs&lt;/A&gt;)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="152"&gt;&lt;P&gt;Log cleanup; keep PII columns out of statistics&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="77"&gt;&lt;P&gt;Delta table&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Disk cache on running clusters&lt;/P&gt;&lt;/TD&gt;&lt;TD width="157"&gt;&lt;P&gt;Can still hold files that VACUUM deleted (&lt;A href="https://docs.databricks.com/aws/en/delta/vacuum" target="_blank"&gt;docs&lt;/A&gt;)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;P&gt;Until the cluster restarts&lt;/P&gt;&lt;/TD&gt;&lt;TD width="152"&gt;&lt;P&gt;Restart long-running clusters&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="77"&gt;&lt;P&gt;Copies&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;SCD type 2 histories&lt;/P&gt;&lt;/TD&gt;&lt;TD width="157"&gt;&lt;P&gt;A delete closes the current version; older versions stay&lt;/P&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;P&gt;Indefinitely&lt;/P&gt;&lt;/TD&gt;&lt;TD width="152"&gt;&lt;P&gt;Delete every version of the key&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="77"&gt;&lt;P&gt;Copies&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Your history zone (the ledger)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="157"&gt;&lt;P&gt;It was built to keep the past&lt;/P&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;P&gt;Indefinitely&lt;/P&gt;&lt;/TD&gt;&lt;TD width="152"&gt;&lt;P&gt;Include it in the erasure job&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="77"&gt;&lt;P&gt;Copies&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Streaming tables and materialized views&lt;/P&gt;&lt;/TD&gt;&lt;TD width="157"&gt;&lt;P&gt;Streaming reads don't pass deletes downstream; MVs need a refresh (&lt;A href="https://docs.databricks.com/aws/en/ldp/gdpr" target="_blank"&gt;docs&lt;/A&gt;)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;P&gt;Until handled&lt;/P&gt;&lt;/TD&gt;&lt;TD width="152"&gt;&lt;P&gt;Delete with DML plus skipChangeCommits; refresh MVs&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="77"&gt;&lt;P&gt;Copies&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Shallow clones&lt;/P&gt;&lt;/TD&gt;&lt;TD width="157"&gt;&lt;P&gt;VACUUM keeps any file a shallow clone still needs (&lt;A href="https://docs.databricks.com/aws/en/tables/operations/clone-unity-catalog" target="_blank"&gt;docs&lt;/A&gt;)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;P&gt;As long as the clone exists&lt;/P&gt;&lt;/TD&gt;&lt;TD width="152"&gt;&lt;P&gt;Delete from the clone, or drop and re-create it&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="77"&gt;&lt;P&gt;Copies&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Deep clones and CTAS copies&lt;/P&gt;&lt;/TD&gt;&lt;TD width="157"&gt;&lt;P&gt;Independent copies of the data (&lt;A href="https://docs.databricks.com/aws/en/tables/operations/clone" target="_blank"&gt;docs&lt;/A&gt;)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;P&gt;Indefinitely&lt;/P&gt;&lt;/TD&gt;&lt;TD width="152"&gt;&lt;P&gt;Treat them as separate tables&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="77"&gt;&lt;P&gt;Serving and AI&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Lakebase synced tables&lt;/P&gt;&lt;/TD&gt;&lt;TD width="157"&gt;&lt;P&gt;A managed copy in Postgres&lt;/P&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;P&gt;Until the next sync&lt;/P&gt;&lt;/TD&gt;&lt;TD width="152"&gt;&lt;P&gt;Triggered and Continuous modes apply deletes; Snapshot mode on the next full sync (&lt;A href="https://docs.databricks.com/aws/en/oltp/projects/sync-tables" target="_blank"&gt;docs&lt;/A&gt;)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="77"&gt;&lt;P&gt;Serving and AI&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Lakebase restore history&lt;/P&gt;&lt;/TD&gt;&lt;TD width="157"&gt;&lt;P&gt;Point-in-time restore&lt;/P&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;P&gt;Configurable, up to 30 days (&lt;A href="https://docs.databricks.com/aws/en/oltp/projects/point-in-time-restore" target="_blank"&gt;docs&lt;/A&gt;)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="152"&gt;&lt;P&gt;The window expiring&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="77"&gt;&lt;P&gt;Serving and AI&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Lakebase snapshots, branches and child instances&lt;/P&gt;&lt;/TD&gt;&lt;TD width="157"&gt;&lt;P&gt;Separate copies; a Provisioned child instance has no automatic expiry (&lt;A href="https://docs.databricks.com/aws/en/oltp/instances/create/child-instance" target="_blank"&gt;docs&lt;/A&gt;)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;P&gt;Until deleted&lt;/P&gt;&lt;/TD&gt;&lt;TD width="152"&gt;&lt;P&gt;Delete them&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="77"&gt;&lt;P&gt;Serving and AI&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Lakebase change data feed (lb_&amp;lt;table&amp;gt;_history)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="157"&gt;&lt;P&gt;An append-only Delta history of every change (&lt;A href="https://docs.databricks.com/aws/en/oltp/projects/lakehouse-sync" target="_blank"&gt;docs&lt;/A&gt;)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;P&gt;Indefinitely&lt;/P&gt;&lt;/TD&gt;&lt;TD width="152"&gt;&lt;P&gt;DELETE and purge in the history table&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="77"&gt;&lt;P&gt;Serving and AI&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Vector Search indexes&lt;/P&gt;&lt;/TD&gt;&lt;TD width="157"&gt;&lt;P&gt;A Delta Sync index copies source columns (&lt;A href="https://docs.databricks.com/aws/en/vector-search/create-vector-search" target="_blank"&gt;docs&lt;/A&gt;)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;P&gt;Until the next sync&lt;/P&gt;&lt;/TD&gt;&lt;TD width="152"&gt;&lt;P&gt;Triggered: start a sync. Direct Access: delete through the API&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="77"&gt;&lt;P&gt;Outside&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Delta Sharing recipients&lt;/P&gt;&lt;/TD&gt;&lt;TD width="157"&gt;&lt;P&gt;WITH HISTORY allows recipients to time travel; their own copies are out of your reach (&lt;A href="https://docs.databricks.com/aws/en/delta-sharing/create-share" target="_blank"&gt;docs&lt;/A&gt;)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;P&gt;Your retention, then their policy&lt;/P&gt;&lt;/TD&gt;&lt;TD width="152"&gt;&lt;P&gt;Share history only when needed; cover copies in the contract&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="77"&gt;&lt;P&gt;Outside&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Query history text&lt;/P&gt;&lt;/TD&gt;&lt;TD width="157"&gt;&lt;P&gt;Literal values in SQL, like an email in a WHERE clause&lt;/P&gt;&lt;/TD&gt;&lt;TD width="100"&gt;&lt;P&gt;180 days free retention on AWS (&lt;A href="https://docs.databricks.com/aws/admin/system-tables" target="_blank"&gt;docs&lt;/A&gt;)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="152"&gt;&lt;P&gt;Never put identifiers in SQL text&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;A lot of that table makes sense once it's written down. Three rows caught me off guard, though.&lt;/P&gt;&lt;H2&gt;The transaction log keeps statistics&lt;/H2&gt;&lt;P&gt;To skip files at query time, Delta stores the minimum and maximum value of each indexed column for every data file, and it keeps them in the transaction log. By default it does this for the first 32 columns. So if email happens to be one of them, a customer's address can sit in the log as some file's min or max value. Log files stick around for 30 days by default and are cleaned up after checkpoints, which is a separate process from VACUUM.&lt;/P&gt;&lt;P&gt;The fix is cheap. Set delta.dataSkippingStatsColumns to the columns you actually filter on and leave free-text personal data out of it (&lt;A href="https://docs.databricks.com/tables/data-skipping" target="_blank"&gt;data skipping docs&lt;/A&gt;). It only affects statistics collected after you set it, so do it when you create the table. One more thing to check: on Unity Catalog managed tables, predictive optimization picks statistics columns based on your query filters, so look at what it chose instead of assuming.&lt;/P&gt;&lt;H2&gt;SCD type 2 tables remember everyone&lt;/H2&gt;&lt;P&gt;In the last post I recommended AUTO CDC FROM SNAPSHOT and change-feed SCD2 tables for keeping history. When a delete comes through, both of them close the current version and leave every older version where it is. Lakeflow Connect's own SCD2 behaves the same way. For the Salesforce connector, a Community answer explains that it &lt;A href="https://community.databricks.com/t5/data-engineering/salesforce-connector-scd2-get-new-record-with-isdeleted-true-on/m-p/143409" target="_blank"&gt;closes the record&lt;/A&gt; by setting __END_AT. The connector docs also point out that deleting a table or column in the source doesn't remove that data from the destination, even with SCD type 1 (&lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/scd" target="_blank"&gt;docs&lt;/A&gt;). The older versions stay until your erasure job deletes them.&lt;/P&gt;&lt;P&gt;Funnily enough, the full refresh I warned about in part one is actually useful here. For a connector-owned SCD2 table, a full refresh takes a fresh snapshot that no longer includes the customer. The catch is that it wipes everyone else's history too, which is usually the thing you built the ledger to prevent. So in practice you'll still delete explicitly.&lt;/P&gt;&lt;H2&gt;Lakebase adds copies you don't think of as copies&lt;/H2&gt;&lt;P&gt;A synced table is a managed copy of your data in Postgres. In Triggered and Continuous modes, deletes flow through via the change data feed. In Snapshot mode, the row only disappears at the next full sync.&lt;/P&gt;&lt;P&gt;The database also keeps its own past. Point-in-time restore can bring back any moment inside the restore window, which you can set to as much as 30 days. Snapshots and branches are separate copies again, and on Lakebase Provisioned a child instance created from an earlier point never expires on its own.&lt;/P&gt;&lt;P&gt;And if you use Lakebase change data feed to bring application data into the Lakehouse, every insert, update and delete lands as a new row in an append-only Delta table. So the app deletes the customer, but the history table still has every version of them.&lt;/P&gt;&lt;H1&gt;The deadline is the sum of the windows&lt;/H1&gt;&lt;P&gt;Databricks' own guide uses one calendar month as an example deadline for erasure requests. In India, the DPDP Act gives people a right to erasure. The &lt;A href="https://static.pib.gov.in/WriteReadData/specificdocs/documents/2025/nov/doc20251117695301.pdf" target="_blank"&gt;DPDP Rules&lt;/A&gt; were notified in November 2025, and the data-principal rights provisions are due to take effect in May 2027. Whatever your exact deadline is, the engineering question is the same: how long until the last copy is gone?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="figure2_linger_timeline (1).png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33703i3A7F7A3B90B825F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="figure2_linger_timeline (1).png" alt="figure2_linger_timeline (1).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Take a row deleted on day 0. If you run REORG straight away, it's out of the current files that day. The old files go after 7 days, but only when VACUUM actually runs. Its log statistics can hang on for about 30 days. A landing file with cleanSource set to DELETE is removed after 30 days by default, and with cleanSource left off, it's never removed. A Lakebase restore window can hold the row for up to another 30 days. And everything in the bottom row of Figure 2 stays until a person deletes it.&lt;/P&gt;&lt;P&gt;None of these windows is wrong. Each one is there for a reason, whether that's recovery, debugging or rollback. The trouble is that nobody owns the total. So this is the rule I'd design around:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Your erasure deadline is set by the longest window in the chain, not by the first DELETE.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Where you can, shorten the windows on purpose. The table properties delta.deletedFileRetentionDuration and delta.logRetentionDuration control how long old files and log history are kept. Shorter windows give you less room to recover from mistakes, though, and Databricks recommends never running VACUUM with a retention under 7 days. For copies that never expire, there's no setting to change. They just have to be part of the job.&lt;/P&gt;&lt;H1&gt;How I'd design for it&lt;/H1&gt;&lt;H2&gt;Erase by key, not by email&lt;/H2&gt;&lt;P&gt;Run the erasure against an internal surrogate key, never an email address or phone number. SQL run on SQL warehouses, serverless compute and Lakeflow pipelines is recorded in system.query.history. The statement text is &lt;A href="https://docs.databricks.com/aws/en/admin/system-tables/query-history" target="_blank"&gt;redacted by default&lt;/A&gt;, and only account admins and members of the databricks_pii_access group can read it, but it's still stored. Keep the email-to-key mapping in one restricted table, and erase that mapping last.&lt;/P&gt;&lt;H2&gt;Keep a registry of every copy&lt;/H2&gt;&lt;P&gt;The map above is generic. Yours has to be specific: a registry table listing every table that holds personal data, its key column and what kind of object it is. Unity Catalog lineage is handy for finding downstream tables nobody remembers creating. The erasure job loops over this registry, and it's the first thing an auditor will want to see.&lt;/P&gt;&lt;H2&gt;Leave personal data out of statistics&lt;/H2&gt;&lt;P&gt;On new tables that hold personal data, set delta.dataSkippingStatsColumns and skip any columns you never filter on.&lt;/P&gt;&lt;H2&gt;Give every history table a delete path&lt;/H2&gt;&lt;P&gt;Every SCD2 table and ledger needs a documented way to remove all versions of a key, not just the current one.&lt;/P&gt;&lt;H2&gt;Nudge the copies that won't update themselves&lt;/H2&gt;&lt;P&gt;Materialized views need a refresh. Triggered vector indexes need a sync, and so do Lakebase synced tables in Snapshot or Triggered mode. Put those steps in the same job, after the deletes.&lt;/P&gt;&lt;H2&gt;Know where your boundary is&lt;/H2&gt;&lt;P&gt;On Databricks SQL and Databricks Runtime 16.2 and above, WITH HISTORY is the default when you add a table to a share. If your recipients don't need time travel, add tables WITHOUT HISTORY. Anything a recipient copies, or anything someone downloads, has left your platform, and that's a matter for contracts and process rather than code.&lt;/P&gt;&lt;H1&gt;An erasure job you can prove&lt;/H1&gt;&lt;P&gt;This is the shape I'd go with. Two small tables drive the whole thing: one says who to erase, and the other says where personal data lives.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;-- Who to erase: internal keys only, never emails or phone numbers
CREATE TABLE IF NOT EXISTS privacy.erasure_requests (
  request_id   STRING,
  subject_key  BIGINT,
  approved_at  TIMESTAMP,
  status       STRING     -- APPROVED, ERASED, VERIFIED
);
 
-- Where personal data lives
CREATE TABLE IF NOT EXISTS privacy.erasure_registry (
  table_name   STRING,    -- catalog.schema.table
  key_column   STRING,
  kind         STRING     -- DELTA, SCD2, STREAMING, MV
);&lt;/LI-CODE&gt;&lt;P&gt;The first task deletes and purges. Since the delete filters on the key column alone, it catches every SCD2 version of the key, not just the current one:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;pending = """SELECT subject_key FROM privacy.erasure_requests
             WHERE status = 'APPROVED'"""
 
for t in spark.table("privacy.erasure_registry").collect():
    if t.kind == "MV":
        continue  # MVs are refreshed by their pipeline in the next task
    spark.sql(f"DELETE FROM {t.table_name} WHERE {t.key_column} IN ({pending})")
    spark.sql(f"REORG TABLE {t.table_name} APPLY (PURGE)")&lt;/LI-CODE&gt;&lt;P&gt;After that, the job refreshes the affected materialized views and syncs any Triggered vector indexes and Lakebase synced tables. Then it checks that nothing in the registry still returns the key:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;leftovers = []
for t in spark.table("privacy.erasure_registry").collect():
    n = spark.sql(f"""SELECT count(*) AS n FROM {t.table_name}
                      WHERE {t.key_column} IN ({pending})""").first().n
    if n &amp;gt; 0:
        leftovers.append((t.table_name, n))
 
assert not leftovers, f"Erasure incomplete: {leftovers}"&lt;/LI-CODE&gt;&lt;P&gt;If that passes, the request moves to ERASED. A second check runs later, once the longest retention window has passed. It confirms that VACUUM ran and restore windows expired, and then the request moves to VERIFIED.&lt;/P&gt;&lt;P&gt;I'd keep both statuses because erasure really does happen in two steps. ERASED means no query can see the customer any more. VERIFIED means the windows have run out and the old files are physically gone. An auditor will care about that difference, and it's much easier to explain when your job already records it.&lt;/P&gt;&lt;P&gt;And keep the evidence log itself free of personal data. A request ID, the table name, row counts and timestamps are enough to show what happened.&lt;/P&gt;&lt;H1&gt;Checking it yourself&lt;/H1&gt;&lt;P&gt;If you want to see this for yourself, it takes less than half an hour in a test workspace. Create a small table with change data feed turned on, make a shallow clone of it, and feed an SCD2 table from it with AUTO CDC. Insert a test customer with a made-up email, then delete them from the source. Now look for them: in the previous table version using time travel, in table_changes(), in the shallow clone and in the SCD2 table. Run REORG ... APPLY (PURGE) and look again. Finally, check the query history for the SQL you just ran. I'd be curious to hear in the comments what turns up.&lt;/P&gt;&lt;H1&gt;What I've left out&lt;/H1&gt;&lt;P&gt;The legal side depends on the country, the sector and your contracts, and it gets complicated quickly. India's DPDP Rules, for example, also require some processing logs to be kept for at least a year, so retention and erasure policies need to be designed together. Get your legal team involved early, and think of this post as the engineering half of that conversation.&lt;/P&gt;&lt;P&gt;I've also skipped alternatives like pseudonymisation and per-customer encryption keys. Databricks' guide says complete deletion is the safest option, because the other techniques can leave a risk of re-identification. They may still be worth discussing, but that's a call for legal and security, not only the data team.&lt;/P&gt;&lt;H1&gt;If you remember one thing&lt;/H1&gt;&lt;P&gt;DELETE hides a row. It doesn't erase it. A modern Lakehouse copies data into places that aren't even tables, like log statistics, Postgres restore points, vector indexes and query text. Some of those copies expire on their own, some need a nudge, and some will outlive everyone involved unless you delete them. Your real deadline is the longest window in that chain, and the ledger you built to keep history needs a delete path too.&lt;/P&gt;&lt;P&gt;In part one, the point was that a ledger only exists if someone chooses to keep one. This is the mirror image of that: a deletion is only real once you can show where every copy went.&lt;/P&gt;&lt;H1&gt;Credit where it's due&lt;/H1&gt;&lt;P&gt;This post builds on earlier work from Databricks and the Community:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The Databricks guide &lt;A href="https://docs.databricks.com/aws/en/security/privacy/gdpr-delta" target="_blank"&gt;Prepare your data for GDPR compliance&lt;/A&gt;, which covers deletion vectors, REORG and VACUUM in detail.&lt;/LI&gt;&lt;LI&gt;The Databricks blogs &lt;A href="https://databricks.com/blog/2022/03/23/implementing-the-gdpr-right-to-be-forgotten-in-delta-lake.html" target="_blank"&gt;Implementing the GDPR 'Right to be Forgotten' in Delta Lake&lt;/A&gt; and &lt;A href="https://www.databricks.com/blog/2022/09/27/handling-right-be-forgotten-gdpr-and-ccpa-using-delta-live-tables-dlt.html" target="_blank"&gt;Handling 'Right to be Forgotten' with Delta Live Tables&lt;/A&gt;.&lt;/LI&gt;&lt;LI&gt;The Community post &lt;A href="https://community.databricks.com/t5/certifications/delete-removed-the-customer-record-but-did-it-remove-the-data/m-p/168006" target="_blank"&gt;DELETE Removed the Customer Record, but Did It Remove the Data?&lt;/A&gt;, on logical versus physical deletion.&lt;/LI&gt;&lt;LI&gt;The Community thread &lt;A href="https://community.databricks.com/t5/data-governance/gdpr-ccpa-compliance-delete-for-pii-data/m-p/165481" target="_blank"&gt;GDPR/CCPA compliance delete for PII data&lt;/A&gt;, which confirmed there's no built-in cross-Lakehouse deletion service.&lt;/LI&gt;&lt;LI&gt;The Community technical blog on &lt;A href="https://community.databricks.com/t5/blogs/blogarticleprintpage/blog-id/technical-blog/article-id/282" target="_blank"&gt;propagating deletes with change data feed&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;H1&gt;References&lt;/H1&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/security/privacy/gdpr-delta" target="_blank"&gt;Prepare your data for GDPR compliance&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/ldp/gdpr" target="_blank"&gt;GDPR and CCPA compliance with Lakeflow pipelines&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/delta/vacuum" target="_blank"&gt;Remove unused data files with vacuum&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/delta/delta-change-data-feed" target="_blank"&gt;Use Delta Lake change data feed&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/tables/data-skipping" target="_blank"&gt;Data skipping and statistics columns&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/tables/operations/clone-unity-catalog" target="_blank"&gt;Shallow clone for Unity Catalog tables&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/tables/operations/clone" target="_blank"&gt;Clone a table on Databricks&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/delta-sharing/create-share" target="_blank"&gt;Create and manage shares for Delta Sharing&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/scd" target="_blank"&gt;Lakeflow Connect 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/cdc-overview" target="_blank"&gt;Managed database connectors&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/ingestion/cloud-object-storage/auto-loader/clean-source" target="_blank"&gt;Clean up processed files with Auto Loader&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/oltp/projects/sync-tables" target="_blank"&gt;Lakebase synced tables&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/oltp/projects/point-in-time-restore" target="_blank"&gt;Lakebase point-in-time restore&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/oltp/instances/create/child-instance" target="_blank"&gt;Lakebase Provisioned child instances&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/oltp/projects/lakehouse-sync" target="_blank"&gt;Lakebase change data feed&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/vector-search/create-vector-search" target="_blank"&gt;Create vector search endpoints and indexes&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/admin/system-tables/query-history" target="_blank"&gt;Query history system table&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/admin/system-tables" target="_blank"&gt;System tables reference&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://static.pib.gov.in/WriteReadData/specificdocs/documents/2025/nov/doc20251117695301.pdf" target="_blank"&gt;DPDP Rules, 2025 (PIB backgrounder)&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 25 Nov 2026 09:55:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/where-does-a-deleted-customer-still-live/m-p/177550#M2031</guid>
      <dc:creator>ozaaditya</dc:creator>
      <dc:date>2026-11-25T09:55:01Z</dc:date>
    </item>
    <item>
      <title>How Genie ZeroOps investigates pipeline problems</title>
      <link>https://community.databricks.com/t5/community-articles/how-genie-zeroops-investigates-pipeline-problems/m-p/178629#M2029</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Databricks Genie ZeroOps investigates failures in the jobs and pipelines you choose to monitor. It can also investigate stale or incomplete tables when data quality monitoring is enabled. Open a finding in the ZeroOps inbox and you can see the suspected cause, follow the link to the source, and ask Genie Code why it proposed a particular repair.&lt;/P&gt;&lt;P&gt;In its Summit demo, Databricks showed ZeroOps tracing a drop in row count upstream from an affected dashboard and checking a repair on a shallow clone, a separate table that initially shares the original data files. That’s where I’d ask one more question before releasing a sales report. Could the repaired pipeline return every order and still publish the wrong sales total? One order with a discount is enough to find out.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="01_Hero.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/34020iC0C45A94A540738A/image-size/large?v=v2&amp;amp;px=999" role="button" title="01_Hero.png" alt="01_Hero.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To try the public beta&lt;/STRONG&gt;, have a workspace admin enable Genie ZeroOps in Previews. Open &lt;STRONG&gt;Jobs &amp;amp; Pipelines&lt;/STRONG&gt;, choose &lt;STRONG&gt;Open ZeroOps&lt;/STRONG&gt;, then &lt;STRONG&gt;Configure&lt;/STRONG&gt;. I’d start with the job that builds one report and the tables it uses. The first investigation pass looks back 24 hours. Table quality monitoring carries a separate charge.&lt;/P&gt;&lt;H2&gt;Which column should replace the missing one?&lt;/H2&gt;&lt;P&gt;Suppose the source used to send one field, order_total. Now it sends two, gross_amount and net_amount. A query reading the revised source can fail immediately on the missing field. A landing table can behave differently. Depending on how Auto Loader and the destination Delta table handle schema evolution, the old column can survive with nulls on new orders. In that case, the same query can finish and quietly lose sales from its total.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="02_Sales.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/34021i3E347B5C4C30B810/image-size/large?v=v2&amp;amp;px=999" role="button" title="02_Sales.png" alt="02_Sales.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Both orders in the figure loaded. Summing the old column gives $100 because SQL skips the null on order B. Adding B’s gross amount gives $200. The report owner defines sales after discounts and before tax, so B contributes $90 and the report should show &lt;STRONG&gt;$190&lt;/STRONG&gt;. A full-price test order would leave the gross and net calculations looking equally good.&lt;/P&gt;&lt;P&gt;I’d keep the source version on each order, choose the amount specified for that version, and hold the total if any order has an unfamiliar version or lacks its required amount. Then I’d put the discounted order in the release test. It gives the next engineer a way to check the meaning of the change without having to reconstruct this conversation.&lt;/P&gt;&lt;H2&gt;What can two empty cells tell us about delivery?&lt;/H2&gt;&lt;P&gt;Databricks can compare the volume written to a table over 24 hours with its historical range. Its beta completeness checks can also examine up to three columns independently, with up to 50 distinct values per column. Suppose we choose store and sales channel. Can we tell whether each store sent its web and shop deliveries?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="03_Coverage.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/34022i71B2D9955669DD72/image-size/large?v=v2&amp;amp;px=999" role="button" title="03_Coverage.png" alt="03_Coverage.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Each store still has ten orders. Each channel still has ten. Look inside the grid, though, and East has no shop orders while West has no web orders. Either store might have had a quiet day. The loaded table alone can’t tell us.&lt;/P&gt;&lt;P&gt;I’d start from the deliveries &lt;STRONG&gt;due&lt;/STRONG&gt;, then match each one to its source close and its loaded orders by business date, store and channel. That lets me compare the declared count with the loaded count, even when nothing arrived. A store reporting zero has answered the question. A store that hasn’t reported still owes an answer. I’d run this check at the deadline and have the monitored job fail with the names of the missing deliveries. A SQL condition on a job trigger can skip starting the run, and a manual &lt;STRONG&gt;Run now&lt;/STRONG&gt; bypasses that condition. Putting the check inside the job keeps it in the replay path.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="06_Order_Identity.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/34023iBB97C2A1EB6124F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="06_Order_Identity.png" alt="06_Order_Identity.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There’s one more check worth making when a delivery is replayed. In this example, losing order E3 and loading E2 twice preserves both the count and the dollar total. If the source supplies order IDs, compare them and their occurrence counts. If it supplies only a final count, record exactly what you reconciled.&lt;/P&gt;&lt;H2&gt;What did the 08:00 forecast actually know?&lt;/H2&gt;&lt;P&gt;Now look at a different morning, with three stores due to report. East has delivered 100 orders, West has confirmed zero, and North is still outstanding. At 08:20 North delivers 40. The analyst updates the report at 08:25.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="04_Cutoff.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/34024iFAFCDD151E529AE2/image-size/large?v=v2&amp;amp;px=999" role="button" title="04_Cutoff.png" alt="04_Cutoff.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;At 08:00 I’d put &lt;STRONG&gt;“100 orders received. Two of three stores confirmed. North pending.”&lt;/STRONG&gt; beside the number. An assistant answering questions about the report needs those same facts. I’d share this short status with analysts. A shared ZeroOps finding can expose code excerpts and sample rows to its recipients.&lt;/P&gt;&lt;P&gt;By 08:25 the analyst can publish 140. If an ML engineer later rebuilds the forecast’s inputs using that corrected total, the model gets 40 orders it could never have seen at prediction time. I’d keep a copy of the forecast input or timestamp each feature by when it became available. A point-in-time join uses the timestamp you give it. Yesterday’s business date can’t tell you when North’s orders arrived. ZeroOps can investigate the tables feeding a model or assistant. Evaluating the prediction or the answer is still the application team’s job.&lt;/P&gt;&lt;H2&gt;How the fix reaches production&lt;/H2&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="05_Release.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/34025i01ADB2A64F602F41/image-size/large?v=v2&amp;amp;px=999" role="button" title="05_Release.png" alt="05_Release.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For a job that reads a workspace notebook, asking Genie Code to apply a fix edits that copy. A job pointed at it can pick up the edit on its next run. For an eligible Git-backed job, &lt;STRONG&gt;Create PR&lt;/STRONG&gt; asks the engineer to confirm a push to a branch using a Git credential with write access. Open the pull request from the link or the branch in your Git provider. I’d protect the production branch, test the $190 result in staging, and deploy the same reviewed revision through the team’s CI/CD pipeline.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What’s coming.&lt;/STRONG&gt; Databricks says its GitHub App will request permission to create and manage pull requests for Genie Code and ZeroOps. That is an upcoming change. Branch protections and required reviews still apply.&lt;/P&gt;&lt;P&gt;A successful rerun can close the ZeroOps finding. For the next investigation, I’d save one instruction in the ZeroOps configuration. &lt;STRONG&gt;“Show which source deliveries were due, which confirmed zero, and which are still outstanding.”&lt;/STRONG&gt; Saved instructions apply to new investigations. In an open finding, ask in the thread. Now the engineer knows what evidence to bring to the report owner, and the report owner can explain both the number released and the time it became complete.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2026 17:37:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/how-genie-zeroops-investigates-pipeline-problems/m-p/178629#M2029</guid>
      <dc:creator>MouR</dc:creator>
      <dc:date>2026-12-03T17:37:06Z</dc:date>
    </item>
    <item>
      <title>Delta MERGE Duplicating Rows? Test It on a Shallow Clone First</title>
      <link>https://community.databricks.com/t5/community-articles/delta-merge-duplicating-rows-test-it-on-a-shallow-clone-first/m-p/178599#M2028</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="01-cover.jpg" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33994i2A69D92362FF6891/image-size/large?v=v2&amp;amp;px=999" role="button" title="01-cover.jpg" alt="01-cover.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;bricksentry started with a bad MERGE that disturbed an entire target table. The SQL looked fine. The problem was in the rows, and nothing in our process looked at the rows.&lt;/P&gt;&lt;P&gt;That's the kind of bug I worry about most, and it's getting more common now that AI assistants like Genie Code, Claude Code and Cursor write more of our SQL and PySpark. Code review checks the code. It doesn't check what the change does to the data.&lt;/P&gt;&lt;P&gt;This post walks through how I now check a data change &lt;STRONG&gt;before&lt;/STRONG&gt; it runs on Databricks. You can do every step by hand with plain Delta features. At the end I'll show the open-source tool I built to automate it, how it has been tested, what people trying it have taught me, and where I'd love your help.&lt;/P&gt;&lt;H2&gt;The bug: one line in the ON clause&lt;/H2&gt;&lt;PRE&gt;MERGE INTO main.sales.orders o
USING updates u
  ON o.order_id = u.order_id
 AND o.status   = u.status        -- the added line
WHEN MATCHED THEN UPDATE SET *
WHEN NOT MATCHED THEN INSERT *&lt;/PRE&gt;&lt;P&gt;It reads well. But any order whose status changed no longer matches its old row, so the MERGE inserts it again. Databricks raises no error: DELTA_MULTIPLE_SOURCE_ROW_MATCHING_TARGET_ROW_IN_MERGE only fires when several source rows match one target row, and here nothing matches at all. You get duplicate order IDs, and total revenue barely moves, so a dashboard won't flag it either.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="02-the-bug.jpg" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33995iD5EDA73EECFE3640/image-size/large?v=v2&amp;amp;px=999" role="button" title="02-the-bug.jpg" alt="02-the-bug.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;H2&gt;Four steps, plain Delta, before it ships&lt;/H2&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="03-steps.jpg" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33996i03AC2C88CC259E5F/image-size/large?v=v2&amp;amp;px=999" role="button" title="03-steps.jpg" alt="03-steps.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Rehearse it on a shallow clone.&lt;/STRONG&gt; A shallow clone copies only metadata, so it's fast and cheap even on big tables. Run the exact statement there. Production isn't touched.&lt;/P&gt;&lt;PRE&gt;CREATE TABLE sandbox.orders_rehearsal SHALLOW CLONE main.sales.orders;
-- run the same MERGE, aimed at sandbox.orders_rehearsal&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;2. Compare it row by row, on the key.&lt;/STRONG&gt; Row counts and sums aren't enough. Join the clone to production on the business key and count added, removed and changed rows, plus duplicate keys.&lt;/P&gt;&lt;PRE&gt;SELECT order_id, COUNT(*) AS n
FROM sandbox.orders_rehearsal
GROUP BY order_id HAVING COUNT(*) &amp;gt; 1;&lt;/PRE&gt;&lt;P&gt;In the example: 35 rows added where 10 were expected, 25 duplicate order IDs, and sum(amount) up only 0.07%.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. Check who depends on the table.&lt;/STRONG&gt; Unity Catalog lineage shows the downstream tables, jobs and dashboards. One tip: lineage is recorded when queries run, so a table created a few minutes ago may show no downstream yet.&lt;/P&gt;&lt;PRE&gt;SELECT DISTINCT target_table_full_name
FROM system.access.table_lineage
WHERE source_table_full_name = 'main.sales.orders';&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;4. Know the way back before you need it.&lt;/STRONG&gt; Write down the version &lt;EM&gt;before&lt;/EM&gt; the change ships, then drop the clone.&lt;/P&gt;&lt;PRE&gt;DESCRIBE HISTORY main.sales.orders;
RESTORE TABLE main.sales.orders TO VERSION AS OF 41;&lt;/PRE&gt;&lt;H2&gt;Doing this on every change: bricksentry&lt;/H2&gt;&lt;P&gt;Doing those four steps by hand on every change is the part nobody keeps up. So I built &lt;STRONG&gt;bricksentry&lt;/STRONG&gt;, an open-source (Apache-2.0) change-safety layer for Databricks. It does the steps above and gives one verdict from &lt;EM&gt;your&lt;/EM&gt; policy rules: pass, warn, needs_human or block. No LLM decides whether a change ships.&lt;/P&gt;&lt;PRE&gt;%pip install "bricksentry[databricks]"&lt;/PRE&gt;&lt;PRE&gt;from bricksentry import Sentry
s = Sentry()   # reads bricksentry.yml: warehouse, sandbox_schema, policy

r = s.preview_write(
    "MERGE INTO main.sales.orders o USING updates u "
    "ON o.order_id = u.order_id AND o.status = u.status "
    "WHEN MATCHED THEN UPDATE SET * WHEN NOT MATCHED THEN INSERT *",
    "main.sales.orders",
)&lt;/PRE&gt;&lt;P&gt;For that MERGE it returns &lt;STRONG&gt;block&lt;/STRONG&gt; for duplicate keys, with the diff and the RESTORE command. Fix the ON clause, preview again, and you get 10 rows added, 25 changed, nothing duplicated: &lt;STRONG&gt;pass&lt;/STRONG&gt;.&lt;/P&gt;&lt;H2&gt;Where it runs today&lt;/H2&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="05-capabilities.jpg" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33997i6E9EB693F5F23432/image-size/large?v=v2&amp;amp;px=999" role="button" title="05-capabilities.jpg" alt="05-capabilities.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;AI agents:&lt;/STRONG&gt; an MCP server, so the agent previews a write before running it. Agents see counts, columns and verdicts, never production values, and only for the tables you list.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Claude Code:&lt;/STRONG&gt; a hook that lets a SQL write run only after a passing preview of that exact statement.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Pull requests:&lt;/STRONG&gt; a GitHub check on every PR, with the diff and verdict as a comment.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Pipelines:&lt;/STRONG&gt; a Databricks job task that checks the last change and stops downstream tasks on a bad one.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Previews always run on a disposable shallow clone that is dropped afterwards. When bricksentry can't verify something (a masked column, a row filter), it asks a human. It never turns "couldn't check" into a pass.&lt;/P&gt;&lt;H2&gt;How it has been tested&lt;/H2&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="04-tested.jpg" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33998i4F5B1C99AA3F4C38/image-size/large?v=v2&amp;amp;px=999" role="button" title="04-tested.jpg" alt="04-tested.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;A safety tool shouldn't be trusted because its author says so, so I tried hard to break it on Databricks Free Edition:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;10 adversarial rounds&lt;/STRONG&gt;, including attempts to leak production values to an agent, sneak a forbidden table past the SQL parser (13 of 13 refused), race a write mid-diff, and break the diff with hostile data shapes. Every serious finding was fixed and re-verified.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Scale:&lt;/STRONG&gt; previews stayed exact up to 1 billion rows. An UPDATE of 1% of 1 billion rows previewed in 275 s.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;A 15-scenario validation battery&lt;/STRONG&gt; that passes 15 of 15, and that you can run on your own workspace in about three minutes.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;End-to-end runs with AI agents&lt;/STRONG&gt; in Genie Code, Claude Code and Codex.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Every run, with its numbers and every bug it found, is public: &lt;A href="https://bricksentry.org/validation" target="_blank" rel="noopener"&gt;bricksentry.org/validation&lt;/A&gt;.&lt;/P&gt;&lt;H2&gt;What people trying it have taught me&lt;/H2&gt;&lt;P&gt;Data engineers outside the project are now trying bricksentry on their own workspaces, including a PySpark notebook pipeline on classic compute on AWS, and their feedback keeps shaping each release.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="06-reader-test.jpg" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33999iE1A480B298B89A7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="06-reader-test.jpg" alt="06-reader-test.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;One reader on X asked a sharp question: if I move $10 between two orders, so the total stays the same, will it notice? It did: two rows changed, only in amount, total unchanged, and a rule on that column sent it to a human. Then he asked for a control: edit only the notes on the same rows. That passed. That pair shows the gate reacts to the money, not just to "something changed".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="07-feedback.jpg" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/34000iCF84EF897E1D6AAD/image-size/large?v=v2&amp;amp;px=999" role="button" title="07-feedback.jpg" alt="07-feedback.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Others pushed on things I hadn't weighed enough: money columns should get zero tolerance while noisy columns like timestamps get some; the proof of a preview should be bound to who runs the write; and prompts are suggestions, permissions are architecture.&lt;/P&gt;&lt;H2&gt;Where I'd love your help&lt;/H2&gt;&lt;P&gt;It's in public beta, and these are the gaps I can't close alone:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;runs on &lt;STRONG&gt;classic compute&lt;/STRONG&gt; and on &lt;STRONG&gt;Azure and GCP&lt;/STRONG&gt; workspaces&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;wide, real tables&lt;/STRONG&gt; at scale&lt;/LI&gt;&lt;LI&gt;teams using &lt;STRONG&gt;service principals&lt;/STRONG&gt; for agents&lt;/LI&gt;&lt;LI&gt;anything it gets wrong, or a change it should have caught&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Try it in 30 seconds without a Databricks account:&lt;/P&gt;&lt;PRE&gt;uvx --from "bricksentry[duckdb]" bricksentry demo&lt;/PRE&gt;&lt;P&gt;Or run the validation notebook on your workspace: it runs 15 risky changes and cleans up after itself.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Site and docs: &lt;A href="https://bricksentry.org" target="_blank" rel="noopener"&gt;bricksentry.org&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Code: &lt;A href="https://github.com/bricksentry/bricksentry" target="_blank" rel="noopener"&gt;github.com/bricksentry/bricksentry&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Validation results: &lt;A href="https://bricksentry.org/validation" target="_blank" rel="noopener"&gt;bricksentry.org/validation&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;My question for you:&lt;/STRONG&gt; what's the data change that burned you, the one you wish had been rehearsed first? Reply here and I'll run it against bricksentry and share what happens, good or bad.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2026 15:20:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/delta-merge-duplicating-rows-test-it-on-a-shallow-clone-first/m-p/178599#M2028</guid>
      <dc:creator>Brahmareddy</dc:creator>
      <dc:date>2026-12-03T15:20:57Z</dc:date>
    </item>
    <item>
      <title>Databricks on AWS with Terraform: assembling a workspace from your own IAM role, S3 bucket and VPC</title>
      <link>https://community.databricks.com/t5/community-articles/databricks-on-aws-with-terraform-assembling-a-workspace-from/m-p/178568#M2024</link>
      <description>&lt;DIV class=""&gt;&lt;H2&gt;The problem&lt;/H2&gt;&lt;/DIV&gt;&lt;P&gt;On Azure, a Databricks workspace is one Azure Resource Manager resource, and Azure builds the storage and the cluster machines for you in a managed resource group. On AWS there is no such resource. Databricks runs in its own AWS account and can do nothing in yours unless you let it. So you build the parts yourself, register each one with the Databricks account API, and create a workspace that references them.&lt;/P&gt;&lt;P&gt;This article is for platform engineers and architects who automate Databricks on AWS with Terraform, especially if they already know Azure Databricks. It is based on a public repository that deploys dev, UAT and prod workspaces with Terraform, Terragrunt and GitHub Actions. It is one design with the reasons behind it, not a universal answer.&lt;/P&gt;&lt;DIV class=""&gt;&lt;H2&gt;The architecture&lt;/H2&gt;&lt;/DIV&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="HongC_1-1796298417810.png" style="width: 670px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33988i7CD4E9A9F04314E9/image-dimensions/670x377?v=v2" width="670" height="377" role="button" title="HongC_1-1796298417810.png" alt="HongC_1-1796298417810.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Per environment, in my AWS account:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;a cross-account IAM role that Databricks assumes to launch cluster EC2 instances&lt;/LI&gt;&lt;LI&gt;a private, encrypted root S3 bucket for workspace storage&lt;/LI&gt;&lt;LI&gt;a customer-managed VPC: two private subnets in two availability zones for the cluster nodes (no public IPs), a small public subnet that hosts the NAT gateway, an S3 gateway endpoint and one security group&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In the Databricks account: a credential configuration, a storage configuration and a network configuration, then the workspace, the Unity Catalog metastore assignment, and ADMIN for an account-level admin group. Lakehouse data lives in a separate S3 bucket, reached through its own IAM role, created by a later bootstrap stack.&lt;/P&gt;&lt;P&gt;There are three stacks. The metastore stack runs once per region and is shared by dev, UAT and prod; its ID reaches the workspace stack through a GitHub secret. The workspace stack builds everything above. The workspace-bootstrap stack reads the workspace URL and ID from the workspace stack and adds the Unity Catalog storage credential, external location, catalog, cluster policy, secret scope and a validation notebook.&lt;/P&gt;&lt;P&gt;What changes from Azure, in short:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Azure: the workspace is an Azure Resource Manager resource. AWS: you call the Databricks account API with three registration IDs.&lt;/LI&gt;&lt;LI&gt;Azure: cluster VMs sit in a locked managed resource group. AWS: they are ordinary EC2 instances in your account, visible, tagged and billed to you.&lt;/LI&gt;&lt;LI&gt;Azure: VNet injection delegates a subnet and adds the security rules. AWS: nothing is delegated; every route and rule is yours, and so is every mistake in them.&lt;/LI&gt;&lt;LI&gt;Azure: an access connector's managed identity reaches storage for Unity Catalog. AWS: an IAM role with a trust policy and an external ID.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The workspace module has four submodules on Azure and six here. The two extra ones, cross_account_role and root_storage, are the difference between the clouds.&lt;/P&gt;&lt;DIV class=""&gt;&lt;H2&gt;Key design decisions&lt;/H2&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;1. Customer-managed VPC with a NAT gateway; PrivateLink is a config switch.&lt;/STRONG&gt; Back-end PrivateLink needs the Enterprise tier, and my account is Premium. So clusters open outbound connections through the NAT gateway on 443 and the secure cluster connectivity relay on 6666, with no inbound ports. The alternative, VPC endpoints for the REST API and relay, is fully coded and turned on with private_link.enabled: true. A precondition refuses a design with neither a NAT gateway nor PrivateLink.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Trust and permission policies come from Databricks data sources.&lt;/STRONG&gt; The cross-account role's trust policy, its permissions for a customer-managed VPC, and the root bucket policy are all generated by the Databricks provider instead of hand-written JSON. The trust policy uses my Databricks account ID as the external ID. Without it, someone else could register my role's ARN in their own Databricks account.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. A pause on destroy, not just on create.&lt;/STRONG&gt; Databricks deletes a workspace asynchronously and, for a short time, still treats its configurations as attached. The configuration IDs reach the workspace through a time_sleep, so on destroy Terraform deletes the workspace, waits three minutes, then deletes the configurations. The alternative, plain dependency order, failed in practice (see below).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4. The Unity Catalog storage credential is created before its IAM role.&lt;/STRONG&gt; Databricks generates the external ID for each storage credential, and the role's trust policy must contain it. So the code builds the role ARN in advance, creates the credential with validation skipped, reads the external ID back, creates the role, waits 30 seconds, and lets the external location validate access. The catalog, credential and external location use isolation mode, which binds each one to its own environment's workspace; I dropped explicit workspace binding resources (see below).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;5. Keyless AWS, but a client secret for Databricks, for now.&lt;/STRONG&gt; GitHub Actions exchanges its OIDC token for a short-lived AWS role session, so no AWS key exists anywhere. The Databricks providers still sign in with the service principal's OAuth client ID and secret. Databricks OAuth token federation with GitHub's token would remove that secret, and it 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;The three parts are named as plain settings. live/dev/config.yaml:&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;cross_account_role_name&lt;/SPAN&gt;: &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;dbx-architect-lab-dev-crossaccount&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;

&lt;SPAN class=""&gt;root_bucket&lt;/SPAN&gt;:
  &lt;SPAN class=""&gt;name_prefix&lt;/SPAN&gt;: &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;dbx-architect-lab-dev-root&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class=""&gt;# ...&lt;/SPAN&gt;
&lt;SPAN class=""&gt;network&lt;/SPAN&gt;:
  &lt;SPAN class=""&gt;vpc_name&lt;/SPAN&gt;: &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;vpc-dbx-architect-lab-dev&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;vpc_cidr&lt;/SPAN&gt;: &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;10.0.0.0/22&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;availability_zones&lt;/SPAN&gt;: &lt;SPAN class=""&gt;[ "us-east-2a", "us-east-2b" ]&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;# Cluster subnets, one per AZ (netmask /17 to /26).&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;private_subnet_cidrs&lt;/SPAN&gt;: &lt;SPAN class=""&gt;[ "10.0.0.0/24", "10.0.1.0/24" ]&lt;/SPAN&gt;
&lt;SPAN class=""&gt;# ...&lt;/SPAN&gt;
&lt;SPAN class=""&gt;private_link&lt;/SPAN&gt;:
  &lt;SPAN class=""&gt;enabled&lt;/SPAN&gt;: &lt;SPAN class=""&gt;false&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Each node takes two addresses, so a /24 holds about 125 nodes before EC2 quotas. Dev, UAT and prod each get their own non-overlapping /22.&lt;/P&gt;&lt;P&gt;Prepare and register the credential. modules/dbx_workspace_private/modules/cross_account_role/main.tf:&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;data&lt;/SPAN&gt; &lt;SPAN class=""&gt;"databricks_aws_assume_role_policy"&lt;/SPAN&gt; &lt;SPAN class=""&gt;"this"&lt;/SPAN&gt; {
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;provider&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;databricks&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;account&lt;/SPAN&gt;

  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;external_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;databricks_account_id&lt;/SPAN&gt;
}

&lt;SPAN class=""&gt;# Permissions for a customer-managed VPC.&lt;/SPAN&gt;
&lt;SPAN class=""&gt;data&lt;/SPAN&gt; &lt;SPAN class=""&gt;"databricks_aws_crossaccount_policy"&lt;/SPAN&gt; &lt;SPAN class=""&gt;"this"&lt;/SPAN&gt; {
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;provider&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;databricks&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;account&lt;/SPAN&gt;

  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;policy_type&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;customer&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
}
&lt;SPAN class=""&gt;# ...&lt;/SPAN&gt;
&lt;SPAN class=""&gt;# New IAM roles take a few seconds to become usable; registering the credential too early fails validation.&lt;/SPAN&gt;
&lt;SPAN class=""&gt;resource&lt;/SPAN&gt; &lt;SPAN class=""&gt;"time_sleep"&lt;/SPAN&gt; &lt;SPAN class=""&gt;"iam_propagation"&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;60s&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;

  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;depends_on&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;[&lt;SPAN class=""&gt;aws_iam_role_policy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;this&lt;/SPAN&gt;]
}

&lt;SPAN class=""&gt;resource&lt;/SPAN&gt; &lt;SPAN class=""&gt;"databricks_mws_credentials"&lt;/SPAN&gt; &lt;SPAN class=""&gt;"this"&lt;/SPAN&gt; {
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;provider&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;databricks&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;account&lt;/SPAN&gt;

  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;credentials_name&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&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;var&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;role_name&lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;-credentials&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;role_arn&lt;/SPAN&gt;         &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;aws_iam_role&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;arn&lt;/SPAN&gt;

  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;depends_on&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;[&lt;SPAN class=""&gt;time_sleep&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;iam_propagation&lt;/SPAN&gt;]
}&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;The workspace itself is only references. modules/dbx_workspace_private/modules/workspace/main.tf:&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;resource&lt;/SPAN&gt; &lt;SPAN class=""&gt;"databricks_mws_workspaces"&lt;/SPAN&gt; &lt;SPAN class=""&gt;"this"&lt;/SPAN&gt; {
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;provider&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;databricks&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;account&lt;/SPAN&gt;

  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;account_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;databricks_account_id&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;workspace_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;aws_region&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;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;SPAN class=""&gt;&lt;SPAN class=""&gt;custom_tags&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;tags&lt;/SPAN&gt;
}&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;The destroy pause. modules/dbx_workspace_private/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;"workspace_teardown"&lt;/SPAN&gt; {
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;destroy_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;180s&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;{
    credentials_id           &lt;SPAN class=""&gt;=&lt;/SPAN&gt; module.cross_account_role.credentials_id
    storage_configuration_id &lt;SPAN class=""&gt;=&lt;/SPAN&gt; module.root_storage.storage_configuration_id
    network_id               &lt;SPAN class=""&gt;=&lt;/SPAN&gt; module.network.network_id
  }
}&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;The credential-before-role order. 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;"databricks_storage_credential"&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;storage_credential_name&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;# ...&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;# The IAM role is created after the credential; the external location validates access once it exists.&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;skip_validation&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;true&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;# Only usable from this environment's workspace (bound automatically; see the removed blocks below).&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;isolation_mode&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;ISOLATION_MODE_ISOLATED&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;

  &lt;SPAN class=""&gt;aws_iam_role&lt;/SPAN&gt; {
    &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;role_arn&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;local&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;iam_role_arn&lt;/SPAN&gt;
  }
}

&lt;SPAN class=""&gt;# Trust policy: the Unity Catalog master role (with this credential's external ID) and the role itself.&lt;/SPAN&gt;
&lt;SPAN class=""&gt;data&lt;/SPAN&gt; &lt;SPAN class=""&gt;"databricks_aws_unity_catalog_assume_role_policy"&lt;/SPAN&gt; &lt;SPAN class=""&gt;"this"&lt;/SPAN&gt; {
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;aws_account_id&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;local&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;aws_account_id&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;role_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;iam_role_name&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;external_id&lt;/SPAN&gt;    &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;databricks_storage_credential&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;aws_iam_role&lt;/SPAN&gt;[&lt;SPAN class=""&gt;0&lt;/SPAN&gt;]&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;external_id&lt;/SPAN&gt;
}&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;The keyless AWS sign-in. .github/workflows/terragrunt-deploy.yml:&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;      - &lt;SPAN class=""&gt;name&lt;/SPAN&gt;: &lt;SPAN class=""&gt;Configure AWS credentials&lt;/SPAN&gt;
        &lt;SPAN class=""&gt;uses&lt;/SPAN&gt;: &lt;SPAN class=""&gt;aws-actions/configure-aws-credentials@v4&lt;/SPAN&gt;
        &lt;SPAN class=""&gt;with&lt;/SPAN&gt;:
          &lt;SPAN class=""&gt;role-to-assume&lt;/SPAN&gt;: &lt;SPAN class=""&gt;${{ secrets.AWS_ROLE_ARN }}&lt;/SPAN&gt;
          &lt;SPAN class=""&gt;role-session-name&lt;/SPAN&gt;: &lt;SPAN class=""&gt;gh-${{ github.run_id }}&lt;/SPAN&gt;
          &lt;SPAN class=""&gt;aws-region&lt;/SPAN&gt;: &lt;SPAN class=""&gt;${{ env.AWS_REGION }}&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 fixes&lt;/H2&gt;&lt;/DIV&gt;&lt;P&gt;A useful habit: read an error by its side. An AWS error points at a part (role, bucket, VPC). A Databricks validation error points at the link between the two accounts: a trust policy, an external ID or a bucket policy. None of the failures below were Terraform bugs.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Failed credential validation checks on databricks_mws_credentials, even after a re-run.&lt;/STRONG&gt; The role, trust policy and permissions were correct. The AWS Organization had a resource control policy denying sts:* and s3:* to principals outside the organization, and Databricks' AWS account is outside it. The fix was an exception for that account in the RCP. The IAM policy simulator includes SCPs but not RCPs, so it could not show this.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Not authorized to perform sts:AssumeRoleWithWebIdentity from GitHub Actions.&lt;/STRONG&gt; The GitHub organization uses the ID-based OIDC subject format (repo:Org@id/repo@id:environment:dev), but the trust policy expected the classic one. Printing the token's sub claim and matching it fixed it in one step.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;does not have one of required pricing tier(s) ENTERPRISE.&lt;/STRONG&gt; Back-end PrivateLink on a Premium account. I set private_link.enabled: false, and the next apply removed the endpoints it had already created.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Cannot delete a network/StorageConfiguration while it is attached to a workspace on destroy.&lt;/STRONG&gt; The asynchronous delete race from decision 3. Re-running destroy recovered it; the 180-second time_sleep prevents it.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Catalog ... is not accessible in current workspace on bootstrap destroy.&lt;/STRONG&gt; An explicit databricks_workspace_binding resource was destroyed before the isolated catalog, cutting off the workspace Terraform connects through. The fix was to rely on isolation mode and replace the binding resources with removed blocks (destroy = false).&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;failed to get the workspace ID during teardown.&lt;/STRONG&gt; I started the bootstrap destroy and the workspace destroy back to back, and the workspace was gone before the bootstrap could read it. The workspaces were deleted anyway. The lesson: let the bootstrap destroy finish before starting the workspace destroy.&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&lt;H2&gt;Checklist&lt;/H2&gt;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;Create the workspace through the Databricks account API from three registrations: credential, storage and network.&lt;/LI&gt;&lt;LI&gt;Generate the cross-account trust policy with your Databricks account ID as the external ID.&lt;/LI&gt;&lt;LI&gt;Wait for a new IAM role before registering it (60 seconds here), and for the Unity Catalog role (30 seconds).&lt;/LI&gt;&lt;LI&gt;Use at least two private subnets in two availability zones, sized at two addresses per node, between /17 and /26, with non-overlapping ranges across environments.&lt;/LI&gt;&lt;LI&gt;Give clusters a path to the control plane: a NAT gateway or PrivateLink (Enterprise tier).&lt;/LI&gt;&lt;LI&gt;Add an S3 gateway endpoint so bucket traffic stays on the AWS network.&lt;/LI&gt;&lt;LI&gt;If your AWS Organization restricts outside principals, add an exception for Databricks' AWS account for both sts and s3.&lt;/LI&gt;&lt;LI&gt;Match the GitHub OIDC trust policy to the exact sub claim your organization sends.&lt;/LI&gt;&lt;LI&gt;Create the Unity Catalog storage credential before its IAM role, and isolate catalogs, credentials and external locations per environment when workspaces share a metastore.&lt;/LI&gt;&lt;LI&gt;Add a destroy pause after the workspace, and destroy in reverse order: bootstrap first, and only when it has finished, the workspace.&lt;/LI&gt;&lt;LI&gt;Test destroy as well as apply. Both destroy failures here were ordering problems that never show up on apply.&lt;/LI&gt;&lt;LI&gt;Validate from a real cluster, not just from Terraform output.&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&lt;H2&gt;Closing&lt;/H2&gt;&lt;/DIV&gt;&lt;P&gt;The code, including a troubleshooting runbook with the diagnosis scripts for every failure above: &lt;A href="https://github.com/DBxArchitectLab/dbx-platform-infra-aws" target="_blank" rel="noopener"&gt;https://github.com/DBxArchitectLab/dbx-platform-infra-aws&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Full walkthrough and live deployment: &lt;A href="https://youtu.be/QiQ9abxAmSE" target="_blank" rel="nofollow noopener"&gt;https://youtu.be/QiQ9abxAmSE&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2026 11:48:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/databricks-on-aws-with-terraform-assembling-a-workspace-from/m-p/178568#M2024</guid>
      <dc:creator>HongC</dc:creator>
      <dc:date>2026-12-03T11:48:35Z</dc:date>
    </item>
    <item>
      <title>What I learned making Genie work in production</title>
      <link>https://community.databricks.com/t5/community-articles/what-i-learned-making-genie-work-in-production/m-p/178551#M2022</link>
      <description>&lt;P&gt;Everyone's Genie demo looks magical. Then business users ask a real question and it falls apart. What I learned is the difference isn't the model. It's the space.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two things made ours work: enriching it, and testing it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Enriching:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Write instructions like you'd brief a new analyst.&lt;/P&gt;&lt;P&gt;"Revenue is net of returns and cancellations." If it's not written in the space, Genie guesses. The instructions are the job description.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Give it example questions AND the SQL.&lt;/P&gt;&lt;P&gt;Not just "show me sales". Show it the exact query for "sales by region last quarter," so it learns your joins, your filters, your patterns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Curate ruthlessly.&lt;/P&gt;&lt;P&gt;A space with 40 tables answers nothing well. Give Genie the tables each question actually needs. Nothing more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Descriptions are data.&lt;/P&gt;&lt;P&gt;Column descriptions are what Genie reads to understand your business. A column called "amt" with no description is invisible to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Testing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The benchmark is the job. Write down 20 to 30 questions your business actually asks, with the expected SQL. Run them. Measure how many Genie gets right. That's your accuracy number. Not a vibe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every wrong answer is a work item: a missing instruction, a bad description, a wrong table. Fix the space, run the benchmark again. The harness turns "Genie is bad" into a to do list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ship when the benchmark passes, not when the demo looks good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A Genie Space isn't an AI feature. It's a product. Curated, tested, owned. That's what made ours something business users actually trust.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2026 09:31:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/what-i-learned-making-genie-work-in-production/m-p/178551#M2022</guid>
      <dc:creator>RitikaSharan</dc:creator>
      <dc:date>2026-12-03T09:31:32Z</dc:date>
    </item>
    <item>
      <title>🟡 15 Databricks features in Public Preview this November. Only 9 are the same on AWS, Azure and GCP</title>
      <link>https://community.databricks.com/t5/community-articles/15-databricks-features-in-public-preview-this-november-only-9/m-p/178531#M2020</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I compared all three release notes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What stood out &lt;span class="lia-unicode-emoji" title=":backhand_index_pointing_down:"&gt;👇&lt;/span&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":small_blue_diamond:"&gt;🔹&lt;/span&gt; Azure got 14 of the 15, AWS got 11 and GCP got 9. So 6 of 15 (40%) differ by cloud. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":small_blue_diamond:"&gt;🔹&lt;/span&gt; Lakeflow Designer shipped 6 preview features in 6 days (Nov 4 to 9), including Multi-Row Formula for running totals, ranks and moving averages. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":small_blue_diamond:"&gt;🔹&lt;/span&gt; OneLake external locations are GA on the Microsoft Fabric side but still Public Preview on the Azure Databricks side. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":small_blue_diamond:"&gt;🔹&lt;/span&gt; Azure now has Genie plugins for Microsoft 365 Copilot and Copilot Cowork, both in Public Preview. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":small_blue_diamond:"&gt;🔹&lt;/span&gt; You can restore a deleted Unity Catalog metastore by ID for up to 5 days (REST API). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":small_blue_diamond:"&gt;🔹&lt;/span&gt; Releases are staged, so your account may get them a week or more after the release date. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My take: Public Preview is the right time to test, not to depend on. Try these in a non-prod workspace first. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which Public Preview will you test first? &lt;span class="lia-unicode-emoji" title=":backhand_index_pointing_down:"&gt;👇&lt;/span&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sources: Databricks release notes for AWS, Azure and Google Cloud (Nov 2026)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://lnkd.in/p/gyhfPzAM" target="_blank" rel="noopener"&gt;https://lnkd.in/p/gyhfPzAM&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&lt;A class="" href="https://www.linkedin.com/search/results/all/?keywords=%23databricks&amp;amp;origin=HASH_TAG_FROM_FEED" target="_blank" rel="noopener" aria-label="View hashtag: #databricks"&gt;&lt;STRONG&gt;#Databricks&lt;/STRONG&gt;&lt;/A&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;A class="" href="https://www.linkedin.com/search/results/all/?keywords=%23azure&amp;amp;origin=HASH_TAG_FROM_FEED" target="_blank" rel="noopener" aria-label="View hashtag: #azure"&gt;&lt;STRONG&gt;#Azure&lt;/STRONG&gt;&lt;/A&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;A class="" href="https://www.linkedin.com/search/results/all/?keywords=%23lakeflowdesigner&amp;amp;origin=HASH_TAG_FROM_FEED" target="_blank" rel="noopener" aria-label="View hashtag: #lakeflowdesigner"&gt;&lt;STRONG&gt;#LakeflowDesigner&lt;/STRONG&gt;&lt;/A&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;A class="" href="https://www.linkedin.com/search/results/all/?keywords=%23genai&amp;amp;origin=HASH_TAG_FROM_FEED" target="_blank" rel="noopener" aria-label="View hashtag: #genai"&gt;&lt;STRONG&gt;#GenAI&lt;/STRONG&gt;&lt;/A&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;A class="" href="https://www.linkedin.com/search/results/all/?keywords=%23dataengineering&amp;amp;origin=HASH_TAG_FROM_FEED" target="_blank" rel="noopener" aria-label="View hashtag: #dataengineering"&gt;&lt;STRONG&gt;#DataEngineering&lt;/STRONG&gt;&lt;/A&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;A class="" href="https://www.linkedin.com/search/results/all/?keywords=%23unitycatalog&amp;amp;origin=HASH_TAG_FROM_FEED" target="_blank" rel="noopener" aria-label="View hashtag: #unitycatalog"&gt;&lt;STRONG&gt;#UnityCatalog&lt;/STRONG&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt; Learn. Build. Share. Grow. &lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;BR /&gt;Curiosity starts it, community finishes it.&lt;BR /&gt;Let's light up the Databricks Community! &lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2026 07:05:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/15-databricks-features-in-public-preview-this-november-only-9/m-p/178531#M2020</guid>
      <dc:creator>saisaranv</dc:creator>
      <dc:date>2026-12-03T07:05:27Z</dc:date>
    </item>
    <item>
      <title>Odin Gave an Eye and Nine Nights, Loki Would Have Built an Ontology</title>
      <link>https://community.databricks.com/t5/community-articles/odin-gave-an-eye-and-nine-nights-loki-would-have-built-an/m-p/178471#M2019</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="00-cover.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33941i638B47F67353395A/image-size/large?v=v2&amp;amp;px=999" role="button" title="00-cover.png" alt="00-cover.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In Scandinavian myth, knowledge had a price, and Odin paid it twice. At Mímir's well, beneath a root of Yggdrasil, the world tree, he gave one of his eyes for a single drink of its water and the knowledge it held. And he hung on that same tree for nine nights, wounded by his own spear, without food or drink, "given to himself", until he saw the runes below him and took them up. That is how Odin gained his eighteen charms, which he lists at the end of the Hávamál: to heal, to blunt an enemy's blade, to calm the wind on the sea, to win a woman's heart.&lt;/P&gt;&lt;P&gt;The trade is old enough to still echo today, but Genie One did not pay it. It worked the way Loki did: no sacrifice, just a quick, practical mind that finds the shortest way to what it needs. It found the same eighteen charms in the blink of an eye, and kept both of its own. The shortcut was a well-built Genie Ontology, and, for the hardest question, one small skill.&lt;/P&gt;&lt;P&gt;Yggdrasil holds nine worlds on one tree, and a data platform keeps its knowledge the same way: tables, dashboards, agents, search indexes and documents, each in its own world. So I spread Odin's charms and deeds across nine kinds of source, eight in Databricks and one in Power BI, built them the way Databricks' guide to Genie Ontology lays out, and asked Genie One to find them.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The target:&lt;/STRONG&gt; to see whether an ontology built that way lets Genie One find knowledge scattered across many kinds of source, pick the right tool for each, and answer from the data rather than from memory. For every answer I traced each tool it called, and I made sure the answer came from our sources and not from what the model already knows about Odin. A note: some data sits where no real data would, on purpose, such as a connection's comment or a model in my personal Power BI workspace, to test how far Genie One can reach for what it needs.&lt;/P&gt;&lt;P&gt;Why Scandinavian myth and not business data? Because it is hard on purpose. Old poetry says one thing in many ways: a charm can read as healing, a rune or a battle cry, and two translations word the same stanza differently, so matching keywords lands on the wrong answer and Genie One has to understand what is asked. The texts are public domain, so every quote can be checked and shown. And the model already knows the myths, which makes it the hardest place to prove that an answer came from our data and not from its memory.&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;Glossary&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="01-glossary-from-the-myth.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33942iD83F9EB42E30DF71/image-size/large?v=v2&amp;amp;px=999" role="button" title="01-glossary-from-the-myth.png" alt="01-glossary-from-the-myth.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="02-glossary-from-databricks.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33943i4638E2BEA5F74564/image-size/large?v=v2&amp;amp;px=999" role="button" title="02-glossary-from-databricks.png" alt="02-glossary-from-databricks.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;Yggdrasil on Databricks: Nine Worlds, One Ontology&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="03-yggdrasil.png" style="width: 611px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33945iC17425CDE2B64579/image-size/large?v=v2&amp;amp;px=999" role="button" title="03-yggdrasil.png" alt="03-yggdrasil.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Each world is one kind of source (Midgard sits in Power BI) holding two charms and one part of the Hávamál; the trunk is the Genie Ontology that filtered Genie One's search; the roots are the tables, and Mímir's well is where the texts came from.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;What is in Mímir's well: only public-domain texts, so every line Genie One quotes can be checked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Hávamál, Benjamin Thorpe's translation&lt;/STRONG&gt; (&lt;EM&gt;The Edda of Sæmund the Learned&lt;/EM&gt;, 1866). This is the first English edition: "The High One's Lay" and "Odin's Rune-song", where the eighteen charms are listed.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Hávamál, Henry Adams Bellows' translation&lt;/STRONG&gt; (&lt;EM&gt;The Poetic Edda&lt;/EM&gt;, 1923). This is the second edition, with the stanza numbering most readers know and Bellows' notes. The two translations word the same charm differently ("leech" or a plain word for a doctor, "fetters" or "bonds"), so a keyword match is not enough.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Snorri's Ynglinga saga, Samuel Laing's translation&lt;/STRONG&gt; (&lt;EM&gt;Heimskringla&lt;/EM&gt;, 1844). It tells Odin's deeds: blunting his enemies' weapons, calming the sea, making the dead speak.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Baldrs draumar&lt;/STRONG&gt; (Thorpe's and Bellows' Eddas). Odin rides to Hel and wakes a dead seeress.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;The Second Merseburg Charm&lt;/STRONG&gt; (Old High German, first printed by Grimm in 1842). Wodan heals a horse's leg.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The texts were split stanza by stanza. Each stanza of both translations got exactly one home: one of the nine worlds or a table in the roots. Only the counsels file stays in a Unity Catalog volume. Where a deed needs a modern retelling, the retelling is ours, not a quote.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="04-lineage.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33946iECD6FD0B5CE04613/image-size/large?v=v2&amp;amp;px=999" role="button" title="04-lineage.png" alt="04-lineage.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Read it like Databricks' lineage view, left to right. The texts were split on the laptop. Each world was loaded by its own script into its own kind of asset: a table, a Metric View, a domain, Pages, a dashboard, a Genie Agent, a connection comment; Midgard went to a Power BI model, loaded by hand. The deeds tables were typed by hand (dashed). Genie One, with no system prompt and no custom tools, reads all of it.&lt;/EM&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;STRONG&gt;&lt;EM&gt;Technical box: no pipelines, no jobs.&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; Each world was built once by a local Python script with the Databricks SDK: SQL through a serverless SQL warehouse, everything else through the REST APIs. The texts are static, most worlds are API objects rather than data flows (Pages, a dashboard, an Agent), and each stanza had to go straight into its own kind of asset, so a Lakeflow pipeline or job had nothing to add. In production the same assets would live in a bundle.&lt;/EM&gt;&lt;/BLOCKQUOTE&gt;&lt;H3&gt;Prologue: The Allfather's Question (the scenarios we tested: what we asked, what Genie One did)&lt;/H3&gt;&lt;P&gt;The questions are needs put to Odin ("I am Odin. The hall is on fire…"), and Odin answers each need with one of his eighteen charms, the songs of the Ljóðatal: one heals, one blunts a blade, one calms the sea, one quenches a burning hall. A right answer names that one charm and quotes its stanza from our sources, in both translations.&lt;/P&gt;&lt;P&gt;The core set is 18 questions, one per charm, asked in several conditions; each condition was one run, and all Genie One conversations were deleted before it.&lt;/P&gt;&lt;P&gt;The seventh charm, the answer to the burning hall, in the two translations:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;EM&gt;For the seventh I know, / if a lofty house I see / blaze o'er its inmates, / so furiously it shall not burn / that I cannot save it. / That song I can sing.&lt;/EM&gt; (Benjamin Thorpe, 1866, stanza 154)&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;EM&gt;A seventh I know, if I see in flames / The hall o'er my comrades' heads; / It burns not so wide that I will not quench it, / I know that song to sing.&lt;/EM&gt; (Henry Adams Bellows, 1923, stanza 153)&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="05-prologue-scenarios.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33947i86709D72D09684C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="05-prologue-scenarios.png" alt="05-prologue-scenarios.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;Hliðskjálf: Odin's High Seat (how the domain and its Knowledge Pages are built)&lt;/H3&gt;&lt;P&gt;From his high seat, Hliðskjálf, Odin sees all nine worlds at once. In Databricks that seat is one Genie Ontology domain and the Knowledge Pages published in it.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="06-domain.png" style="width: 799px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33948i43878C1D7D8CA92D/image-size/large?v=v2&amp;amp;px=999" role="button" title="06-domain.png" alt="06-domain.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;The domain, Yggdrasil.&lt;/STRONG&gt; A governed tag of the same name; the schema, the dashboard and the Genie Agent are tagged into it, so every search stays inside one tree. Its description is itself a world (Vanaheim).&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;The guide Page, "Yggdrasil: the needs".&lt;/STRONG&gt; The one-song rule (Odin answers each need with one charm), the ranking query that picks it, how to read each world with its own tool, and the list of the 21 needs.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;21 need Pages&lt;/STRONG&gt;, one per human need the Hávamál speaks to (sickness and healing, fire, sea and storm, strife and hatred…): what the need covers and which charms and counsels answer it.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;The map Page&lt;/STRONG&gt;, "the map of the nine worlds": which world keeps which two charms, where it lives, and the exact query or tool to read it.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Two world Pages&lt;/STRONG&gt; (Alfheim, Vanaheim) that hold their stanzas themselves.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;One table behind the Pages&lt;/STRONG&gt;, havamal_needs: every stanza of both translations tagged with its needs by ai_classify, as pointers only. The text stays in the worlds.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One question's journey through the seat:&lt;/P&gt;&lt;P&gt;"I am Odin. The hall is on fire…" → domain Yggdrasil → guide Page "Yggdrasil: the needs" → need Page "fire" → havamal_needs ranking: charm 7, kept in Midgard → map Page: Midgard lives in Power BI → Power BI connector, DAX → charm 7 quoted in both translations&lt;/P&gt;&lt;P&gt;The Pages say where the answer is and how to read it; they never hold an answer they cannot point to.&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;1. Hugin and Munin (how Genie One sent out its ravens: which tools it called, and in what order)&lt;/H3&gt;&lt;P&gt;Every morning Odin sends out two ravens, Huginn ("thought") and Muninn ("memory"), to fly over the nine worlds and report back. Genie One works the same way: with no system prompt and no custom tools, it picks a tool, reads the result and decides the next step until it can answer. We saved every answer with its full trace, each tool call in order and every SQL query, so we know which tool it used, on which source, and when. A guided answer took about a minute: a run of 18 questions took 15 to 20 minutes, and the answers timed in the UI took 53 to 73 seconds.&lt;/P&gt;&lt;P&gt;The flight followed the same pattern:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Memory first, when there is one.&lt;/STRONG&gt; Every run started with all conversations deleted, so the only memory was the run's own earlier questions.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Look around:&lt;/STRONG&gt; search the asset catalog and the Pages.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Open a Page first:&lt;/STRONG&gt; the curated Pages set the direction before any data was read.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Narrow down:&lt;/STRONG&gt; a ranking query over the needs table picks the one charm that answers the question.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Go to the world that keeps it,&lt;/STRONG&gt; with the tool that fits the source: SQL for tables and the Metric View, vector_search() for the index, information_schema for the connection comment, a hand-off for the Genie Agent, the dashboard opened by id, the Power BI connector for Midgard.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Answer with every claim cited,&lt;/STRONG&gt; and change course when a result disagrees.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Across all 28 runs of the project: four asked the 18 charm questions (no Pages, guided, neutral voice, one word), the others tested one scenario each with a few questions. That makes 154 answers that used a tool:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="07-first-steps.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33949iB03DECA65F81DF90/image-size/large?v=v2&amp;amp;px=999" role="button" title="07-first-steps.png" alt="07-first-steps.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;With the skill installed (five questions), the order became fixed: 100% of the on-topic questions (4) loaded the skill first, and the off-topic one did not. From the skill, 75% (3 of 4) went straight to the guide Page; the deeds question went to the deeds table and the map Page, as the skill's deeds rule says.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Genie One's tools: what each does and what it reads from&lt;/STRONG&gt; (built in, except the Power BI connector and the skill, which the user added; described from the calls seen in the runs):&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="08-tools.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33950i11109C52D4D054AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="08-tools.png" alt="08-tools.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="09-tool-flow-diagram.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33951iE11D6EE4FDBCD980/image-size/large?v=v2&amp;amp;px=999" role="button" title="09-tool-flow-diagram.png" alt="09-tool-flow-diagram.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Order observed across the runs: memory first, then the asset catalog and the Pages searched side by side, and a Page opened first. The Pages set the direction; the sources are read after the ranking picks a charm.&lt;/EM&gt;&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;2. Mímir's Well or the Model's Memory? (how we made sure the answers came from our sources)&lt;/H3&gt;&lt;P&gt;Odin is in every model's training data, so a right answer proves nothing by itself. Four checks told memory and sources apart:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;No memory between runs.&lt;/STRONG&gt; All Genie One conversations were deleted before every run, so no answer could lean on an earlier run; within a run, Genie One could only recall that run's own earlier questions. (Two early deeds runs kept their history on purpose, to see what memory does; they are not counted as clean results.)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Labelled canaries.&lt;/STRONG&gt; A few invented lines, each labelled as invented, sit in one world only. One that comes back was read from that world; it exists nowhere else.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;The source's own wording.&lt;/STRONG&gt; Each charm is quoted in two translations, Thorpe's (1866) and Bellows' (1923), and every quote was compared word for word with our data. Asked to quote them from memory, Genie One declined and offered to look them up instead; a quote that matches our text in both translations came from the data.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Our data against the myths.&lt;/STRONG&gt; We gave the worlds table our own classification, against the lore (Niflheim of fire, Helheim of earth), and asked questions where the two disagree, such as "How many of Odin's deeds happen in worlds of fire?" (lore none, ours one). Genie One answered with ours every time, through the Metric View, as it would follow a company's own definition over the textbook one.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What we saw: in the guided runs Genie One went to the sources first, quoted both translations from them, brought the canaries back from the worlds that hold them, and followed our classification over the myths in all four of those questions. Where it could not read a world, it said so instead of filling the gap.&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;3. Following the Allfather's Guide (Databricks' guide to Genie Ontology, step by step)&lt;/H3&gt;&lt;H3&gt;Before you start: four key decisions&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10-four-decisions.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33952i368B15A516D17812/image-size/large?v=v2&amp;amp;px=999" role="button" title="10-four-decisions.png" alt="10-four-decisions.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;H3&gt;Layer 0: Get the data foundation right&lt;/H3&gt;&lt;P&gt;One row per stanza, in both translations, each with its own stanza number; each stanza has exactly one home. The deeds tables declare their keys.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11-erd-diagram.png" style="width: 707px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33953iB278CCC6456E3EEE/image-size/large?v=v2&amp;amp;px=999" role="button" title="11-erd-diagram.png" alt="11-erd-diagram.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;World: &lt;/EM&gt;yggdrasil_worlds · Charm: odin_charms · Stanza: the world's own source, and havamal_counsels for the counsels · Need: havamal_needs · Deed: odin_deeds · Edition: deed_tellings.&lt;/P&gt;&lt;H3&gt;Layer 1: Enrich your metadata&lt;/H3&gt;&lt;P&gt;Table and column comments on every table, a governed tag for the domain, and comments where nothing else can hold text (Jotunheim lives in a connection's comment). One test: the deeds table names its key song_ref, and only the declared key says it means the charm number.&lt;/P&gt;&lt;H3&gt;Layer 2: Model the business with a semantic layer&lt;/H3&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Declare your relationships.&lt;/STRONG&gt; We declared odin_deeds.song_ref = odin_charms.charm_no. Asked "How many of Odin's deeds happen in worlds of fire?", Genie One used that link to go from the world to its charms to the deeds, and answered correctly: one.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Build a semantic model using Metric Views.&lt;/STRONG&gt; odin_deeds_mv holds a score defined nowhere else: Odin's wisdom score, where a deed told in a poem counts 2, one told in a saga 1, and an invented one 0. Asked "What is Odin's wisdom score per world?", Genie One used MEASURE(wisdom_score); asked about worlds of fire, it grouped the Metric View by our own classification, not the lore.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Add agent-facing metadata to your metrics.&lt;/STRONG&gt; Synonyms and descriptions on the Metric View, the Pages and the Agent's columns, in the poem's own words: the Metric View's charm also answers to "song" and "spell", its source to "saga" and "poem", and the healing Page to "leech" and "leechcraft", Thorpe's old words for a doctor and for healing.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Organize and document.&lt;/STRONG&gt; One Domain and its Pages (see Hliðskjálf). Asked "I am Odin. My ship is caught in a storm…", Genie One declined without the Pages and found charm 9 with them. The guide: a page a person writes and reviews "outranks anything inferred"; here a Page was the first asset opened in 71% of answers.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Layer 3: Curate context-rich assets&lt;/H3&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Make your assets context-rich.&lt;/STRONG&gt; The Muspelheim Genie Agent carries instructions and example SQL for its two charms; Genie One handed questions to it. Its answers proved to be leads, not sources: once it named the wrong charm, and the data put Genie One right.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Certify the assets you trust.&lt;/STRONG&gt; Asgard is marked certified and Helheim deprecated, in their comments; assigning the certification tag itself was refused (no right to assign it).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Layer 4: Build the governance layer&lt;/H3&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Start with Unity Catalog access controls.&lt;/STRONG&gt; Genie One has no rights of its own: every query it runs uses the asking user's permissions. We saw this when it went looking for Midgard's saved queries. It tried to read Databricks' query history table (system.query.history) to find them, the request was refused because the user has no access to that table, and Genie One answered that Midgard "could not be read" instead of looking for a way around.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Govern the AI layer.&lt;/STRONG&gt; Then we moved Midgard out of Databricks, into a Power BI semantic model. To reach it, Genie One uses the Power BI connector: an MCP service that Databricks provides and controls through Unity Gateway. The user adds it to the conversation and signs in to Power BI as themselves, so Genie One sees only what that user may see there. With it, Genie One found the Midgard model, read its structure, ran a DAX query for the fire charm and quoted it in both translations, together with Midgard's canary, the proof it was read from Power BI.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Layer 5: Evaluate and improve&lt;/H3&gt;&lt;P&gt;We could only touch this layer lightly. Yggdrasil is a showcase run by one person, not an enterprise rollout: there were no users giving feedback, no owners or review cadence, and no benchmarks or monitoring over months.&lt;/P&gt;&lt;H3&gt;Beyond the guide: a skill for the procedure&lt;/H3&gt;&lt;P&gt;The guide puts definitions in Pages. Our guide Page also held a procedure (the one-song rule, the ranking query, how to read each world), and Genie One sometimes skipped it. So we moved that order of steps into a small Genie One skill; the Pages keep the facts. What changed once the skill was in place:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12-skill-before-after.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33955iD66B8DD272B142B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="12-skill-before-after.png" alt="12-skill-before-after.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The skill is a personal instruction, not governed context: it fixes the order of the steps, while the Pages still supply every fact.&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;4. What the Tree Could Not Hold (limits)&lt;/H3&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;New tables are invisible to search for the first 15-50 minutes; what no Page mentions stays unseen.&lt;/LI&gt;&lt;LI&gt;The one tie in the poem (hatred among men) went to the wrong charm in every run until the skill held the procedure. Without the one-song wording in the question, one more question went to the wrong charm.&lt;/LI&gt;&lt;LI&gt;Certification lives only in the table comments: assigning the certification tag needs a right we did not have.&lt;/LI&gt;&lt;LI&gt;Layer 5 (feedback, owners, benchmarks over time), row-level security and column masks were not tested.&lt;/LI&gt;&lt;LI&gt;Cost was not measured. Our gut feeling: Genie One over an ontology earns its place as a second layer of search, for when an answer may live in other catalogs, domains or kinds of source. A standard application with a simple, known task is likely served well enough by a classic retrieve-and-generate (RAG) setup.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;5. Hávamál for Builders (recommendations)&lt;/H3&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Start with one domain and a guide Page that says where things are and how to read them.&lt;/LI&gt;&lt;LI&gt;Put a rule that must not be wrong into a Metric View, and say on a Page when to use it.&lt;/LI&gt;&lt;LI&gt;Keep facts in Pages and the procedure in one small skill whose description says when not to fire.&lt;/LI&gt;&lt;LI&gt;Test with labelled canaries and the source's own wording.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note: to test what Genie One can really do, clear its memory before every run. Genie One draws on your earlier conversations and saved memories, so an answer it has seen before proves nothing about the ontology.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"At love should no one ever wonder in another: a beauteous countenance oft captivates the wise, which captivates not the foolish."&lt;/EM&gt; (Thorpe, Hávamál 93)&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;References&lt;/H3&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Databricks, &lt;EM&gt;Operationalizing the Enterprise Context Layer: Genie Ontology Readiness Assessment&lt;/EM&gt; (2026).&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/genie-one/skills" target="_blank" rel="noopener"&gt;Genie One skills&lt;/A&gt; and &lt;A href="https://docs.databricks.com/aws/en/genie-one/personalization" target="_blank" rel="noopener"&gt;Genie One memory&lt;/A&gt;, Databricks documentation.&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/metric-views/" target="_blank" rel="noopener"&gt;Unity Catalog metric views&lt;/A&gt;, Databricks documentation.&lt;/LI&gt;&lt;LI&gt;Benjamin Thorpe, &lt;EM&gt;The Edda of Sæmund the Learned&lt;/EM&gt; (1866): Hávamál, &lt;A href="https://www.germanicmythology.com/works/ThorpeEdda/thorpe06.html" target="_blank" rel="noopener"&gt;st. 1-139&lt;/A&gt; and &lt;A href="https://www.germanicmythology.com/works/ThorpeEdda/thorpe07.html" target="_blank" rel="noopener"&gt;st. 140-166&lt;/A&gt;.&lt;/LI&gt;&lt;LI&gt;Henry Adams Bellows, &lt;EM&gt;The Poetic Edda&lt;/EM&gt; (1923): &lt;A href="https://wevikings.com/library/poetry/havamal/henry-adams-bellows/" target="_blank" rel="noopener"&gt;Hávamál&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 02 Dec 2026 11:20:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/odin-gave-an-eye-and-nine-nights-loki-would-have-built-an/m-p/178471#M2019</guid>
      <dc:creator>Cihan_Giray</dc:creator>
      <dc:date>2026-12-02T11:20:02Z</dc:date>
    </item>
    <item>
      <title>Why Your Databricks Metric View Materialization Fails</title>
      <link>https://community.databricks.com/t5/community-articles/why-your-databricks-metric-view-materialization-fails/m-p/178394#M2018</link>
      <description>&lt;P&gt;If you’ve started using &lt;STRONG&gt;Unity Catalog Metric Views&lt;/STRONG&gt; in Databricks, you’ve probably hit a confusing wall when trying to accelerate them: the metric view validates and queries return the right numbers, yet enabling &lt;STRONG&gt;Materialization&lt;/STRONG&gt; either fails outright or doesn’t speed up the queries you expect.&lt;/P&gt;&lt;P&gt;In many cases, the culprit has nothing to do with your metric SQL or YAML syntax—it comes down to upstream &lt;STRONG&gt;column masking, row-level security, or ABAC policies&lt;/STRONG&gt; (even if they live on a base table several hops upstream), &lt;STRONG&gt;non-additive measures&lt;/STRONG&gt; like COUNT(DISTINCT) that can't roll up across dimensions, &lt;STRONG&gt;relaxed freshness&lt;/STRONG&gt; trade-offs, &lt;STRONG&gt;runtime parameters&lt;/STRONG&gt;, or &lt;STRONG&gt;DBR 17.3+ / Serverless&lt;/STRONG&gt; requirements.&lt;/P&gt;&lt;P&gt;I broke down these exact limitations, why Databricks enforces them, and what to check before enabling materialization in production in my full post on Medium:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":backhand_index_pointing_right:"&gt;👉&lt;/span&gt; &lt;STRONG&gt;&lt;A class="" href="https://medium.com/stackademic/the-metric-view-works-the-materialization-doesnt-here-s-why-87f02a50d6cb" target="_blank" rel="noopener"&gt;The Metric View Works. The Materialization Doesn’t. Here’s Why.&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Have you run into governance blockers or unexpected query rewrite behavior with Metric View materializations in your environment? Would love to hear how you handled it in the comments!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2026 23:54:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/why-your-databricks-metric-view-materialization-fails/m-p/178394#M2018</guid>
      <dc:creator>Avinash_Narala</dc:creator>
      <dc:date>2026-12-01T23:54:27Z</dc:date>
    </item>
    <item>
      <title>One Security Rule. Three Ways to Protect Your Data in Databricks.</title>
      <link>https://community.databricks.com/t5/community-articles/one-security-rule-three-ways-to-protect-your-data-in-databricks/m-p/178393#M2017</link>
      <description>&lt;P&gt;&lt;SPAN&gt;DATABRICKS / UNITY CATALOG&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Fine-grained access control with row filters, dynamic views and governed tags&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Databricks_Security_Hero.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33916iCDEBD0D5F9521900/image-size/large?v=v2&amp;amp;px=999" role="button" title="Databricks_Security_Hero.png" alt="Databricks_Security_Hero.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you had to secure 500 Delta tables in Databricks, would you create 500 dynamic views, attach row filters to every table, or let governed tags determine which policies apply?&lt;/P&gt;&lt;P&gt;Consider a fictional software company with a shared support-ticket table. ORBIT readers should see only ORBIT tickets; NOVA readers should see only NOVA tickets. Both groups should see masked contact emails unless separately authorized.&lt;/P&gt;&lt;P&gt;The business rule is the same in every case. What changes is where we enforce it. Define the row-filter function once, keep the entitlements in a mapping table, and reuse the logic in three different ways. A separate function handles email masking.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;All data, names and identifiers are fictional. Illustrations explain the design; they are not workspace screenshots.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;Start with one rule, not three implementations&lt;/H2&gt;&lt;P&gt;Store the tenant-to-account-group relationship in a private mapping table. Change an entitlement by updating the map, not by editing each table, view or policy.&lt;/P&gt;&lt;H3&gt;1. Create a small, isolated example&lt;/H3&gt;&lt;P&gt;&lt;SPAN&gt;Use a Unity Catalog-enabled serverless SQL warehouse supporting the statements below, or Standard compute on Runtime 18.1+. Run setup as a trusted administrator. Pre-create account groups orbit_ticket_readers and nova_ticket_readers (nested in ticket_readers), plus contact_readers. Governed tag creation and assignment require appropriate account and object privileges.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;CREATE CATALOG ticket_demo;
CREATE SCHEMA ticket_demo.vault;
CREATE SCHEMA ticket_demo.logic;
CREATE SCHEMA ticket_demo.managed;
CREATE SCHEMA ticket_demo.portal;
CREATE SCHEMA ticket_demo.classified;
CREATE TABLE ticket_demo.vault.tickets (
  ticket_id STRING, tenant_code STRING, subject STRING,
  contact_email STRING
) USING DELTA;
INSERT INTO ticket_demo.vault.tickets VALUES
  ('T-1001','ORBIT','Login issue','a@example.test'),
  ('T-1002','ORBIT','Access request','b@example.test'),
  ('T-2001','NOVA','Report error','c@example.test'),
  ('T-2002','NOVA','Feature question','d@example.test');
CREATE TABLE ticket_demo.managed.tickets USING DELTA
  AS SELECT * FROM ticket_demo.vault.tickets;
CREATE TABLE ticket_demo.classified.tickets USING DELTA
  AS SELECT * FROM ticket_demo.vault.tickets;&lt;/LI-CODE&gt;&lt;H3&gt;2. Define the shared access logic&lt;/H3&gt;&lt;LI-CODE lang="sql"&gt;CREATE TABLE ticket_demo.logic.tenant_access (
  tenant_code STRING NOT NULL, group_name STRING NOT NULL
) USING DELTA;
INSERT INTO ticket_demo.logic.tenant_access VALUES
  ('ORBIT','orbit_ticket_readers'),
  ('NOVA','nova_ticket_readers');
CREATE FUNCTION ticket_demo.logic.tenant_allowed(k STRING)
RETURNS BOOLEAN RETURN EXISTS (
  SELECT 1 FROM ticket_demo.logic.tenant_access m
  WHERE m.tenant_code = k
    AND is_account_group_member(m.group_name)
);
CREATE FUNCTION ticket_demo.logic.mask_contact(v STRING)
RETURNS STRING RETURN CASE
  WHEN v IS NULL OR is_account_group_member('contact_readers')
    THEN v ELSE '********' END;&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;The function checks the connected user’s account-group membership against the row’s tenant. A missing mapping returns false; membership in both groups permits both tenants. Keep the map private and the functions under trusted ownership; the function owner needs SELECT on the map.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;Three ways to enforce the same rule&lt;/H2&gt;&lt;H3&gt;1. Attach the functions to the table&lt;/H3&gt;&lt;LI-CODE lang="sql"&gt;ALTER TABLE ticket_demo.managed.tickets
  SET ROW FILTER ticket_demo.logic.tenant_allowed
  ON (tenant_code);
ALTER TABLE ticket_demo.managed.tickets
  ALTER COLUMN contact_email
  SET MASK ticket_demo.logic.mask_contact;&lt;/LI-CODE&gt;&lt;P&gt;The filter and mask belong to the table. A user querying it directly receives only authorized rows and permitted email values. This suits table-specific security.&lt;/P&gt;&lt;H3&gt;2. Put the functions inside a dynamic view&lt;/H3&gt;&lt;LI-CODE lang="sql"&gt;CREATE VIEW ticket_demo.portal.tickets_v AS
SELECT ticket_id, tenant_code, subject,
  ticket_demo.logic.mask_contact(contact_email) AS contact_email
FROM ticket_demo.vault.tickets
WHERE ticket_demo.logic.tenant_allowed(tenant_code);&lt;/LI-CODE&gt;&lt;P&gt;Give readers access to the serving view, not the source table. On supported compute, the view owner’s privileges authorize source access, while the identity functions evaluate the connected user. This is a good fit for a curated, read-only serving layer.&lt;/P&gt;&lt;H3&gt;3. Classify the columns with governed tags&lt;/H3&gt;&lt;P&gt;With attribute-based access control, the functions stay the same. Unity Catalog uses governed tags to discover the columns and bind their values to the functions.&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;CREATE GOVERNED TAG ticket_demo_classification
  VALUES ('tenant_key','contact_email');
ALTER TABLE ticket_demo.classified.tickets
  ALTER COLUMN tenant_code
  SET TAGS ('ticket_demo_classification' = 'tenant_key');
ALTER TABLE ticket_demo.classified.tickets
  ALTER COLUMN contact_email
  SET TAGS ('ticket_demo_classification' = 'contact_email');&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Databricks_Governed_Tags_Explained.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33917iD0B3628C2920192C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Databricks_Governed_Tags_Explained.png" alt="Databricks_Governed_Tags_Explained.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The tag identifies the access key, not its ORBIT or NOVA values. The row’s actual value is passed to the Boolean function at query time.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;Bind the tags to the functions&lt;/H2&gt;&lt;LI-CODE lang="sql"&gt;CREATE POLICY tenant_filter
ON SCHEMA ticket_demo.classified
ROW FILTER ticket_demo.logic.tenant_allowed
TO `account users` FOR TABLES
MATCH COLUMNS
  has_tag_value('ticket_demo_classification','tenant_key')
  AS tenant_col
USING COLUMNS (tenant_col);
CREATE POLICY contact_mask
ON SCHEMA ticket_demo.classified
COLUMN MASK ticket_demo.logic.mask_contact
TO `account users` FOR TABLES
MATCH COLUMNS
  has_tag_value('ticket_demo_classification','contact_email')
  AS email_col
ON COLUMN email_col;&lt;/LI-CODE&gt;&lt;P&gt;A schema-level policy covers correctly tagged tables. Missing tags can expose unprotected data. Verify policy coverage before grants; avoid conflicting filters or masks.&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;SHOW EFFECTIVE POLICIES ON TABLE ticket_demo.classified.tickets;
GRANT USE CATALOG ON CATALOG ticket_demo TO `ticket_readers`;
GRANT USE SCHEMA ON SCHEMA ticket_demo.managed TO `ticket_readers`;
GRANT SELECT ON TABLE ticket_demo.managed.tickets TO `ticket_readers`;
GRANT USE SCHEMA ON SCHEMA ticket_demo.portal TO `ticket_readers`;
GRANT SELECT ON VIEW ticket_demo.portal.tickets_v TO `ticket_readers`;
GRANT USE SCHEMA ON SCHEMA ticket_demo.classified TO `ticket_readers`;
GRANT SELECT ON TABLE ticket_demo.classified.tickets TO `ticket_readers`;&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;Grant only after verifying protection and inherited grants. Readers must have no direct access to vault, logic, or underlying storage. Test with non-admin reader identities.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;-- Run each as an ORBIT-only reader without contact_readers
SELECT * FROM ticket_demo.managed.tickets;
SELECT * FROM ticket_demo.portal.tickets_v;
SELECT * FROM ticket_demo.classified.tickets;
-- Run separately: both should be denied
SELECT * FROM ticket_demo.vault.tickets;
SELECT * FROM ticket_demo.logic.tenant_access;&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;Expected: ORBIT-only readers get T-1001 and T-1002, with ******** in contact_email. NOVA-only readers get T-2001 and T-2002. A reader with access to the objects but no tenant mapping gets zero rows. contact_readers unmasks email but grants no extra rows.&lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;Which approach performs better?&lt;/H3&gt;&lt;P&gt;Approach Performance and best fit&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Dynamic view&lt;/TD&gt;&lt;TD&gt;Can allow more predicate pushdown; best for curated serving layers. No SecureView barrier.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Table-level filter / mask&lt;/TD&gt;&lt;TD&gt;SecureView can constrain some optimization; best for direct access to specific tables.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Tag-driven policies&lt;/TD&gt;&lt;TD&gt;Same type of security barrier, not inherently faster. Best for consistent governance at scale.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Dynamic views can be faster, but there is no universal winner. Table filters and tag-driven policies restrict some optimizations to reduce information leakage. Compare scan bytes, pruning, joins and latency on identical compute, data layout and user. Keep the access map small.&lt;/P&gt;&lt;P&gt;My preference: reuse the security logic. Choose views for curated consumption, table filters for targeted protection, and governed policies for consistency at scale. A protected table can also sit behind a serving view.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Documentation-checked on December 1, 2026; not live-execution tested. No measured performance results are claimed.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2026 23:09:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/one-security-rule-three-ways-to-protect-your-data-in-databricks/m-p/178393#M2017</guid>
      <dc:creator>MouR</dc:creator>
      <dc:date>2026-12-01T23:09:35Z</dc:date>
    </item>
    <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>
  </channel>
</rss>

