<?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>Sun, 29 Nov 2026 22:56:23 GMT</pubDate>
    <dc:creator>Knowledge-Sharing-Hub</dc:creator>
    <dc:date>2026-11-29T22:56:23Z</dc:date>
    <item>
      <title>Building a Governed AI Data Quality Agent with Databricks DQX: A Hands-on Insurance Industry</title>
      <link>https://community.databricks.com/t5/community-articles/building-a-governed-ai-data-quality-agent-with-databricks-dqx-a/m-p/177970#M1994</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Databricks AI Engineering Labs&amp;nbsp; Lab 01&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;1. Introduction&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;One of the challenges I have encountered in enterprise data engineering is translating business data quality requirements into reliable, executable validation rules.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;While large language models can accelerate this process, allowing an AI model to generate and execute arbitrary SQL introduces additional risks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I wanted to explore a different architectural pattern:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;AI understands the business requirement.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Structured outputs define the proposed validation plan.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;A deterministic rule registry controls permitted operations.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;A human reviews and approves the plan.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Databricks DQX performs the actual data quality validation.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;MLflow provides AI observability.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;To evaluate this approach, I developed an open-source insurance industry reference implementation using 185,000 synthetic records, ten data quality rules, two AI providers and a human-in-the-loop approval workflow.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This article explains the implementation, reproduction steps, benchmark results and engineering lessons.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;2. What you will build&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;By completing this lab, you will learn how to:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Generate realistic relational synthetic insurance data.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Implement native Databricks DQX validation.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Detect completeness, uniqueness, validity and referential integrity defects.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Separate valid and quarantined records.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Convert natural language requirements into structured quality plans.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Implement controlled rule selection and human approval.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Evaluate AI planning accuracy.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Monitor AI token consumption and execution latency.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;The complete implementation is available at:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/amising6/databricks-ai-engineering-labs" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;https://github.com/amising6/databricks-ai-engineering-labs&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;3. Solution architecture&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;The architecture separates AI planning from deterministic execution:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Business Requirement&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;↓&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AI Planning — Databricks or Ollama&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;↓&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pydantic Structured Output&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;↓&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Approved Data Quality Rule Registry&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;↓&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deterministic Rule Compiler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;↓&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Human Approval and Plan Fingerprint&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;↓&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Apache Spark + Databricks DQX&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;↓&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Valid Records + Quarantine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;↓&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Quality Analytics and MLflow Observability&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The fundamental design decision is that the AI model never receives unrestricted execution authority.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It selects approved rule identifiers rather than generating arbitrary executable code.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;4. Technology stack&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;Component Technology&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Data processing&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Apache Spark&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Data quality&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Databricks Labs DQX&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Governed storage&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Unity Catalog&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Hosted AI&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Databricks Model Serving&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Local AI&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Ollama&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Structured outputs&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Pydantic&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Observability&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;MLflow&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Interactive application&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Streamlit&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Testing&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Pytest&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Plan integrity&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;SHA-256&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;H2&gt;&lt;SPAN&gt;5. Prerequisites&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;For native Databricks execution:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;A Databricks workspace with compatible interactive compute.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Access to Unity Catalog.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Permission to create or use a schema and writable volume.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Python environment with compatible DQX dependencies.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Access to a supported model-serving endpoint if reproducing live AI planning.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;The native DQX notebooks were tested using Databricks Free Edition serverless compute.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The public interactive demonstration does not require a Databricks account.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;6. Download the engineering lab&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;Clone the repository:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;git clone https://github.com/amising6/databricks-ai-engineering-labs.git&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Navigate to Lab 01:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;cd databricks-ai-engineering-labs/01-structured-outputs&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The implementation contains:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Synthetic insurance data generator.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Approved quality rule registry.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Native DQX execution engine.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Structured AI planning.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Human approval workflow.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Lightweight demonstration engine.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Streamlit application.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Benchmark evidence.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Automated tests.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Executable Databricks notebooks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H2&gt;&lt;SPAN&gt;7. Generate a realistic synthetic insurance dataset&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;Data quality demonstrations often use small, isolated datasets. I wanted to test a more realistic relational model without exposing any confidential enterprise data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The insurance data model consists of four interconnected datasets:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Dataset Records Primary business identifier&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Customers&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;10,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;customer_id&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Policies&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;25,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;policy_id&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Claims&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;50,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;claim_id&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Payments&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;100,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;payment_id&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Total&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;185,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN&gt;The relationships are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Customers → Policies → Claims → Payments&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Each dataset also contains a separate row identifier to support accurate defect tracking.&lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN&gt;Dataset schemas&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Customers&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;row_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;customer_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;customer_name&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;email&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;country&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Policies&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;row_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;policy_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;customer_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;effective_date&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;expiration_date&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;premium_amount&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;policy_status&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Claims&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;row_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;claim_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;policy_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;claim_date&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;claim_amount&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;claim_status&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Payments&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;row_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;payment_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;claim_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;payment_date&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;payment_amount&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;payment_status&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;&lt;SPAN&gt;Execute the synthetic data generator&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN&gt;From the Lab 01 directory, run:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;python insurance_lab/generate_data.py&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The generator uses random seed 42 to produce reproducible datasets.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It creates the following files under the insurance data directory:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;customers.csv&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;policies.csv&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;claims.csv&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;payments.csv&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;defect_manifest.csv&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;dataset_summary.json&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;The complete generator is available here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/amising6/databricks-ai-engineering-labs/blob/main/01-structured-outputs/insurance_lab/generate_data.py" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;https://github.com/amising6/databricks-ai-engineering-labs/blob/main/01-structured-outputs/insurance_lab/generate_data.py&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN&gt;Controlled defect injection&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;Dataset Injected defect Count&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Customers&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Missing customer identifier&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;100&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Customers&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Invalid email&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;200&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Policies&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Duplicate policy identifier&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;100&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Policies&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Invalid policy dates&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;125&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Policies&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Invalid customer reference&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;50&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Claims&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Negative claim amount&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;500&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Claims&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Invalid policy reference&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;200&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Claims&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Invalid claim status&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;125&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Payments&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Negative payment amount&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;500&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Payments&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Invalid claim reference&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;200&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Total&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;2,100&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN&gt;Some records contain multiple defects.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The generator also creates a defect manifest containing the dataset, row identifier, affected column and defect type.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This manifest becomes the ground truth for evaluating detection accuracy.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;All records are synthetic and generated independently of any customer or production environment.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;8. Import the Databricks notebooks&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;Two executable notebooks are included:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Notebook 1: Governed AI Data Quality Agent&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;01_governed_ai_data_quality.ipynb&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Notebook 2: Native Insurance DQX Demonstration&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;02_insurance_dqx_demo.ipynb&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Download them from:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/amising6/databricks-ai-engineering-labs/tree/main/01-structured-outputs/notebooks" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;https://github.com/amising6/databricks-ai-engineering-labs/tree/main/01-structured-outputs/notebooks&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In Databricks:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Open your workspace.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Import both notebooks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Attach compatible interactive compute.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Start with the native insurance DQX demonstration.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Install the required dependencies.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;The tested dependency versions were:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;%pip install databricks-labs-dqx==0.16.0 pydantic==2.14.4&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Restart Python when instructed by the notebook.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Configure the catalog, schema and volume using values accessible in your environment.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;9. Configure Unity Catalog storage&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;For my Databricks Free Edition implementation, I used:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Catalog: workspace&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Schema: insurance_dq_lab&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Volume: synthetic_data&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;An illustrative setup is:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;CREATE SCHEMA IF NOT EXISTS workspace.insurance_dq_lab;

CREATE VOLUME IF NOT EXISTS workspace.insurance_dq_lab.synthetic_data;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The associated volume path is:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;/Volumes/workspace/insurance_dq_lab/synthetic_data/&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Replace these values if your workspace uses a different catalog or permissions model.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The notebooks use unique run directories to isolate generated datasets and execution outputs.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;10. Define an approved data quality rule registry&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;Rather than allowing an AI model to construct arbitrary validation expressions, I created a deterministic registry of approved rules.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The initial implementation contains ten rules.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Dataset Rule&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Customers&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Customer ID completeness&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Customers&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Customer email validity&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Policies&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Policy ID uniqueness&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Policies&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Policy date validity&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Policies&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Customer referential integrity&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Claims&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Claim amount validity&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Claims&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Claim status validity&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Claims&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Policy referential integrity&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Payments&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Payment amount validity&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Payments&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;Claim referential integrity&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN&gt;For example, DQX metadata for the customer completeness check is defined as:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;{
    "name": "customer_id_completeness",
    "criticality": "error",
    "check": {
        "function": "is_not_null",
        "arguments": {
            "column": "customer_id"
        }
    }
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;A uniqueness rule is defined as:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;{
    "name": "policy_id_uniqueness",
    "criticality": "error",
    "check": {
        "function": "is_unique",
        "arguments": {
            "columns": ["policy_id"]
        }
    }
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;A referential integrity rule is defined as:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;{
    "name": "claim_policy_integrity",
    "criticality": "error",
    "check": {
        "function": "foreign_key",
        "arguments": {
            "columns": ["policy_id"],
            "ref_columns": ["policy_id"],
            "ref_df_name": "policies"
        }
    }
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The complete rule registry is available in:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;insurance_lab/rule_registry.py&lt;/SPAN&gt;&lt;/PRE&gt;&lt;H2&gt;&lt;SPAN&gt;11. Execute native Databricks DQX validation&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;The execution workflow:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Reads the synthetic datasets using Spark.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Converts financial amounts to decimal types.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Converts date columns to date types.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Prepares distinct parent reference keys.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Validates the approved DQX metadata.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Executes the registered rules.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Separates valid and quarantined records.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Produces dataset-level and rule-level metrics.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;The central DQX operation follows this pattern:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;valid_df, quarantine_df = (
    engine.apply_checks_by_metadata_and_split(
        df,
        checks,
        ref_dfs=reference_dataframes
    )
)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The complete executable implementation, including engine initialization and reference dataframe preparation, is included in the notebooks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DQX adds structured error information that can be inspected to identify failed rules and affected columns.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The quarantined records and error metadata are then used to construct operational quality reports.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;12. Introduce AI-assisted rule planning&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;Once deterministic execution was working, I introduced an AI planning layer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Consider the following requirement:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Check claims for negative amounts and invalid policy references."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The expected structured plan is:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;{
    "rules": [
        {
            "table": "claims",
            "rule_id": "claim_amount_validity"
        },
        {
            "table": "claims",
            "rule_id": "claim_policy_integrity"
        }
    ]
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The AI model does not generate SQL or directly configure Spark execution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It selects rule identifiers from the approved registry.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Pydantic validates the response structure before further processing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The final implementation also distinguishes between:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Supported requirements.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Unsupported requirements.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Ambiguous requirements.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;This allows the planner to reject requests that cannot be satisfied by the approved rule catalog.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;13. Human-in-the-loop approval&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;A valid AI response is not automatically authorized for execution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The deterministic compiler performs the following activities:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Verifies that each rule exists in the approved registry.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Removes duplicate rule selections.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Builds executable DQX metadata.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Calculates a SHA-256 fingerprint.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Presents the compiled plan for human review.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;The approved plan is validated again before execution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the plan or compiled metadata has changed, the fingerprint comparison fails.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This provides plan integrity checking. It is not a substitute for authenticated enterprise authorization, role-based access controls or a tamper-resistant audit store.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;14. Native DQX benchmark results&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;The complete insurance validation produced:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Dataset Input Valid Quarantined Quality&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Customers&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;10,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;9,800&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;200&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;98.00%&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Policies&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;25,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;24,700&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;300&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;98.80%&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Claims&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;50,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;49,400&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;600&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;98.80%&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Payments&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;100,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;99,400&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;600&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;99.40%&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;Total&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;185,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;183,300&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;1,700&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;99&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sat, 28 Nov 2026 21:31:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/building-a-governed-ai-data-quality-agent-with-databricks-dqx-a/m-p/177970#M1994</guid>
      <dc:creator>AmitDECopilot</dc:creator>
      <dc:date>2026-11-28T21:31:51Z</dc:date>
    </item>
    <item>
      <title>Serving External Customers from a .NET Application on Databricks</title>
      <link>https://community.databricks.com/t5/community-articles/serving-external-customers-from-a-net-application-on-databricks/m-p/177945#M1993</link>
      <description>&lt;P&gt;A question that comes up in .NET shops: our customers are outside the company, and our application is in C#. How do we put Databricks data in front of them? The answer depends on who your users are and what they need to do. In some cases you need no custom application at all.&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT color="#E0661A"&gt;━━━━━━━━━━━━━━━━━━&lt;/FONT&gt;&lt;/P&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;Start with who the users are&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;Databricks Apps hosts an application on Databricks serverless compute, with authentication handled for you. It is the shortest path whenever every user can hold an identity in your Databricks account. The permissions page is explicit about the opposite case:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT color="#E0661A"&gt;&lt;STRONG&gt;FROM THE DOCUMENTATION&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;"You can't make Databricks apps public. Anonymous access and bypassing single sign-on (SSO) are not supported." (&lt;A href="https://docs.databricks.com/aws/en/dev-tools/databricks-apps/permissions" target="_blank" rel="noopener"&gt;Databricks Apps permissions&lt;/A&gt;)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Users do not have to belong to the same workspace, but they must belong to the same account. Apps runs Python 3.11 and Node.js 22, so a C# application cannot run there as it is.&lt;/P&gt;&lt;P&gt;So the first question is whether you can provision your customers as account identities. Partners under contract often can. Thousands of self-service customers usually cannot.&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT color="#E0661A"&gt;━━━━━━━━━━━━━━━━━━&lt;/FONT&gt;&lt;/P&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;If they only need dashboards&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;AI/BI dashboard embedding for external users is generally available. It shares a published dashboard "with viewers outside of your organization, such as partners and customers, without provisioning Databricks accounts for those users."&lt;/P&gt;&lt;P&gt;Your server holds a service principal. It exchanges the principal's token for a short-lived token scoped to one dashboard and one viewer, and passes an &lt;FONT face="courier new, courier, monospace"&gt;external_value&lt;/FONT&gt; that dataset queries read as &lt;FONT face="courier new, courier, monospace"&gt;__aibi_external_value&lt;/FONT&gt; to filter rows per customer. Any backend can make that exchange, including ASP.NET Core. Two limits to plan for: the Ask Genie button is not available to external viewers, and loads are rate-limited to 20 per second.&lt;/P&gt;&lt;P&gt;If view-and-filter dashboards are the whole requirement, stop here. You do not need a framework.&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT color="#E0661A"&gt;━━━━━━━━━━━━━━━━━━&lt;/FONT&gt;&lt;/P&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;If you need your own application&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;Some products go further. Customers start jobs, run their own queries, ask questions in natural language, and expect their data never to appear in another customer's session. Then you host the application yourself, outside Databricks, and these decisions are yours:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Decision&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;What has to be true&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Who is the tenant&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;Resolved on the server from your membership data, never from a URL or a header the client controls.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;How queries are scoped&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;Parameters bound by the Statement Execution API, never string-built SQL, with the tenant's catalog and schema chosen by the server.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;How Databricks is reached&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;A service principal or managed identity. Unity Catalog row filters keyed on &lt;FONT face="courier new, courier, monospace"&gt;session_user()&lt;/FONT&gt; do not separate customers who share one principal.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;How dashboards are embedded&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;The external embedding token exchange above, with the tenant in &lt;FONT face="courier new, courier, monospace"&gt;external_value&lt;/FONT&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;How Genie is shared&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;One Genie space per tenant. Conversation history belongs to the authenticated principal, so a shared principal shares it.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;How you prove isolation&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;Tests that try to read another tenant's data and fail the build when they succeed.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The Databricks SDKs cover Python, JavaScript, Go and Java. There is no Databricks SDK for .NET, so a C# team writes these pieces against the REST APIs or uses an open-source library.&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT color="#E0661A"&gt;━━━━━━━━━━━━━━━━━━&lt;/FONT&gt;&lt;/P&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;One open-source option&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;I maintain &lt;A href="https://github.com/ivanvyd/LakeWright.NET" target="_blank" rel="noopener"&gt;LakeWright.NET&lt;/A&gt;, an Apache-2.0 library for the third case: tenant resolution, a query layer that refuses string-built SQL, durable job operations, the embedding token exchange, Genie conversations bound to the tenant that started them, and a cross-tenant isolation test suite. Its compatibility matrix lists which claims were verified against a live workspace and which were not. Its "When not to use LakeWright" page sends you to Databricks Apps, external embedding or Lakebase when those fit, which is most of the time.&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT color="#E0661A"&gt;━━━━━━━━━━━━━━━━━━&lt;/FONT&gt;&lt;/P&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;Conclusion&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;If your users can be Databricks account identities, use Databricks Apps. If external customers only view dashboards, use AI/BI embedding for external users from any backend, .NET included. Build and host your own application only when customers need more than dashboards and cannot be account identities. In that case, decide the tenant model before writing the first query.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2026 14:23:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/serving-external-customers-from-a-net-application-on-databricks/m-p/177945#M1993</guid>
      <dc:creator>ivanvyd</dc:creator>
      <dc:date>2026-11-28T14:23:49Z</dc:date>
    </item>
    <item>
      <title>Predictive Optimization Bills You for the Empty system.lakebase Tables</title>
      <link>https://community.databricks.com/t5/community-articles/predictive-optimization-bills-you-for-the-empty-system-lakebase/m-p/177928#M1992</link>
      <description>&lt;P&gt;If your workspace uses Lakebase and has predictive optimization turned on, check one schema you did not create: &lt;FONT face="courier new, courier, monospace"&gt;system.lakebase&lt;/FONT&gt;. In our workspace, predictive optimization maintained its ten empty tables every day, and every run showed up on the bill. We could not turn it off ourselves. Databricks turned it off after a support case. This post shows how to find out whether it affects you, and what to put in the case if it does.&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT color="#E0661A"&gt;━━━━━━━━━━━━━━━━━━&lt;/FONT&gt;&lt;/P&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;What we saw&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;The billing usage table showed a predictive optimization charge every day. The operations history showed where it came from: &lt;FONT face="courier new, courier, monospace"&gt;VACUUM&lt;/FONT&gt;, &lt;FONT face="courier new, courier, monospace"&gt;PURGE&lt;/FONT&gt; and &lt;FONT face="courier new, courier, monospace"&gt;DELETE&lt;/FONT&gt; runs on all ten tables of &lt;FONT face="courier new, courier, monospace"&gt;system.lakebase&lt;/FONT&gt;, such as &lt;FONT face="courier new, courier, monospace"&gt;postgres_logs&lt;/FONT&gt;, &lt;FONT face="courier new, courier, monospace"&gt;plan_history&lt;/FONT&gt; and &lt;FONT face="courier new, courier, monospace"&gt;active_session_history&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;That schema is owned by a Databricks service identity, not by anyone in the workspace. All ten tables were empty, and the Lakebase observability previews were off. There was nothing to maintain, but the maintenance ran and was billed.&lt;/P&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;Why the schema ran when its catalog did not&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;Predictive optimization is inherited: account, then catalog, then schema, then table. An object that sets &lt;FONT face="courier new, courier, monospace"&gt;ENABLE&lt;/FONT&gt; or &lt;FONT face="courier new, courier, monospace"&gt;DISABLE&lt;/FONT&gt; explicitly ignores its parent. In our workspace the settings were:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Object&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Setting&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Effect&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Catalog &lt;FONT face="courier new, courier, monospace"&gt;system&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="courier new, courier, monospace"&gt;DISABLE&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;Off for schemas that inherit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Schema &lt;FONT face="courier new, courier, monospace"&gt;system.lakebase&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="courier new, courier, monospace"&gt;ENABLE&lt;/FONT&gt;, set on the schema itself&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#E0661A"&gt;&lt;STRONG&gt;On, despite the catalog&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Our own catalogs&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="courier new, courier, monospace"&gt;INHERIT&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;On, from the account&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The explicit &lt;FONT face="courier new, courier, monospace"&gt;ENABLE&lt;/FONT&gt; on the schema overrides the catalog's &lt;FONT face="courier new, courier, monospace"&gt;DISABLE&lt;/FONT&gt;, so the ten tables stayed eligible for maintenance.&lt;/P&gt;&lt;P align="center"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Diagram: the system catalog is set to DISABLE, but the system.lakebase schema carries its own ENABLE, so its ten empty tables are maintained and billed every day, while your own catalogs inherit ENABLE from the account." style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33820iBEC643FCBBE1065E/image-size/large?v=v2&amp;amp;px=999" role="button" title="po-inheritance.png" alt="po-inheritance.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT color="#E0661A"&gt;&lt;STRONG&gt;Figure 1.&lt;/STRONG&gt;&lt;/FONT&gt; &lt;EM&gt;An explicit ENABLE on the schema overrides the catalog's DISABLE.&lt;/EM&gt;&lt;/P&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;Why you cannot fix it yourself&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;Catalog Explorer shows the lock. Open &lt;STRONG&gt;Catalog&lt;/STRONG&gt;, then &lt;FONT face="courier new, courier, monospace"&gt;system&lt;/FONT&gt;, then &lt;FONT face="courier new, courier, monospace"&gt;lakebase&lt;/FONT&gt;, and select the &lt;STRONG&gt;Details&lt;/STRONG&gt; tab. Under &lt;STRONG&gt;Advanced&lt;/STRONG&gt;, the predictive optimization row has no setting to change.&lt;/P&gt;&lt;P align="center"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Catalog Explorer, system.lakebase schema, Details tab: under Advanced, the Predictive Optimization row reads &amp;quot;Predictive optimization can't be managed for this schema.&amp;quot;" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33822iE07697CE48E65E96/image-size/large?v=v2&amp;amp;px=999" role="button" title="fig2-details.png" alt="fig2-details.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT color="#E0661A"&gt;&lt;STRONG&gt;Figure 2.&lt;/STRONG&gt;&lt;/FONT&gt; &lt;EM&gt;The Details tab of system.lakebase: the setting cannot be managed from the workspace.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;All three obvious fixes fail or cost more than the problem:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Changing the schema fails. &lt;FONT face="courier new, courier, monospace"&gt;PATCH /api/2.1/unity-catalog/schemas/system.lakebase&lt;/FONT&gt; returns 403 with &lt;FONT face="courier new, courier, monospace"&gt;Predictive optimization can't be modified on a system schema&lt;/FONT&gt;.&lt;/LI&gt;&lt;LI&gt;Changing each table fails. &lt;FONT face="courier new, courier, monospace"&gt;ALTER TABLE ... DISABLE PREDICTIVE OPTIMIZATION&lt;/FONT&gt; is refused for lack of &lt;FONT face="courier new, courier, monospace"&gt;MODIFY&lt;/FONT&gt; on the table.&lt;/LI&gt;&lt;LI&gt;Turning predictive optimization off for the account does not help. The &lt;A href="https://learn.microsoft.com/azure/databricks/optimizations/predictive-optimization#enable-predictive-optimization" target="_blank" rel="noopener"&gt;predictive optimization documentation&lt;/A&gt; states that an account-level disable leaves explicitly enabled catalogs and schemas enabled. It would also stop maintenance on your own tables.&lt;/LI&gt;&lt;/UL&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;How to check your workspace&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;Run these as read-only queries on any SQL warehouse.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. The schema setting.&lt;/STRONG&gt; Look at the &lt;FONT face="courier new, courier, monospace"&gt;Predictive Optimization&lt;/FONT&gt; row. &lt;FONT face="courier new, courier, monospace"&gt;ENABLE&lt;/FONT&gt; means the schema can still be maintained.&lt;/P&gt;&lt;PRE&gt;DESCRIBE SCHEMA EXTENDED system.lakebase;&lt;/PRE&gt;&lt;P&gt;The same value is in &lt;FONT face="courier new, courier, monospace"&gt;enable_predictive_optimization&lt;/FONT&gt; and &lt;FONT face="courier new, courier, monospace"&gt;effective_predictive_optimization_flag&lt;/FONT&gt; from &lt;FONT face="courier new, courier, monospace"&gt;GET /api/2.1/unity-catalog/schemas/system.lakebase&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Maintenance runs on system tables.&lt;/STRONG&gt; Any row here is predictive optimization working on a schema you do not own.&lt;/P&gt;&lt;PRE&gt;SELECT catalog_name, schema_name, table_name, operation_type,
       count(*) AS operations, min(start_time) AS first_run, max(start_time) AS last_run
FROM system.storage.predictive_optimization_operations_history
WHERE catalog_name = 'system'
GROUP BY ALL
ORDER BY operations DESC;&lt;/PRE&gt;&lt;P&gt;In our workspace it returned 30 rows, all in &lt;FONT face="courier new, courier, monospace"&gt;system.lakebase&lt;/FONT&gt;: every one of the ten tables had &lt;FONT face="courier new, courier, monospace"&gt;VACUUM&lt;/FONT&gt;, &lt;FONT face="courier new, courier, monospace"&gt;PURGE&lt;/FONT&gt; and &lt;FONT face="courier new, courier, monospace"&gt;DELETE&lt;/FONT&gt; runs.&lt;/P&gt;&lt;P align="center"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Query result in the SQL editor: rows for catalog system, schema lakebase, with tables such as database_counters, postgres_logs and plan_history, operation types VACUUM, PURGE and DELETE, and 14 or 10 operations per row." style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33823iFDF85E900EFC1B74/image-size/large?v=v2&amp;amp;px=999" role="button" title="fig3-operations.png" alt="fig3-operations.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT color="#E0661A"&gt;&lt;STRONG&gt;Figure 3.&lt;/STRONG&gt;&lt;/FONT&gt; &lt;EM&gt;Query 2 in our workspace: maintenance runs on the empty system.lakebase tables.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. What it cost.&lt;/STRONG&gt; &lt;FONT face="courier new, courier, monospace"&gt;usage_quantity&lt;/FONT&gt; in the operations history gives the DBUs of each run, so this query gives the share that went to the system schema:&lt;/P&gt;&lt;PRE&gt;SELECT schema_name, operation_type, count(*) AS runs,
       round(sum(usage_quantity), 4) AS dbus
FROM system.storage.predictive_optimization_operations_history
WHERE catalog_name = 'system' AND schema_name = 'lakebase'
GROUP BY ALL
ORDER BY dbus DESC;&lt;/PRE&gt;&lt;P&gt;Ours showed 340 runs and about 26.7 DBUs in just over nine days, all spent on tables with no rows. &lt;FONT face="courier new, courier, monospace"&gt;VACUUM&lt;/FONT&gt; alone took 23.9 of them.&lt;/P&gt;&lt;P align="center"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Query result: schema lakebase, VACUUM 140 runs 23.8741 DBUs, PURGE 100 runs 1.7179 DBUs, DELETE 100 runs 1.0849 DBUs." style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33821i4FF8699A9B28E812/image-size/large?v=v2&amp;amp;px=999" role="button" title="fig4-dbus.png" alt="fig4-dbus.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P align="center"&gt;&lt;FONT color="#E0661A"&gt;&lt;STRONG&gt;Figure 4.&lt;/STRONG&gt;&lt;/FONT&gt; &lt;EM&gt;DBUs that predictive optimization spent on system.lakebase, by operation type.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;To see where those runs land on the bill, compare the daily totals in billing usage with the run dates from query 2:&lt;/P&gt;&lt;PRE&gt;SELECT usage_date, sum(usage_quantity) AS dbus
FROM system.billing.usage
WHERE billing_origin_product = 'PREDICTIVE_OPTIMIZATION'
  AND usage_date &amp;gt;= current_date() - INTERVAL 30 DAYS
GROUP BY usage_date
ORDER BY usage_date;&lt;/PRE&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT color="#E0661A"&gt;&lt;STRONG&gt;IF QUERY 2 RETURNS ROWS&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Do not disable predictive optimization for the account to stop them. Open a support case instead, and keep your own catalogs as they are.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;Working the support case&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;We opened the case through Azure support. A system schema is owned by Databricks, so the fix had to come from Databricks engineering, and the case needed to reach them. These steps kept it short:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Send evidence support can rerun.&lt;/STRONG&gt; The case carried the settings from query 1, the runs from query 2 with table names and operation types, the billing rows from query 3, and the 403 response to the &lt;FONT face="courier new, courier, monospace"&gt;PATCH&lt;/FONT&gt; request.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Say what must not change.&lt;/STRONG&gt; We asked for predictive optimization to stay on for our own catalogs, so the fix would not be an account-wide disable.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Agree on a trigger for escalation.&lt;/STRONG&gt; Support agreed that another daily run on the schema while it still showed &lt;FONT face="courier new, courier, monospace"&gt;ENABLE&lt;/FONT&gt; would send the case to Databricks engineering. When the next run appeared, we sent one follow-up with fresh results from queries 1 and 2, asked for that escalation, and asked for a named engineer to own the case.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Confirm with the same queries.&lt;/STRONG&gt; After the change we ran queries 1 and 2 again before asking support to close the case.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Databricks set &lt;FONT face="courier new, courier, monospace"&gt;system.lakebase&lt;/FONT&gt; to &lt;FONT face="courier new, courier, monospace"&gt;DISABLE&lt;/FONT&gt; within a few days of that follow-up. No predictive optimization run has touched the schema since. Our own catalogs still inherit &lt;FONT face="courier new, courier, monospace"&gt;ENABLE&lt;/FONT&gt;, so our tables are maintained as before.&lt;/P&gt;&lt;H2&gt;&lt;FONT color="#E0661A"&gt;Conclusion&lt;/FONT&gt;&lt;/H2&gt;&lt;P&gt;Predictive optimization can maintain and bill the Databricks-owned &lt;FONT face="courier new, courier, monospace"&gt;system.lakebase&lt;/FONT&gt; schema even when its tables are empty and the &lt;FONT face="courier new, courier, monospace"&gt;system&lt;/FONT&gt; catalog is disabled, because the schema carries its own &lt;FONT face="courier new, courier, monospace"&gt;ENABLE&lt;/FONT&gt;. You cannot change that setting, and an account-level disable does not reach it. Run the queries above. If query 2 shows runs on &lt;FONT face="courier new, courier, monospace"&gt;system.lakebase&lt;/FONT&gt;, open a support case with that evidence, agree when it goes to engineering, and leave your own predictive optimization settings alone.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2026 11:50:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/predictive-optimization-bills-you-for-the-empty-system-lakebase/m-p/177928#M1992</guid>
      <dc:creator>ivanvyd</dc:creator>
      <dc:date>2026-11-28T11:50:19Z</dc:date>
    </item>
    <item>
      <title>Auto Loader: addNewColumns can still stop your stream</title>
      <link>https://community.databricks.com/t5/community-articles/auto-loader-addnewcolumns-can-still-stop-your-stream/m-p/176758#M1989</link>
      <description>&lt;P&gt;A useful detail in the Auto Loader docs: addNewColumns does not mean the stream keeps running when a new column arrives.&lt;/P&gt;&lt;P&gt;Auto Loader updates its saved schema, then stops with UnknownFieldException. Restarting the stream picks up the new schema. Databricks recommends using Lakeflow Jobs to restart automatically.&lt;/P&gt;&lt;P&gt;For production, I’d also monitor _rescued_data and check that the target Delta table allows the intended schema change. Reader schema evolution and target table evolution need to line up.&lt;/P&gt;&lt;P&gt;Docs: &lt;A href="https://docs.databricks.com/aws/en/ingestion/cloud-object-storage/auto-loader/schema" target="_blank"&gt;https://docs.databricks.com/aws/en/ingestion/cloud-object-storage/auto-loader/schema&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://docs.databricks.com/aws/en/data-engineering/schema-evolution" target="_blank"&gt;https://docs.databricks.com/aws/en/data-engineering/schema-evolution&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2026 12:21:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/auto-loader-addnewcolumns-can-still-stop-your-stream/m-p/176758#M1989</guid>
      <dc:creator>karanvichare</dc:creator>
      <dc:date>2026-11-18T12:21:08Z</dc:date>
    </item>
    <item>
      <title>Planning Oracle CDC into Databricks? Check These Limitations Before You Start</title>
      <link>https://community.databricks.com/t5/community-articles/planning-oracle-cdc-into-databricks-check-these-limitations/m-p/177379#M1987</link>
      <description>&lt;P&gt;Is the Native CDC Connector Enough for Enterprise Migrations?&lt;/P&gt;&lt;P&gt;At first glance, the Databricks Oracle ingestion connector looks like exactly what enterprise data teams want: managed ingestion, built-in change data capture (CDC), and direct delivery into Delta Lake. Fewer moving parts, less custom code, and faster time to value.&lt;/P&gt;&lt;P&gt;But during Oracle modernization programs, architecture decisions are rarely driven by the happy path. A handful of platform constraints can determine whether the native connector becomes your strategic ingestion standard or whether you need a more specialized CDC approach. After reviewing the connector capabilities against common enterprise Oracle deployments, several practical considerations stand out.&lt;/P&gt;&lt;P&gt;The connector supports Oracle Database 12c through 26ai, including both single-instance and multitenant (CDB/PDB) environments. Organizations running Oracle 11g or older will need an upgrade path before considering the connector. For many customers, that is straightforward. The more important question is how the Oracle environment is deployed.&lt;/P&gt;&lt;P&gt;The biggest architectural checkpoint is Oracle RAC (Real Application Clusters). RAC remains a standard deployment pattern across large enterprises because it provides high availability and horizontal scale. It is especially common in Exadata environments. From a CDC perspective, RAC introduces complexity because each participating node generates its own redo thread. A CDC engine must continuously read, reconcile, and correctly sequence transactions across all threads before publishing changes downstream. If ordering is reconstructed incorrectly, the target system can receive an inaccurate representation of the source table state.&lt;/P&gt;&lt;P&gt;According to Databricks documentation, the native Oracle connector does not currently support RAC. That single limitation can become a decisive factor for enterprises planning large-scale migrations. If your production Oracle footprint runs on RAC or Exadata with RAC enabled, alternative CDC technologies such as Oracle GoldenGate, Qlik Replicate, or Fivetran become more appropriate options. A common pattern is to land CDC files into cloud storage and then use Databricks Auto Loader to ingest them into Delta tables.&lt;/P&gt;&lt;P&gt;Another frequently encountered enterprise design pattern is Oracle Data Guard. Many organizations intentionally run reporting workloads and downstream data extraction against a standby database to reduce impact on production systems. Because physical standby databases are not supported by the native connector, teams must carefully evaluate the operational impact of reading changes directly from the primary database.&lt;/P&gt;&lt;P&gt;Oracle Autonomous Database introduces a different challenge. CDC solutions typically require access to transaction logs and elevated privileges. In Autonomous Database environments, Oracle abstracts much of that infrastructure away, limiting the access needed by log-based CDC technologies. As a result, the native connector is not currently a fit for Autonomous Database sources.&lt;/P&gt;&lt;P&gt;Schema analysis is equally important. Several Oracle data types, including XMLTYPE, JSON, Spatial data types, and BFILE columns, are not supported for CDC capture. Large Object (LOB) columns such as CLOB, BLOB, and NCLOB also deserve careful evaluation. These limitations are easy to overlook during planning and often surface late in migration programs when validation testing begins. For that reason, a data type assessment should be one of the first discovery activities in any Oracle-to-Databricks initiative.&lt;/P&gt;&lt;P&gt;Organizations using Transparent Data Encryption (TDE) should also pay attention to operational processes. CDC of encrypted data depends on the encryption wallet remaining accessible. If wallet management procedures are not automated and monitored, change capture interruptions can occur after database restarts or maintenance events.&lt;/P&gt;&lt;P&gt;Before selecting an ingestion strategy, ask four simple questions: Is the source database RAC-enabled? Is it a primary or standby environment? Does it contain unsupported or complex data types? Are encrypted tables protected through well-managed TDE wallet procedures? In most organizations, a DBA can answer these questions within hours, potentially avoiding weeks of redesign later.&lt;/P&gt;&lt;P&gt;A practical decision framework emerges. Single-instance Oracle deployments on supported versions with conventional relational data are strong candidates for the native Databricks connector. RAC-based systems, Exadata deployments, or applications with heavy XML, JSON, and LOB usage often benefit from Oracle GoldenGate, Qlik Replicate, or Fivetran. For relatively static datasets, Lakehouse Federation or one-time bulk migration approaches may provide a simpler path.&lt;/P&gt;&lt;P&gt;The key lesson is that connector limitations should be treated as architecture inputs, not footnotes. Most migration challenges are not caused by Databricks itself; they stem from assumptions about the source environment. Teams that perform an early assessment of Oracle topology, database roles, data types, and encryption practices are far more likely to avoid surprises and deliver a predictable migration outcome.&lt;/P&gt;&lt;P&gt;If you have navigated Oracle RAC, Data Guard, or complex LOB migrations into Databricks, the lessons learned are often more valuable than the technology choices themselves. Sharing those experiences helps the community build better migration playbooks.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/128093"&gt;@bhaskarpalit&lt;/a&gt;&amp;nbsp; &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/113532"&gt;@berat&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Author: Rinku Kalra | Senior Data Architect&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2026 01:44:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/planning-oracle-cdc-into-databricks-check-these-limitations/m-p/177379#M1987</guid>
      <dc:creator>RDTAI_genpact</dc:creator>
      <dc:date>2026-11-24T01:44:25Z</dc:date>
    </item>
    <item>
      <title>Databricks on Azure vs AWS vs Google Cloud: what actually differs at the infrastructure level</title>
      <link>https://community.databricks.com/t5/community-articles/databricks-on-azure-vs-aws-vs-google-cloud-what-actually-differs/m-p/177690#M1983</link>
      <description>&lt;P&gt;Most Databricks concepts carry over between clouds: Unity Catalog, workspaces, clusters, SQL warehouses. The infrastructure underneath does not. I have deployed the same private-network workspace design with Terraform and Terragrunt on Azure, AWS and Google Cloud, and the differences that cost me time were not in the notebooks. They were in how the workspace is created, which identity does it, and how the network and storage are wired.&lt;/P&gt;&lt;P&gt;This article is for architects and platform engineers who know one cloud well and now have to build Databricks on another, or who have to choose between them. It covers classic compute in a customer-managed network. Serverless compute is out of scope.&lt;/P&gt;&lt;DIV class=""&gt;&lt;H2&gt;The comparison&lt;/H2&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp; Azure AWS Google Cloud&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Cloud boundary&lt;/TD&gt;&lt;TD&gt;Subscription and resource group&lt;/TD&gt;&lt;TD&gt;AWS account&lt;/TD&gt;&lt;TD&gt;Google Cloud project&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;How the workspace is created&lt;/TD&gt;&lt;TD&gt;An Azure resource, through Azure Resource Manager&lt;/TD&gt;&lt;TD&gt;Databricks account API, referencing parts you registered&lt;/TD&gt;&lt;TD&gt;Databricks account API, referencing your project and network&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;How Databricks operates in your cloud&lt;/TD&gt;&lt;TD&gt;Managed resource group next to the workspace (visible, not changeable)&lt;/TD&gt;&lt;TD&gt;Cross-account IAM role that Databricks assumes&lt;/TD&gt;&lt;TD&gt;Workspace service account that Databricks creates in your project&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Deploying identity&lt;/TD&gt;&lt;TD&gt;Azure identity with rights on the subscription&lt;/TD&gt;&lt;TD&gt;AWS identity for the AWS resources, plus a Databricks account admin for the account API&lt;/TD&gt;&lt;TD&gt;One Google identity: Databricks account admin and rights in the project&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Classic compute network&lt;/TD&gt;&lt;TD&gt;VNet with two delegated subnets (host and container)&lt;/TD&gt;&lt;TD&gt;VPC with subnets in two or more availability zones, plus security groups&lt;/TD&gt;&lt;TD&gt;VPC with one regional subnet, plus a firewall rule&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Lakehouse storage and Unity Catalog access&lt;/TD&gt;&lt;TD&gt;ADLS Gen2, through an access connector (managed identity)&lt;/TD&gt;&lt;TD&gt;Amazon S3, through an IAM role&lt;/TD&gt;&lt;TD&gt;Cloud Storage, through a Databricks-managed service account&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Private path to storage&lt;/TD&gt;&lt;TD&gt;Storage private endpoint&lt;/TD&gt;&lt;TD&gt;S3 gateway endpoint&lt;/TD&gt;&lt;TD&gt;Private Google Access&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Private connectivity to the control plane&lt;/TD&gt;&lt;TD&gt;Azure Private Link, Premium tier&lt;/TD&gt;&lt;TD&gt;AWS PrivateLink, Enterprise tier&lt;/TD&gt;&lt;TD&gt;Private Service Connect, Enterprise tier&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="V01_Community_Image_1_Azure.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33747i1C98E6B005371274/image-size/large?v=v2&amp;amp;px=999" role="button" title="V01_Community_Image_1_Azure.png" alt="V01_Community_Image_1_Azure.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="V01_Community_Image_2_AWS.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33748iE2732526030E06B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="V01_Community_Image_2_AWS.png" alt="V01_Community_Image_2_AWS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="V01_Community_Image_3_Google_Cloud.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33749iC28731CE918FEE2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="V01_Community_Image_3_Google_Cloud.png" alt="V01_Community_Image_3_Google_Cloud.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;H2&gt;Four differences that matter in practice&lt;/H2&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;H3&gt;1. Who creates the workspace&lt;/H3&gt;&lt;/DIV&gt;&lt;P&gt;On Azure, the workspace is a native Azure resource. In Terraform it is azurerm_databricks_workspace, deployed through Azure Resource Manager like a storage account or a key vault. On AWS and Google Cloud, the workspace is created by the Databricks account API (databricks_mws_workspaces), and your cloud only supplies the parts it references.&lt;/P&gt;&lt;P&gt;Why it matters: on Azure, workspace creation follows Azure RBAC, Azure Policy and resource group conventions. On AWS and Google Cloud, a Databricks account admin is on the critical path for every new workspace, and the workspace does not appear as a resource in your cloud inventory the way it does on Azure.&lt;/P&gt;&lt;DIV class=""&gt;&lt;H3&gt;2. How Databricks gets into your cloud&lt;/H3&gt;&lt;/DIV&gt;&lt;P&gt;Each cloud gives Databricks a different foothold:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Azure:&lt;/STRONG&gt; Azure creates a managed resource group alongside the workspace. Databricks manages it; you can see it but not change it. You name it up front (managed_resource_group_name in my config).&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;AWS:&lt;/STRONG&gt; you create a cross-account IAM role, and Databricks assumes it to launch clusters. You register it with the Databricks account as a credential configuration.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Google Cloud:&lt;/STRONG&gt; you create nothing for this. When the workspace is created, Databricks itself adds a workspace service account and the workspace system storage to your project.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Why it matters: this is what your security team will ask about first. On AWS the trust is an explicit role you write and review. On Google Cloud it is created on your behalf, so the review moves to the permissions of the identity that creates the workspace.&lt;/P&gt;&lt;DIV class=""&gt;&lt;H3&gt;3. The deploying identity&lt;/H3&gt;&lt;/DIV&gt;&lt;P&gt;On Azure, one service principal with Contributor on the subscription creates the workspace. In my repo the same service principal is also a Databricks account admin, because the account-level steps (metastore assignment, workspace admin group) still need it. On AWS, two identities work side by side: GitHub Actions reaches AWS through OIDC to create the role, bucket and VPC, and a Databricks service principal with an OAuth secret calls the account API. On Google Cloud, one Google service account does both, and there is no Databricks OAuth secret at all.&lt;/P&gt;&lt;P&gt;Why it matters: on Google Cloud, Databricks uses that identity's Google credentials to create resources in your project, so it needs real project permissions, not just Databricks rights. Keep three Google identities apart: the creator that deploys the workspace, the workspace service account that runs compute, and the storage credential's service account that reads and writes the data.&lt;/P&gt;&lt;DIV class=""&gt;&lt;H3&gt;4. Private control plane connectivity is a pricing tier decision&lt;/H3&gt;&lt;/DIV&gt;&lt;P&gt;Private access to your data and private access to the Databricks control plane are two separate decisions. The first uses the cloud's own private paths. The second needs Azure Private Link (Premium tier) or, on AWS and Google Cloud, PrivateLink and Private Service Connect (Enterprise tier).&lt;/P&gt;&lt;P&gt;Why it matters: on the Premium tier, my Azure workspaces use Private Link, while my AWS and Google Cloud workspaces cannot. On those two, clusters reach the control plane through the NAT gateway or Cloud NAT instead, and I kept PrivateLink and Private Service Connect in the code behind a flag, off by default.&lt;/P&gt;&lt;DIV class=""&gt;&lt;H2&gt;What the repos look like&lt;/H2&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;Azure&lt;/STRONG&gt; (modules/adb_workspace_private/modules/workspace/main.tf) creates the workspace as an Azure resource and guards the design with preconditions:&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;resource&lt;/SPAN&gt; &lt;SPAN class=""&gt;"azurerm_databricks_workspace"&lt;/SPAN&gt; &lt;SPAN class=""&gt;"this"&lt;/SPAN&gt; {
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;name&lt;/SPAN&gt;                                  &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;workspace_name&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;resource_group_name&lt;/SPAN&gt;                   &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;data&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;azurerm_resource_group&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;this&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;name&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;location&lt;/SPAN&gt;                              &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;region&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;sku&lt;/SPAN&gt;                                   &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;pricing_tier&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;managed_resource_group_name&lt;/SPAN&gt;           &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;managed_resource_group_name&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;AWS&lt;/STRONG&gt; (modules/dbx_workspace_private/modules/workspace/main.tf) creates it from registered configurations:&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;credentials_id&lt;/SPAN&gt;             &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;credentials_id&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;storage_configuration_id&lt;/SPAN&gt;   &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;storage_configuration_id&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;network_id&lt;/SPAN&gt;                 &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;network_id&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;private_access_settings_id&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;private_access_settings_id&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;Google Cloud&lt;/STRONG&gt; (modules/dbx_workspace_private/modules/workspace/main.tf) points the workspace at a project and lets Databricks fill it:&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;  &lt;SPAN class=""&gt;cloud_resource_container&lt;/SPAN&gt; {
    &lt;SPAN class=""&gt;gcp&lt;/SPAN&gt; {
      &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;project_id&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;/SPAN&gt;var&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;gcp_project_id&lt;/SPAN&gt;
    }
  }&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;The three blocks show the whole difference in creation path: a resource in your cloud, an assembly of registered parts, or a project that Databricks writes into.&lt;/P&gt;&lt;DIV class=""&gt;&lt;H2&gt;Easy to get wrong&lt;/H2&gt;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Azure subnet names.&lt;/STRONG&gt; The Terraform arguments are public_subnet_name and private_subnet_name, but with secure cluster connectivity neither subnet has public IPs. They are the host and container subnets, and both must be delegated to Microsoft.Databricks/workspaces.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Azure without NAT.&lt;/STRONG&gt; My Azure repo does not create a NAT gateway, so classic clusters have no outbound internet access and the validation notebook's internet check warns. If clusters need PyPI, Maven or external APIs, add an outbound path. A NAT gateway is a design choice, not a rule.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Google Cloud firewall.&lt;/STRONG&gt; Databricks does not create firewall rules in a customer-managed VPC. Without an intra-subnet ingress rule, cluster nodes cannot talk to each other. My repo creates db-&amp;lt;subnet&amp;gt;-ingress allowing all traffic from the node subnet.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Google Cloud network shape.&lt;/STRONG&gt; One regional subnet, no secondary ranges. Teams coming from GKE often add secondary ranges out of habit.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;IAM propagation.&lt;/STRONG&gt; Both AWS and Google Cloud reject a credential that is registered too early. My AWS module waits 60 seconds after creating the cross-account role before registering it, and the Google Cloud module waits for the storage credential's new service account before granting it bucket access.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;The AWS Unity Catalog role.&lt;/STRONG&gt; It trusts the Unity Catalog master role with an external ID that Databricks generates for the credential, and it must also trust itself. That forces an order: create the storage credential first (with validation skipped), then the role, then the external location.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Region alignment.&lt;/STRONG&gt; On all three, each workspace must be in the same region as the Unity Catalog metastore it is assigned to.&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&lt;H2&gt;Checklist&lt;/H2&gt;&lt;/DIV&gt;&lt;OL&gt;&lt;LI&gt;Write down the cloud boundary per environment: subscription and resource group, AWS account, or project.&lt;/LI&gt;&lt;LI&gt;Decide which identity creates workspaces and confirm it is a Databricks account admin where the account API is used.&lt;/LI&gt;&lt;LI&gt;On Google Cloud, separate the creator, the workspace service account and the storage credential's service account, and review the creator's project roles.&lt;/LI&gt;&lt;LI&gt;Size the network to the cloud's shape: two delegated subnets on Azure, subnets in at least two availability zones on AWS, one regional subnet on Google Cloud.&lt;/LI&gt;&lt;LI&gt;Decide the outbound path (NAT gateway, Cloud NAT, or none) based on what clusters must reach.&lt;/LI&gt;&lt;LI&gt;Keep data traffic private with a storage private endpoint, the S3 gateway endpoint or Private Google Access.&lt;/LI&gt;&lt;LI&gt;Check your Databricks pricing tier before planning private control plane connectivity.&lt;/LI&gt;&lt;LI&gt;Put the workspace and its metastore in the same region.&lt;/LI&gt;&lt;LI&gt;Add explicit waits for IAM propagation on AWS and Google Cloud.&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;&lt;H2&gt;Going deeper&lt;/H2&gt;&lt;/DIV&gt;&lt;P&gt;I wrote one article per cloud with the full deployment and verification:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Azure: [link to Azure article]&lt;/LI&gt;&lt;LI&gt;AWS: [link to AWS article]&lt;/LI&gt;&lt;LI&gt;Google Cloud: [link to GCP article]&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;These deployments are the infrastructure stage of a series in which I build one enterprise Databricks platform in public, from infrastructure to governance, data engineering and AI/BI.&lt;/P&gt;&lt;P&gt;The code for all three clouds: &lt;A href="https://github.com/DBxArchitectLab" target="_blank" rel="noopener"&gt;https://github.com/DBxArchitectLab&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Full walkthrough: &lt;A href="https://youtu.be/MaatDV7-SRU" target="_blank" rel="nofollow noopener"&gt;https://youtu.be/MaatDV7-SRU&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2026 11:16:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/databricks-on-azure-vs-aws-vs-google-cloud-what-actually-differs/m-p/177690#M1983</guid>
      <dc:creator>HongC</dc:creator>
      <dc:date>2026-11-26T11:16:31Z</dc:date>
    </item>
    <item>
      <title>What Is – a DBU? (The kWh on your Databricks bill)</title>
      <link>https://community.databricks.com/t5/community-articles/what-is-a-dbu-the-kwh-on-your-databricks-bill/m-p/177010#M1979</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If you're new to Databricks, or you've just started building dashboards or Genie Agents and someone asked what they'll cost, here's the simple version.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;SPAN&gt;The short answer&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;A &lt;/SPAN&gt;&lt;STRONG&gt;DBU (Databricks Unit)&lt;/STRONG&gt;&lt;SPAN&gt; is how Databricks measures the work your compute does. Think of it as the &lt;/SPAN&gt;&lt;STRONG&gt;kWh on your electricity bill&lt;/STRONG&gt;&lt;SPAN&gt;: it isn't money, it's what you used. You get to money by multiplying the units by a price.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;DBUs used × price per DBU = cost.&lt;/STRONG&gt;&lt;/P&gt;
&lt;H3&gt;&lt;SPAN&gt;How the meter works&lt;/SPAN&gt;&lt;/H3&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Bigger appliances use more per hour.&lt;/STRONG&gt;&lt;SPAN&gt; A bigger cluster or SQL warehouse burns more DBUs per hour than a small one, just like an oven uses more than a lamp.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;The meter only runs while something is on.&lt;/STRONG&gt;&lt;SPAN&gt; Usage is measured by the second while compute is running. That includes compute that's switched on but doing nothing, so auto-stop is your best friend.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Some appliances work harder but finish sooner.&lt;/STRONG&gt;&lt;SPAN&gt; On classic compute, Photon uses more DBUs per hour but often finishes the job faster, so the total can go down. Judge by the total, not the rate.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3&gt;&lt;SPAN&gt;Why the price per unit changes&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;Your energy supplier charges different rates for different tariffs. Databricks does the same. The price of one DBU depends on:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;What you're running.&lt;/STRONG&gt;&lt;SPAN&gt; Scheduled jobs, interactive notebooks, SQL warehouses, Genie and model serving each have their own rate. Running a scheduled job on an interactive cluster is like doing your laundry at peak rate.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Where you run it.&lt;/STRONG&gt;&lt;SPAN&gt; Cloud, region and plan all change the rate.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;So "1,000 DBUs" can be a small bill or a big one. It depends on which tariff they were on.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;SPAN&gt;From DBUs to dollars: a worked example&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;Take a team with one SQL warehouse behind their dashboards. &lt;/SPAN&gt;&lt;I&gt;&lt;SPAN&gt;(Illustrative numbers: use the pricing page or your own data for real ones.)&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;The warehouse uses &lt;/SPAN&gt;&lt;STRONG&gt;12 DBUs an hour&lt;/STRONG&gt;&lt;SPAN&gt; while it's on.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;It's left on &lt;/SPAN&gt;&lt;STRONG&gt;8 hours a day&lt;/STRONG&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;22 working days&lt;/STRONG&gt;&lt;SPAN&gt; a month.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI aria-level="1"&gt;&lt;STRONG&gt;12 × 8 × 22 = 2,112 DBUs&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;SPAN&gt;At an illustrative &lt;/SPAN&gt;&lt;STRONG&gt;$0.70 per DBU&lt;/STRONG&gt;&lt;SPAN&gt;, that's about &lt;/SPAN&gt;&lt;STRONG&gt;$1,480 a month at list price&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;Now set auto-stop to 10 minutes. If people actually use it about 3 hours a day:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI aria-level="1"&gt;&lt;STRONG&gt;12 × 3 × 22 = 792 DBUs ≈ $555 a month.&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Same dashboards, same users, about a third of the cost. Most early savings look like this: the meter runs less, not a cheaper rate.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To do the same sum on your real usage, &lt;/SPAN&gt;&lt;SPAN&gt;system.billing.usage&lt;/SPAN&gt;&lt;SPAN&gt; has the DBUs and &lt;/SPAN&gt;&lt;SPAN&gt;system.billing.list_prices&lt;/SPAN&gt;&lt;SPAN&gt; has the list rates:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;SELECT u.sku_name,

       ROUND(SUM(u.usage_quantity))                                    AS dbus,

       ROUND(SUM(u.usage_quantity * p.pricing.effective_list.default)) AS list_cost

FROM system.billing.usage u

JOIN system.billing.list_prices p

  ON  u.sku_name   = p.sku_name

  AND u.cloud      = p.cloud

  AND u.usage_unit = p.usage_unit

  AND u.usage_end_time &amp;gt;= p.price_start_time

  AND (p.price_end_time IS NULL OR u.usage_end_time &amp;lt; p.price_end_time)

WHERE u.usage_date &amp;gt;= current_date() - INTERVAL 30 DAYS

GROUP BY u.sku_name

ORDER BY list_cost DESC

LIMIT 10;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;That gives you your top 10 cost lines for the last 30 days, &lt;/SPAN&gt;&lt;STRONG&gt;at list price&lt;/STRONG&gt;&lt;SPAN&gt;. Which brings us to discounts.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;SPAN&gt;List price isn't your price: where discounts come in&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;The public price list is the "standard tariff". What you actually pay can be lower:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Commitment contracts.&lt;/STRONG&gt;&lt;SPAN&gt; Many organisations commit to a level of spend over one or more years in exchange for a lower rate per DBU, like a fixed-rate energy deal. The bigger and longer the commitment, the bigger the discount usually is.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Promotions.&lt;/STRONG&gt;&lt;SPAN&gt; Some products launch with a promotional rate for a limited period. Genie's billable usage, for example, currently carries a promotional discount.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Free allowances.&lt;/STRONG&gt;&lt;SPAN&gt; Some usage is free up to a limit, like Genie's 150 DBUs per person a month until 31 January 2027. It's still metered, so it shows up in your usage data. That's what lets you price it before it becomes billable.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Your cloud bill has its own discounts.&lt;/STRONG&gt;&lt;SPAN&gt; On classic compute, the machines underneath are billed by your cloud provider. Their reserved-instance or savings-plan discounts apply there, not to the DBUs.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;The practical rule:&lt;/STRONG&gt;&lt;SPAN&gt; the query above gives you list price. Your negotiated rate is in your contract, and your account team can confirm it. When you forecast for finance, show both, &lt;/SPAN&gt;&lt;STRONG&gt;list&lt;/STRONG&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;STRONG&gt;after discount&lt;/STRONG&gt;&lt;SPAN&gt;. A range is more honest than a single number, and finance will trust it more.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;SPAN&gt;What this means for dashboards and Genie&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;If you're building rather than paying the bill, two things to know:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Dashboards run on SQL warehouses.&lt;/STRONG&gt;&lt;SPAN&gt; Every refresh, filter and scheduled update uses warehouse DBUs. A dashboard nobody opens but that refreshes every hour still keeps the meter running. That's why retiring unused dashboards and Genie Agents is a cost lever, not just tidying up: see &lt;/SPAN&gt;&lt;A href="https://community.databricks.com/t5/warehousing-analytics/how-to-retire-genie-agents-and-dashboards-nobody-uses-so-you-can/td-p/174786" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to retire Genie Agents and dashboards nobody uses&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Genie is metered per user.&lt;/STRONG&gt;&lt;SPAN&gt; Each question uses DBUs, and the free allowance covers each person up to a limit. To forecast what that becomes after the free period, see &lt;/SPAN&gt;&lt;A href="https://community.databricks.com/t5/generative-ai/how-to-size-your-genie-bill-genie-agent-genie-code-before-the/td-p/175617" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to size your Genie bill before the free period ends&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3&gt;&lt;SPAN&gt;Three gotchas&lt;/SPAN&gt;&lt;/H3&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;DBUs aren't always the whole bill.&lt;/STRONG&gt;&lt;SPAN&gt; On classic compute you also pay your cloud provider for the machines, like paying rent separately from electricity. Serverless is more like an all-inclusive apartment: the compute is in the DBU price.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Idle isn't free.&lt;/STRONG&gt;&lt;SPAN&gt; A warehouse or cluster that's on but unused still burns DBUs. Auto-stop is the single cheapest fix.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Rates differ by product, so totals mislead.&lt;/STRONG&gt;&lt;SPAN&gt; 1,000 jobs DBUs and 1,000 serverless SQL DBUs are different amounts of money. Always multiply by the rate before you compare.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3&gt;&lt;SPAN&gt;Where to go next&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;If system tables are new to you, start with &lt;/SPAN&gt;&lt;A href="https://community.databricks.com/t5/warehousing-analytics/what-is-a-system-table-your-databricks-bank-statement/td-p/173619" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;What Is – a system table? (Your Databricks bank statement)&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;SPAN&gt;Why it matters&lt;/SPAN&gt;&lt;/H3&gt;
&lt;P&gt;&lt;SPAN&gt;Once a team stops reading DBUs as dollars and starts asking "which tariff, which appliance, how long was it on, and what's our rate?", cost conversations get a lot shorter. And the fixes get obvious: switch things off, use the right compute for the job, and size to the work.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2026 18:15:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/what-is-a-dbu-the-kwh-on-your-databricks-bill/m-p/177010#M1979</guid>
      <dc:creator>Valeria_Koz_DBX</dc:creator>
      <dc:date>2026-11-19T18:15:31Z</dc:date>
    </item>
    <item>
      <title>Your Lakeflow Connect Table Is a Replica, Not a Ledger</title>
      <link>https://community.databricks.com/t5/community-articles/your-lakeflow-connect-table-is-a-replica-not-a-ledger/m-p/177399#M1976</link>
      <description>&lt;P&gt;By&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/132044"&gt;@ozaaditya&lt;/a&gt;&amp;nbsp;&amp;nbsp;in collaboration with&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/85833"&gt;@sridharplv&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;Most medallion designs I've reviewed rest on one quiet assumption: bronze remembers. Silver can be rebuilt and gold can be recomputed, because somewhere upstream there's a table holding everything that ever arrived. Databricks' own full-refresh guidance leans on exactly this idea. Land raw data in a bronze streaming table and keep its types flexible, and downstream tables can be refreshed against it while bronze never needs a refresh itself.&lt;/P&gt;&lt;P&gt;Then you adopt Lakeflow Connect, and bronze becomes a set of destination tables created and maintained by a managed connector. They're good tables: governed, incremental, low effort. But the connector decides what's in them, and under well-defined conditions it's entitled to throw the contents away and take a fresh snapshot.&lt;BR /&gt;So the question I think every team should ask, and few do, is simple. If bronze can be re-snapshotted, where does history actually live?&lt;/P&gt;&lt;P&gt;This post is my attempt at an answer. It isn't a setup guide; there are plenty of those already. It's about a design decision that's easy to miss until the day an auditor asks for last quarter's version of a customer record.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The re-snapshot is not an edge case:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;A full refresh of a managed ingestion table clears its data and state and reprocesses the source (docs). For a database connector, what comes back is the source's current state plus whatever changes follow. Every intermediate state the source went through before the refresh is gone from that table.&lt;/P&gt;&lt;P&gt;If you turned on the connector's own history tracking (SCD type 2), that goes too. The history tracking page says it plainly: a full refresh replaces the table, removes previous row versions, and history starts again from the refresh point.&lt;/P&gt;&lt;P&gt;To be clear, this isn't a bug. It's exactly what a replica should do. The problem only appears when we treat a replica as if it were a ledger.&lt;/P&gt;&lt;P&gt;How often does a refresh actually happen? More often than you'd think, because the triggers come from quite different places. When I went through the connector docs, they fell into these groups:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE width="602"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="167"&gt;&lt;P&gt;&lt;STRONG&gt;Where the refresh comes from&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="435"&gt;&lt;P&gt;&lt;STRONG&gt;Examples (connector-specific, so check yours)&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="167"&gt;&lt;P&gt;Someone on your team&lt;/P&gt;&lt;/TD&gt;&lt;TD width="435"&gt;&lt;P&gt;A manual refresh to fix data. Adding a column that was previously excluded also needs a refresh to backfill its history.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="167"&gt;&lt;P&gt;A policy you enabled&lt;/P&gt;&lt;/TD&gt;&lt;TD width="435"&gt;&lt;P&gt;The &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/ingestion/lakeflow-connect/full-refresh" target="_blank" rel="noopener"&gt;auto full refresh policy&lt;/A&gt; reacts to table truncates, incompatible type changes, column renames and new columns with defaults.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="167"&gt;&lt;P&gt;A break in source continuity&lt;/P&gt;&lt;/TD&gt;&lt;TD width="435"&gt;&lt;P&gt;A stopped SQL Server gateway can lose changes to log retention. An Availability Group failover under change tracking forces a refresh of every table in the pipeline (&lt;A href="https://docs.databricks.com/ingestion/lakeflow-connect/sql-server-limits" target="_blank" rel="noopener"&gt;SQL Server limitations&lt;/A&gt;).&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="167"&gt;&lt;P&gt;A cursor that expired&lt;/P&gt;&lt;/TD&gt;&lt;TD width="435"&gt;&lt;P&gt;Gmail's history cursor lasts about seven days. Run the pipeline less often than that and the connector falls back to a full refresh (&lt;A href="https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/gmail-limits" target="_blank" rel="noopener"&gt;Gmail limitations&lt;/A&gt;).&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="167"&gt;&lt;P&gt;Changes the connector can't see incrementally&lt;/P&gt;&lt;/TD&gt;&lt;TD width="435"&gt;&lt;P&gt;Salesforce hard deletes, and deletes purged from the recycle bin before the next sync, only show up after a full refresh (&lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/salesforce-limits" target="_blank" rel="noopener"&gt;Salesforce limitations&lt;/A&gt;).&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="167"&gt;&lt;P&gt;The connector's design&lt;/P&gt;&lt;/TD&gt;&lt;TD width="435"&gt;&lt;P&gt;Smartsheet report tables are fully refreshed on every run (&lt;A href="https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/smartsheet-limits" target="_blank" rel="noopener"&gt;Smartsheet limitations&lt;/A&gt;).&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Two things in that table bother me as an architect.&lt;/P&gt;&lt;P&gt;First, several of these triggers are outside the data team's control. A DBA failover or a source schema change can start a re-snapshot of a table your finance marts depend on.&lt;/P&gt;&lt;P&gt;Second, auto full refresh is a double-edged feature. Operationally it's great, because an incident heals itself overnight. But it also means an event that destroys history can now happen with nobody in the loop. The only built-in brake is min_interval_hours, which defaults to 24.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What downstream sees when it happens:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The impact depends almost entirely on how your downstream pipelines read the connector table. Each common pattern fails in its own way, and that's the part I see underestimated most.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE width="602"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="143"&gt;&lt;P&gt;&lt;STRONG&gt;How downstream reads the table&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="213"&gt;&lt;P&gt;&lt;STRONG&gt;Normal day&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="245"&gt;&lt;P&gt;&lt;STRONG&gt;The day the table is re-snapshotted&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="143"&gt;&lt;P&gt;Plain streaming read&lt;/P&gt;&lt;/TD&gt;&lt;TD width="213"&gt;&lt;P&gt;Fails the first time the connector applies an update or delete. Connector tables are mutable, and &lt;A href="https://docs.databricks.com/aws/en/structured-streaming/delta-lake" target="_blank" rel="noopener"&gt;Structured Streaming only accepts appends&lt;/A&gt;.&lt;/P&gt;&lt;/TD&gt;&lt;TD width="245"&gt;&lt;P&gt;Never worked in the first place.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="143"&gt;&lt;P&gt;skipChangeCommits&lt;/P&gt;&lt;/TD&gt;&lt;TD width="213"&gt;&lt;P&gt;Runs, but quietly ignores every update and delete.&lt;/P&gt;&lt;/TD&gt;&lt;TD width="245"&gt;&lt;P&gt;Keeps running and stays quietly wrong. For CDC sources, this is the option I'd ban.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="143"&gt;&lt;P&gt;Change data feed into AUTO CDC (SCD2)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="213"&gt;&lt;P&gt;Correct and incremental. The right tool for row-level history.&lt;/P&gt;&lt;/TD&gt;&lt;TD width="245"&gt;&lt;P&gt;The stream's position no longer matches the refreshed table, so you need a recovery procedure. Also check delete semantics: Salesforce documents that under SCD1, deletes don't appear as explicit delete events in the change feed.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="143"&gt;&lt;P&gt;Materialized views&lt;/P&gt;&lt;/TD&gt;&lt;TD width="213"&gt;&lt;P&gt;Recompute when inputs change. Simple and correct for current state.&lt;/P&gt;&lt;/TD&gt;&lt;TD width="245"&gt;&lt;P&gt;Recompute again. Fine, because they never held history.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="143"&gt;&lt;P&gt;AUTO CDC FROM SNAPSHOT (SCD2)&lt;/P&gt;&lt;/TD&gt;&lt;TD width="213"&gt;&lt;P&gt;Reads the replica in batch each run and compares it with the last snapshot.&lt;/P&gt;&lt;/TD&gt;&lt;TD width="245"&gt;&lt;P&gt;Keeps working, because there's no streaming checkpoint on the source to invalidate. A &lt;A href="https://github.com/rsleedbx/databricks-agent-skills-tests/pull/59" target="_blank" rel="noopener"&gt;public test&lt;/A&gt; of this exact case on SQL Server reported no spurious versions through a full refresh.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="143"&gt;&lt;P&gt;The connector's own SCD2&lt;/P&gt;&lt;/TD&gt;&lt;TD width="213"&gt;&lt;P&gt;History lives inside the replica.&lt;/P&gt;&lt;/TD&gt;&lt;TD width="245"&gt;&lt;P&gt;Erased.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Once you lay it out like this, the pattern is hard to miss. Anything that keeps history inside the connector table, or tracks its position in that table, inherits the table's refresh behaviour. Anything that treats the table as a series of observed states, read in batch and compared, is insulated from it.&lt;/P&gt;&lt;P&gt;Separate the replica from the ledger&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The rule I'd build around is short:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The connector owns the replica. The platform owns the ledger. Nothing the connector does should be able to refresh the ledger.&lt;/P&gt;&lt;P&gt;In practice, that means a history zone sitting between the connector's destination schema and your silver layer. Your own pipeline populates it, and the tables in it are protected with the pipelines.reset.allowed = false table property (docs). That property blocks full refreshes but still allows incremental writes, which is exactly the behaviour you want from a ledger.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="figure1_architecture.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33660iE73F6445653A7928/image-size/large?v=v2&amp;amp;px=999" role="button" title="figure1_architecture.png" alt="figure1_architecture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;A couple of notes on the picture.&lt;/P&gt;&lt;P&gt;The gateway and staging volume belong to the gateway-based database architecture. &lt;A href="https://docs.databricks.com/aws/en/security/network/onprem/lakeflow-connect" target="_blank" rel="noopener"&gt;Integrated CDC&lt;/A&gt;, currently Beta for SQL Server and Oracle, folds extraction and apply into one pipeline, but the replica behaves the same way.&lt;/P&gt;&lt;P&gt;And don't count on the staging volume as a safety net. It's temporary storage, and data in it is purged after 30 days (&lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/cdc-overview" target="_blank" rel="noopener"&gt;database connector docs&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H1&gt;Deciding table by table&lt;/H1&gt;&lt;P&gt;Not every table needs a ledger, and building one everywhere is just a different mistake. The question I'd put to the business owner of each table is blunt: what do you lose if this table's past disappears tonight?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="figure2_decision_flow.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33661i115E7AF7F8E65B5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="figure2_decision_flow.png" alt="figure2_decision_flow.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;TABLE width="602"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100"&gt;&lt;P&gt;&lt;STRONG&gt;Class&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;&lt;STRONG&gt;Typical tables&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="143"&gt;&lt;P&gt;&lt;STRONG&gt;Route&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="113"&gt;&lt;P&gt;&lt;STRONG&gt;Refresh stance&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="128"&gt;&lt;P&gt;&lt;STRONG&gt;What you give up&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100"&gt;&lt;P&gt;A: current state only&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Reference data, lookups, operational dashboards&lt;/P&gt;&lt;/TD&gt;&lt;TD width="143"&gt;&lt;P&gt;Read the replica directly; materialized views downstream&lt;/P&gt;&lt;/TD&gt;&lt;TD width="113"&gt;&lt;P&gt;Auto full refresh is fine&lt;/P&gt;&lt;/TD&gt;&lt;TD width="128"&gt;&lt;P&gt;Nothing important&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100"&gt;&lt;P&gt;B: as-of history&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Customer attributes, price lists, account owners&lt;/P&gt;&lt;/TD&gt;&lt;TD width="143"&gt;&lt;P&gt;AUTO CDC FROM SNAPSHOT (SCD2) into the history zone&lt;/P&gt;&lt;/TD&gt;&lt;TD width="113"&gt;&lt;P&gt;Let the replica refresh; the ledger is insulated&lt;/P&gt;&lt;/TD&gt;&lt;TD width="128"&gt;&lt;P&gt;History is only as fine-grained as your schedule, and every run scans the whole table&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100"&gt;&lt;P&gt;C: every change matters&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Order lifecycle, postings, audit trails&lt;/P&gt;&lt;/TD&gt;&lt;TD width="143"&gt;&lt;P&gt;Change feed into AUTO CDC (SCD2), plus a written recovery runbook&lt;/P&gt;&lt;/TD&gt;&lt;TD width="113"&gt;&lt;P&gt;Manual, windowed refreshes; auto refresh off for these tables&lt;/P&gt;&lt;/TD&gt;&lt;TD width="128"&gt;&lt;P&gt;More engineering and operating effort, and a continuity break still leaves a gap&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100"&gt;&lt;P&gt;nice to have&lt;/P&gt;&lt;/TD&gt;&lt;TD width="117"&gt;&lt;P&gt;Exploratory or low-stakes tables&lt;/P&gt;&lt;/TD&gt;&lt;TD width="143"&gt;&lt;P&gt;The connector's own SCD2&lt;/P&gt;&lt;/TD&gt;&lt;TD width="113"&gt;&lt;P&gt;Accept that a refresh erases it&lt;/P&gt;&lt;/TD&gt;&lt;TD width="128"&gt;&lt;P&gt;Durability&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Three caveats keep this framework honest.&lt;/P&gt;&lt;P&gt;Class C has a ceiling. If the source's change log was truncated before the connector read it, those changes are gone, and no downstream design brings them back. When every change really matters, the most durable history is usually the one the source system already keeps. Ingest its audit or history tables as ordinary data and treat the replica as a convenience. That's a conversation with the source-system owner, not a pipeline setting, and in my view it's the most valuable thing an architect can bring to this decision.&lt;/P&gt;&lt;P&gt;Class B has a cost dimension. Comparing snapshots means scanning the whole replica each run. The &lt;A href="https://github.com/rsleedbx/databricks-agent-skills-tests/pull/59" target="_blank" rel="noopener"&gt;public test&lt;/A&gt; I mentioned kept the change-feed route specifically for tables too large to scan every time. So size the decision against volume as well as importance.&lt;/P&gt;&lt;P&gt;Classification is per table, not per source. One SQL Server database will easily contain all four classes. Conveniently, the &lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/sql-server-pipeline" target="_blank" rel="noopener"&gt;pipeline spec&lt;/A&gt; supports table-level table_configuration overrides, so the policy can follow the classification.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H1&gt;A worked example&lt;/H1&gt;&lt;P&gt;Picture a retailer ingesting from two sources:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A SQL Server ERP through the gateway-based connector, covering customers, price_list, sales_order_header and a large inventory_snapshot.&lt;/LI&gt;&lt;LI&gt;Salesforce, covering Account and Opportunity.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here's how the classification might go:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;inventory_snapshot is Class A. Only current stock matters operationally.&lt;/LI&gt;&lt;LI&gt;customers and price_list are Class B. Finance needs "what was the price on the invoice date", not every intermediate edit.&lt;/LI&gt;&lt;LI&gt;sales_order_header is Class C, because status transitions drive revenue recognition. The team also asks the ERP owner whether an order-status audit table already exists.&lt;/LI&gt;&lt;LI&gt;Opportunity is Class B with one caveat. Hard deletes in Salesforce only arrive with a refresh, so the ledger will record those deletions late.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The ingestion pipeline turns that policy into configuration. Auto full refresh is on by default, switched off for the Class C table, and snapshots are pushed into a weekend window (&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/ingestion/lakeflow-connect/full-refresh" target="_blank" rel="noopener"&gt;refresh window docs)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;resources:
  pipelines:
    erp_ingestion:
      name: 'lfc-erp-ingestion-${bundle.target}'
      serverless: true
      catalog: ${var.dest_catalog}
      schema: ${var.dest_schema}
      ingestion_definition:
        ingestion_gateway_id: ${resources.pipelines.erp_gateway.id}
        table_configuration:
          scd_type: 'SCD_TYPE_1'
          auto_full_refresh_policy:
            enabled: true
            min_interval_hours: 24
        full_refresh_window:
          start_hour: 2
          days_of_week:
            - SATURDAY
            - SUNDAY
          time_zone_id: 'Asia/Kolkata'
        objects:
          - table:
              source_catalog: ${var.source_database}
              source_schema: dbo
              source_table: sales_order_header
              destination_catalog: ${var.dest_catalog}
              destination_schema: ${var.dest_schema}
              table_configuration:
                auto_full_refresh_policy:
                  enabled: false
          # remaining tables inherit the pipeline-level policy&lt;/LI-CODE&gt;&lt;P&gt;The Class B ledger lives in a separate pipeline the platform team owns. It reads the replica as a periodic snapshot using &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/ldp/developer/ldp-python-ref-apply-changes-from-snapshot" target="_blank" rel="noopener"&gt;create_auto_cdc_from_snapshot_flow&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from pyspark import pipelines as dp
 
dp.create_streaming_table(
    name="customers_history",
    comment="Platform-owned SCD2 ledger of ERP customers.",
    table_properties={"pipelines.reset.allowed": "false"},
)
 
dp.create_auto_cdc_from_snapshot_flow(
    target="customers_history",
    source="erp_bronze.dbo_replica.customers",
    keys=["customer_id"],
    stored_as_scd_type=2,
)&lt;/LI-CODE&gt;&lt;P&gt;Two design choices matter more than the code itself.&lt;/P&gt;&lt;P&gt;Chain the pipelines; don't schedule them independently. Run the history pipeline as a task that depends on the ingestion task in the same Lakeflow Job. Here's why:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;For database connectors, the &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/ingestion/lakeflow-connect/full-refresh" target="_blank" rel="noopener"&gt;docs&lt;/A&gt; describe the refresh as effectively atomic. The old data stays queryable until the snapshot is applied in a single update.&lt;/LI&gt;&lt;LI&gt;That guarantee is written up for database connectors only, though. The docs also warn that interrupted refresh retries can leave tables partially loaded.&lt;/LI&gt;&lt;LI&gt;A snapshot comparison that happens to read a half-loaded replica would record a wave of deletions in your ledger.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Running the tasks in sequence removes the timing risk. A lightweight gate in front of the history task, such as a row-count sanity check that skips the run on an implausible drop, removes most of what's left.&lt;/P&gt;&lt;P&gt;Protect the ledger, not the replica. The reset-protection property belongs on the history tables. The replica should stay freely refreshable, because refreshing is how the connector heals itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H1&gt;Running it in production&lt;/H1&gt;&lt;P&gt;Make refreshes visible. Every full refresh of a Class B or C source table should raise an alert and leave a note in an operations log. The pipeline event log and update history are the obvious places to watch, and there's dedicated freshness monitoring for CDC tables. Build the alert on whichever signal you've confirmed in your own workspace.&lt;/P&gt;&lt;P&gt;Write the Class C runbook before you need it. It should answer four questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Who approves a refresh?&lt;/LI&gt;&lt;LI&gt;How do you measure the gap between the last applied change and the refresh point?&lt;/LI&gt;&lt;LI&gt;How do you recover the change-feed consumer?&lt;/LI&gt;&lt;LI&gt;How do you tell finance which period's history is incomplete?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Rehearse refreshes on purpose. In staging, trigger a manual refresh and at least one auto refresh caused by a schema change. Then check that the ledger doesn't show any phantom closures. Databricks' &lt;A href="https://docs.databricks.com/aws/en/ldp/full-refresh-st" target="_blank" rel="noopener"&gt;own guidance&lt;/A&gt; recommends testing refreshes outside production and documenting the downstream dependencies; the ledger is what makes that second part manageable.&lt;/P&gt;&lt;P&gt;Treat schedules as a correctness control. A Gmail pipeline that runs less often than its cursor lasts triggers its own refreshes. A SQL Server gateway paused "just for a while" can lose changes to log retention. Run cadence and gateway uptime aren't only cost levers; they protect your data.&lt;/P&gt;&lt;P&gt;Don't lean on time travel. Delta time travel is limited by retention and VACUUM, and it's tied to the very table that gets refreshed. It's useful for recovery, but it isn't a ledger.&lt;/P&gt;&lt;P&gt;Budget for the ledger honestly. Snapshot comparison costs a full scan per run. The change-feed route costs engineering and on-call effort. Both are cheaper than explaining to an auditor why last quarter's customer segmentation can't be reproduced.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H1&gt;When not to bother&lt;/H1&gt;&lt;P&gt;Please don't build a history zone for Class A tables just because the pattern is tidy. In most estates, the majority of ingested tables are current-state lookups, and a ledger for them is pure cost.&lt;/P&gt;&lt;P&gt;And if the source already provides authoritative history, use it. ERP audit tables and Salesforce field history objects ingested as data are good examples. Rebuilding that history from the replica would be duplicate effort.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H1&gt;What I'd want an architect to take away&lt;/H1&gt;&lt;UL&gt;&lt;LI&gt;A managed connector's destination table is a replica, and the connector may replace its contents. Some of the triggers aren't yours to control.&lt;/LI&gt;&lt;LI&gt;History stored inside the replica, or tied to a streaming position in it, inherits its refresh behaviour.&lt;/LI&gt;&lt;LI&gt;Batch snapshot comparison tolerates refreshes naturally. The change feed is more precise but needs a recovery plan.&lt;/LI&gt;&lt;LI&gt;Decide table by table, and let the pipeline spec's table-level overrides carry the decision.&lt;/LI&gt;&lt;LI&gt;skipChangeCommits on a CDC replica is a correctness bug, not a tuning choice.&lt;/LI&gt;&lt;LI&gt;When every change matters, the most reliable history is usually the one the source keeps.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Lakeflow Connect takes a lot of work off our plates: extraction, cursors, retries, schema drift. That's the point of it. But automating ingestion also moves the line of responsibility. The connector now guarantees a faithful present, and nobody guarantees the past unless you decide someone should.&lt;/P&gt;&lt;P&gt;A replica can always be rebuilt. A ledger only exists if someone chose to keep one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H1&gt;Credit where it's due&lt;/H1&gt;&lt;P&gt;This post builds on several community discussions and one public test repository:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The &lt;A href="https://community.databricks.com/t5/data-engineering/operationalizing-lakeflow-connect-handling-upstream-schema/td-p/169738" target="_blank" rel="noopener"&gt;Operationalizing Lakeflow Connect&lt;/A&gt; thread, on history erasure and testing downstream recovery.&lt;/LI&gt;&lt;LI&gt;The &lt;A href="https://community.databricks.com/t5/data-engineering/incremental-load-issue-with-sdp/td-p/167891" target="_blank" rel="noopener"&gt;incremental load with SDP&lt;/A&gt; thread, on reading the change feed from mutable bronze tables.&lt;/LI&gt;&lt;LI&gt;The &lt;A href="https://community.databricks.com/t5/data-engineering/architecture-advice-dlt-strategy-for-daily-snapshots-to-scd2/m-p/150318" target="_blank" rel="noopener"&gt;daily snapshots to SCD2&lt;/A&gt; thread, on pipelines.reset.allowed.&lt;/LI&gt;&lt;LI&gt;The &lt;A href="https://github.com/rsleedbx/databricks-agent-skills-tests/pull/59" target="_blank" rel="noopener"&gt;rsleedbx test PR&lt;/A&gt;, which tested AUTO CDC FROM SNAPSHOT through a full refresh.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H1&gt;References&lt;/H1&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/" target="_blank" rel="noopener"&gt;Lakeflow Connect connector concepts&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/cdc-overview" target="_blank" rel="noopener"&gt;Managed database connectors&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/ingestion/lakeflow-connect/full-refresh" target="_blank" rel="noopener"&gt;Fully refresh target tables (window, auto policy, CDC behaviour)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/ingestion/lakeflow-connect/scd" target="_blank" rel="noopener"&gt;Enable history tracking (SCD type 2)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/sql-server-pipeline" target="_blank" rel="noopener"&gt;Ingest data from SQL Server&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/ingestion/lakeflow-connect/sql-server-limits" target="_blank" rel="noopener"&gt;SQL Server connector limitations&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/salesforce-limits" target="_blank" rel="noopener"&gt;Salesforce connector limitations&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/gmail-limits" target="_blank" rel="noopener"&gt;Gmail connector limitations&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/smartsheet-limits" target="_blank" rel="noopener"&gt;Smartsheet connector limitations&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/ldp/full-refresh-st" target="_blank" rel="noopener"&gt;Full refresh for streaming tables&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/structured-streaming/delta-lake" target="_blank" rel="noopener"&gt;Delta Lake table streaming reads and writes&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/ldp/developer/ldp-python-ref-apply-changes-from-snapshot" target="_blank" rel="noopener"&gt;create_auto_cdc_from_snapshot_flow reference&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/ldp/updates" target="_blank" rel="noopener"&gt;Run a pipeline update (pipelines.reset.allowed)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/aws/en/security/network/onprem/lakeflow-connect" target="_blank" rel="noopener"&gt;Ingest on-premises data with Lakeflow Connect (integrated CDC)&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 24 Nov 2026 07:37:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/your-lakeflow-connect-table-is-a-replica-not-a-ledger/m-p/177399#M1976</guid>
      <dc:creator>ozaaditya</dc:creator>
      <dc:date>2026-11-24T07:37:12Z</dc:date>
    </item>
    <item>
      <title>Parameterised metric views in Excel: what the Databricks Add-in can and can't do (Nov 2026)</title>
      <link>https://community.databricks.com/t5/community-articles/parameterised-metric-views-in-excel-what-the-databricks-add-in/m-p/176554#M1975</link>
      <description>&lt;DIV class=""&gt;&lt;H1 id="parameterised-metric-views-in-excel-what-the-databricks-excel-add-in-can-and-cant-do-today-nov-2026"&gt;Parameterised metric views in Excel: what the Databricks Excel Add-in can and can't do today (Nov 2026)&lt;/H1&gt;&lt;P&gt;&lt;EM&gt;Drafted with AI assistance. Every result below was reproduced by hand on 2026-11-16 and checked against plain SQL on samples.tpch.orders.&lt;/EM&gt;&lt;/P&gt;&lt;H2 id="tldr"&gt;TL;DR&lt;/H2&gt;&lt;P&gt;I tested a Unity Catalog metric view &lt;STRONG&gt;with parameters&lt;/STRONG&gt; from the Databricks Excel Add-in.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Write SQL&lt;/STRONG&gt; lets you bind parameters to Excel cells: change a cell, refresh, get new numbers.&lt;/LI&gt;&lt;LI&gt;The &lt;STRONG&gt;DATABRICKS.SQL formula&lt;/STRONG&gt; does the same and recalculates live, but returns text.&lt;/LI&gt;&lt;LI&gt;The &lt;STRONG&gt;Select data pivot builder has no way to pass parameters&lt;/STRONG&gt;, so it always runs on the defaults. It also caps results at 1,000 rows by default, with no warning.&lt;/LI&gt;&lt;/UL&gt;&lt;H2 id="which-route"&gt;Which route?&lt;/H2&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s0-decision-flow.png" style="width: 747px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33394i38FF528CA3FE2CFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="s0-decision-flow.png" alt="s0-decision-flow.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Which route to take, depending on whether users need to change parameter values and how.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;A &lt;EM&gt;wrapper view per scenario&lt;/EM&gt; is a plain SQL view that calls the metric view with fixed arguments, so pivot users get a parameter-free object per scenario.&lt;/P&gt;&lt;H2 id="setup"&gt;Setup&lt;/H2&gt;Item Value &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Source&lt;/TD&gt;&lt;TD&gt;samples.tpch.orders (7.5M rows, available in every workspace)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Compute&lt;/TD&gt;&lt;TD&gt;Serverless SQL warehouse, DBSQL 2026.45 (querying a parameterised metric view needs Databricks Runtime 18.2 or above)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Client&lt;/TD&gt;&lt;TD&gt;Excel for Mac 16.114.4, Databricks Excel Add-in&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Reference&lt;/TD&gt;&lt;TD&gt;Plain SQL on the source table, so every Excel result can be checked&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;H2 id="the-demo-metric-view"&gt;The demo metric view&lt;/H2&gt;&lt;P&gt;Two parameters and a validation filter. Full DDL in Appendix A.&lt;/P&gt;Parameter Type Default Used in &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;p_discount&lt;/TD&gt;&lt;TD&gt;DOUBLE&lt;/TD&gt;&lt;TD&gt;0.15&lt;/TD&gt;&lt;TD&gt;net_revenue measure; rejected outside 0 to 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;p_from_date&lt;/TD&gt;&lt;TD&gt;DATE&lt;/TD&gt;&lt;TD&gt;1995-01-01&lt;/TD&gt;&lt;TD&gt;view filter on o_orderdate&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Measures: order_count, gross_revenue, net_revenue. Fields: order_priority, order_status, order_date, order_year, customer_key.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s8-view-definition.png" style="width: 981px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33395iA37CE30FC2B47CC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="s8-view-definition.png" alt="s8-view-definition.png" /&gt;&lt;/span&gt;&lt;P&gt;&lt;EM&gt;The view in Catalog Explorer (Details tab): the two parameters with defaults, and the validation filter that calls raise_error. Catalog Explorer renders the fields: block as dimensions:; both keys are accepted (dimensions is the backward-compatible synonym).&lt;/EM&gt;&lt;/P&gt;&lt;H2 id="route-1-select-data-pivot"&gt;Route 1: Select data (pivot)&lt;/H2&gt;&lt;P&gt;&lt;STRONG&gt;Steps:&lt;/STRONG&gt; New import → &lt;EM&gt;Select data&lt;/EM&gt; → pick the view → for a metric view the add-in opens the pivot builder directly (for a table you tick &lt;EM&gt;Pivot Data&lt;/EM&gt; first) → Rows order_priority, Values order_count, gross_revenue, net_revenue → Save and import.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s1-pivot-builder.png" style="width: 768px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33396iC6C9D1C9442E439E/image-size/large?v=v2&amp;amp;px=999" role="button" title="s1-pivot-builder.png" alt="s1-pivot-builder.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Select data on the demo view. Fields, measures, Rows and Values, Live query, and a row limit set to 1000 by default. There is nowhere to enter p_discount or p_from_date.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What happens&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The metric view's measures work as pivot values. The docs say the headers may read Sum(measure); in my run they showed the plain measure names. Either way no extra aggregation happens.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;There is no field for parameters&lt;/STRONG&gt; (pivot builder, filters panel, ⋮ menus). The defaults apply: discount 0.15, from 1995-01-01.&lt;/LI&gt;&lt;LI&gt;Cell-bound &lt;STRONG&gt;filters&lt;/STRONG&gt; work and re-query on refresh. A filter on a column that is derived from a parameter does not change the parameter.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Reference values from plain SQL on samples.tpch.orders (discount 0.15, from 1995-01-01):&lt;/P&gt;order_priority orders gross_revenue net_revenue &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1-URGENT&lt;/TD&gt;&lt;TD&gt;817,013&lt;/TD&gt;&lt;TD&gt;123,486,712,128.42&lt;/TD&gt;&lt;TD&gt;104,963,705,309.16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2-HIGH&lt;/TD&gt;&lt;TD&gt;816,819&lt;/TD&gt;&lt;TD&gt;123,456,065,747.72&lt;/TD&gt;&lt;TD&gt;104,937,655,885.56&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3-MEDIUM&lt;/TD&gt;&lt;TD&gt;815,382&lt;/TD&gt;&lt;TD&gt;123,175,438,745.16&lt;/TD&gt;&lt;TD&gt;104,699,122,933.39&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4-NOT SPECIFIED&lt;/TD&gt;&lt;TD&gt;817,797&lt;/TD&gt;&lt;TD&gt;123,598,232,983.94&lt;/TD&gt;&lt;TD&gt;105,058,498,036.35&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5-LOW&lt;/TD&gt;&lt;TD&gt;816,279&lt;/TD&gt;&lt;TD&gt;123,235,562,195.73&lt;/TD&gt;&lt;TD&gt;104,750,227,866.37&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;The Excel pivot below matches all five rows to the cent.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s2-pivot-result.png" style="width: 722px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33397i9994FBC06D2A8F63/image-size/large?v=v2&amp;amp;px=999" role="button" title="s2-pivot-result.png" alt="s2-pivot-result.png" /&gt;&lt;/span&gt;The imported pivot on the defaults (discount 0.15, from 1995-01-01). Numbers shown with the Excel locale's decimal comma.&lt;/EM&gt;&lt;/P&gt;&lt;H3 id="the-silent-row-cap"&gt;The silent row cap&lt;/H3&gt;&lt;P&gt;The pivot's generated SQL ends in GROUP BY ALL LIMIT 1000. With Rows order_date (1,310 distinct dates from 1995) the import lands exactly 1,000 rows and shows no warning. There is no ORDER BY, so the 1,000 rows kept are an arbitrary subset, not the first or last 1,000 days. In my run the sheet started at 1995-01-03 and ended at 1998-08-02, so 310 of the 1,310 days were silently missing. The Row limit is editable (default 1,000); raising it removes the cut.&lt;/P&gt;&lt;P&gt;Guardrail: set the Row limit above the expected row count and compare the grand total with a SQL total (reference: 1,310 days, 616,952,011,800.97 gross).&lt;/P&gt;&lt;H2 id="route-2-write-sql-with-cell-bound-parameters"&gt;Route 2: Write SQL with cell-bound parameters&lt;/H2&gt;&lt;P&gt;&lt;STRONG&gt;Steps:&lt;/STRONG&gt; New import → &lt;EM&gt;Write SQL&lt;/EM&gt; → paste the query → &lt;STRONG&gt;+Add&lt;/STRONG&gt; one parameter per :marker (name without the colon) → click the value box → the arrow button → pick the cell → Preview → Save and import.&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;SELECT&lt;/SPAN&gt; order_priority,&lt;/SPAN&gt;
&lt;SPAN&gt;       MEASURE(order_count)   &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; orders,&lt;/SPAN&gt;
&lt;SPAN&gt;       MEASURE(gross_revenue) &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; gross_revenue,&lt;/SPAN&gt;
&lt;SPAN&gt;       MEASURE(net_revenue)   &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; net_revenue&lt;/SPAN&gt;
&lt;SPAN&gt;&lt;SPAN class=""&gt;FROM&lt;/SPAN&gt;   &lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;catalog&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;.&lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;schema&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;.metric_tpch_orders_param_demo&lt;/SPAN&gt;
&lt;SPAN&gt;       (p_discount  &lt;SPAN class=""&gt;=&amp;gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;CAST&lt;/SPAN&gt;(&lt;SPAN class=""&gt;REPLACE&lt;/SPAN&gt;(&lt;SPAN class=""&gt;:discount&lt;/SPAN&gt;, &lt;SPAN class=""&gt;','&lt;/SPAN&gt;, &lt;SPAN class=""&gt;'.'&lt;/SPAN&gt;) &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; &lt;SPAN class=""&gt;DOUBLE&lt;/SPAN&gt;),&lt;/SPAN&gt;
&lt;SPAN&gt;        p_from_date &lt;SPAN class=""&gt;=&amp;gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;CAST&lt;/SPAN&gt;(&lt;SPAN class=""&gt;:from_date&lt;/SPAN&gt; &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; &lt;SPAN class=""&gt;DATE&lt;/SPAN&gt;))&lt;/SPAN&gt;
&lt;SPAN&gt;&lt;SPAN class=""&gt;GROUP&lt;/SPAN&gt;  &lt;SPAN class=""&gt;BY&lt;/SPAN&gt; &lt;SPAN class=""&gt;ALL&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;&lt;SPAN class=""&gt;ORDER&lt;/SPAN&gt;  &lt;SPAN class=""&gt;BY&lt;/SPAN&gt; order_priority&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;The mapping is the point.&lt;/STRONG&gt; Each :marker in the query is tied to one Excel cell:&lt;/P&gt;Query marker Add-in parameter name Excel cell Cell content &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;p_discount =&amp;gt; :discount&lt;/TD&gt;&lt;TD&gt;discount&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Params!B3&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;0.15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;p_from_date =&amp;gt; :from_date&lt;/TD&gt;&lt;TD&gt;from_date&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Params!B4&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;1995-01-01 (text)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG&gt;Cast every marker.&lt;/STRONG&gt; The add-in appears to send each cell value as an untyped STRING parameter. Without a cast, the number parameter fails with [METRIC_VIEW_INVALID_PARAMETER_VALUE] … parameter p_discount at position 0 requires "DOUBLE". The argument given is "STRING" (SQLSTATE 42K09). A string &lt;EM&gt;literal&lt;/EM&gt; works in the SQL editor because Spark casts literals implicitly; a bound marker is typed, so it does not. Use CAST(:discount AS DOUBLE) and CAST(:from_date AS DATE).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Locale trap.&lt;/STRONG&gt; With European Excel settings the number 0.15 in a cell is sent as the text '0,15', and the cast fails with [CAST_INVALID_INPUT] The value '0,15' of the type "STRING" cannot be cast to "DOUBLE". Two ways out: keep the parameter cell as &lt;EM&gt;text&lt;/EM&gt; with a dot ('0.15), or make the query locale-proof with CAST(REPLACE(:discount, ',', '.') AS DOUBLE), as in the query above. A date kept as text in yyyy-mm-dd is not affected.&lt;/P&gt;&lt;P&gt;Check each binding in the pane: it is easy to point two markers at the same cell. The pane lists them as :discount = Params!B3 and :from_date = Params!B4.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s4-write-sql-pane.png" style="width: 768px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33398i8D2C48EF356F135A/image-size/large?v=v2&amp;amp;px=999" role="button" title="s4-write-sql-pane.png" alt="s4-write-sql-pane.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Write SQL: the query on top (my catalog and schema; use yours), and below it each marker bound to a cell on the Params sheet.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What happens&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Text cells work: the add-in sends the value as a STRING and the query casts it (see above).&lt;/LI&gt;&lt;LI&gt;Change a cell, then Imports tab → ⟳ on the same import: the query re-runs with the new values.&lt;/LI&gt;&lt;LI&gt;No row cap in my test (the pivot cap does not apply to Write SQL).&lt;/LI&gt;&lt;LI&gt;Invalid input (discount 1.5): the view's own raise_error text appears in the add-in, with the statement ID. No wrong figures are shown.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Result on the starting values (discount 0.15, from 1995-01-01): identical to the pivot, to the cent.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s5-write-sql-result.png" style="width: 706px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33399iFB1971E92B2D5A0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="s5-write-sql-result.png" alt="s5-write-sql-result.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The Write SQL import. Same five rows as the pivot, now driven by the cells Params!B3 and Params!B4.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Expected for discount 0.10 and from 1996-01-01:&lt;/P&gt;order_priority orders gross_revenue net_revenue &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1-URGENT&lt;/TD&gt;&lt;TD&gt;590,000&lt;/TD&gt;&lt;TD&gt;89,188,886,898.81&lt;/TD&gt;&lt;TD&gt;80,269,998,208.93&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2-HIGH&lt;/TD&gt;&lt;TD&gt;588,589&lt;/TD&gt;&lt;TD&gt;88,947,603,612.54&lt;/TD&gt;&lt;TD&gt;80,052,843,251.29&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3-MEDIUM&lt;/TD&gt;&lt;TD&gt;588,448&lt;/TD&gt;&lt;TD&gt;88,931,760,715.16&lt;/TD&gt;&lt;TD&gt;80,038,584,643.64&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4-NOT SPECIFIED&lt;/TD&gt;&lt;TD&gt;590,362&lt;/TD&gt;&lt;TD&gt;89,235,906,429.78&lt;/TD&gt;&lt;TD&gt;80,312,315,786.80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5-LOW&lt;/TD&gt;&lt;TD&gt;589,583&lt;/TD&gt;&lt;TD&gt;89,015,180,424.48&lt;/TD&gt;&lt;TD&gt;80,113,662,382.03&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s5b-write-sql-changed-params.png" style="width: 708px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33400i8597E74165FB5CAA/image-size/large?v=v2&amp;amp;px=999" role="button" title="s5b-write-sql-changed-params.png" alt="s5b-write-sql-changed-params.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The same import after setting Params!B3 to 0.10 and Params!B4 to 1996-01-01 and refreshing. All 15 values match the table above to the cent (decimal comma from the Excel locale).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s6-invalid-input-error.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33401iFCCD4305ED80F3EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="s6-invalid-input-error.png" alt="s6-invalid-input-error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Params!B3 set to 1.5 and the import refreshed. The view's own raise_error message comes back in the add-in, so a bad cell value fails loudly instead of returning wrong numbers.&lt;/EM&gt;&lt;/P&gt;&lt;H2 id="route-3-databrickssql-formula"&gt;Route 3: DATABRICKS.SQL formula&lt;/H2&gt;&lt;PRE&gt;=DATABRICKS.SQL(SQL!C3; Params!A3:B4)&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;Name/value pairs go in the same row of the range (discount | 0.15, from_date | 1995-01-01).&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;The SQL comes from a cell.&lt;/STRONG&gt; Excel rejects quoted text longer than 255 characters inside a formula.&lt;/LI&gt;&lt;LI&gt;The separator follows the Excel locale: ; for European settings, , for US.&lt;/LI&gt;&lt;LI&gt;The result &lt;STRONG&gt;spills&lt;/STRONG&gt; and recalculates when a parameter cell changes, with no refresh click.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Every column arrives as text&lt;/STRONG&gt;, including amounts and dates, with a dot decimal. Convert with =NUMBERVALUE(C9; "."; ",").&lt;/LI&gt;&lt;LI&gt;A formula does not refresh when the workbook is reopened until you sign in to the add-in and a cell changes (documented behaviour).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s7-formula-spill.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33402iAE3FEDC6A3198A47/image-size/large?v=v2&amp;amp;px=999" role="button" title="s7-formula-spill.png" alt="s7-formula-spill.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The DATABRICKS.SQL spill on the default parameters. The values match the reference to the cent, but they are left-aligned text with a dot decimal, so wrap them in NUMBERVALUE before calculating.&lt;/EM&gt;&lt;/P&gt;&lt;H2 id="comparison"&gt;Comparison&lt;/H2&gt;Route Parameters from cells Result size Output Skills needed &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Select data, pivot&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;1,000 rows by default, silent&lt;/TD&gt;&lt;TD&gt;Real numbers&lt;/TD&gt;&lt;TD&gt;None&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Write SQL, cell-bound&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Yes&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;No cap seen (about 8.5k rows tested on a larger view)&lt;/TD&gt;&lt;TD&gt;Real numbers&lt;/TD&gt;&lt;TD&gt;SQL once; then edit cells&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DATABRICKS.SQL&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Yes&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;Not measured (the docs give 10 MB for DATABRICKS.Table; nothing stated for DATABRICKS.SQL)&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;SQL and Excel formulas&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Wrapper view per scenario&lt;/TD&gt;&lt;TD&gt;Fixed at build time&lt;/TD&gt;&lt;TD&gt;Per view&lt;/TD&gt;&lt;TD&gt;Real numbers&lt;/TD&gt;&lt;TD&gt;None for users&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;H2 id="gotchas"&gt;Gotchas&lt;/H2&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Silent pivot row cap&lt;/STRONG&gt; (above).&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Bound parameters arrive as STRING, formatted in the Excel locale.&lt;/STRONG&gt; Cast them in the query and handle a decimal comma (Route 2). A literal in the SQL editor doesn't show this.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Parameter defaults are SQL expression text.&lt;/STRONG&gt; For a string write default: "'F'"; a bare F fails at CREATE with METRIC_VIEW_INVALID_VIEW_DEFINITION.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;A named argument on a view without parameters&lt;/STRONG&gt; fails with METRIC_VIEW_UNRECOGNIZED_PARAMETER_NAME; an unbound :marker fails with UNBOUND_SQL_PARAMETER.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Dates must be yyyy-mm-dd.&lt;/STRONG&gt; A pivot filter written as 20260201 failed with CAST_INVALID_INPUT.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;The pivot's filters are generated as LOWER(col) = LOWER('val')&lt;/STRONG&gt;, which may defeat data skipping on clustered columns.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Parameterised metric views can't be materialised&lt;/STRONG&gt; (documented limitation).&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Timings&lt;/STRONG&gt; on serverless: about 9–12 s for the first query of a session, about 0.6 s for a cached refresh, about 6 s for a changed parameter on an 8.5k-row result.&lt;/LI&gt;&lt;/OL&gt;&lt;H2 id="who-benefits-who-doesnt"&gt;Who benefits, who doesn't&lt;/H2&gt;&lt;P&gt;&lt;STRONG&gt;Benefits&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Finance and FP&amp;amp;A for period-end packs or scenario runs, where one person builds the Write SQL template and others edit cells.&lt;/LI&gt;&lt;LI&gt;Data teams who want one governed metric definition behind many workbooks.&lt;/LI&gt;&lt;LI&gt;Analysts doing pivot exploration on views whose defaults are what they need.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Doesn't (yet)&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Non-SQL users who need to change parameters inside a pivot.&lt;/LI&gt;&lt;LI&gt;Anyone using pivots on large results without checking the Row limit.&lt;/LI&gt;&lt;LI&gt;Workbooks that depend on DATABRICKS.SQL refreshing at reopen.&lt;/LI&gt;&lt;LI&gt;Teams needing materialised, repeatedly fast queries on parameterised views.&lt;/LI&gt;&lt;/UL&gt;&lt;H2 id="take-aways"&gt;Take-aways&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;SQL- and formula-only parameter passing is genuinely good: one governed metric definition, cells drive the numbers, bad input fails loudly. But it needs someone who can write (or at least paste and cast) SQL, and the pivot builder has no parameter prompt yet. So the least technical users, the ones pivots exist for, are the ones left on the defaults.&lt;/LI&gt;&lt;LI&gt;The silent 1,000-row cap is the sharper edge: it doesn't error, it just quietly shows you less. Raise the limit and reconcile a total until the add-in warns.&lt;/LI&gt;&lt;LI&gt;DATABRICKS.SQL is the most Excel-native route and the least finished one: live recalculation, but everything comes back as text.&lt;/LI&gt;&lt;LI&gt;Practical pattern for teams today: one SQL-literate person builds the Write SQL template; everyone else edits two cells and clicks refresh. For pure pivot users, publish a wrapper view per scenario until parameter prompts arrive.&lt;/LI&gt;&lt;/UL&gt;&lt;H2 id="what-id-like-to-see"&gt;What I'd like to see&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;Parameter inputs in the Select data pivot builder.&lt;/LI&gt;&lt;LI&gt;A visible warning when a pivot hits its Row limit.&lt;/LI&gt;&lt;LI&gt;Saved workspace queries loading in the add-in. The launch post lists reuse of workspace queries as supported, and in my workspace they were listed but didn't load into the editor, even after an explicit Save in the SQL editor. Is there a precondition I'm missing?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Has anyone seen these on a roadmap, or tried the add-in on Windows? &lt;A href="https://www.databricks.com/blog/author/toussaint-webb" target="_blank" rel="noopener"&gt;Toussaint Webb&lt;/A&gt;, if the add-in asks land in your area I'd welcome your take. The three asks were also submitted via in-product feedback on 2026-11-16.&lt;/P&gt;&lt;H2 id="appendix-a-view-ddl"&gt;Appendix A: view DDL&lt;/H2&gt;&lt;P&gt;Run in the SQL editor in a schema of your own (you need CREATE TABLE and USE SCHEMA on the schema, USE CATALOG on the catalog, and SELECT on samples.tpch.orders). Replace &amp;lt;catalog&amp;gt;.&amp;lt;schema&amp;gt;.&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;CREATE&lt;/SPAN&gt; &lt;SPAN class=""&gt;OR&lt;/SPAN&gt; &lt;SPAN class=""&gt;REPLACE&lt;/SPAN&gt; &lt;SPAN class=""&gt;VIEW&lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;catalog&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;.&lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;schema&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;.metric_tpch_orders_param_demo&lt;/SPAN&gt;
&lt;SPAN&gt;&lt;SPAN class=""&gt;WITH&lt;/SPAN&gt; METRICS&lt;/SPAN&gt;
&lt;SPAN&gt;LANGUAGE YAML&lt;/SPAN&gt;
&lt;SPAN&gt;&lt;SPAN class=""&gt;AS&lt;/SPAN&gt; $$&lt;/SPAN&gt;
&lt;SPAN&gt;version: &lt;SPAN class=""&gt;1.1&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;&lt;SPAN class=""&gt;comment&lt;/SPAN&gt;: &lt;SPAN class=""&gt;&amp;gt;-&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;  Demo &lt;SPAN class=""&gt;for&lt;/SPAN&gt; &lt;SPAN class=""&gt;the&lt;/SPAN&gt; Excel &lt;SPAN class=""&gt;Add&lt;/SPAN&gt;&lt;SPAN class=""&gt;-&lt;/SPAN&gt;&lt;SPAN class=""&gt;in&lt;/SPAN&gt; article: parameterised revenue &lt;SPAN class=""&gt;on&lt;/SPAN&gt; samples.tpch.orders.&lt;/SPAN&gt;
&lt;SPAN&gt;&lt;SPAN class=""&gt;source&lt;/SPAN&gt;: samples.tpch.orders&lt;/SPAN&gt;
&lt;SPAN&gt;&lt;SPAN class=""&gt;parameters&lt;/SPAN&gt;:&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;-&lt;/SPAN&gt; name: p_discount&lt;/SPAN&gt;
&lt;SPAN&gt;    data_type: &lt;SPAN class=""&gt;double&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;    &lt;SPAN class=""&gt;default&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"0.15"&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;-&lt;/SPAN&gt; name: p_from_date&lt;/SPAN&gt;
&lt;SPAN&gt;    data_type: &lt;SPAN class=""&gt;date&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;    &lt;SPAN class=""&gt;default&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"DATE'1995-01-01'"&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;&lt;SPAN class=""&gt;filter&lt;/SPAN&gt;: &lt;SPAN class=""&gt;&amp;gt;-&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;CASE&lt;/SPAN&gt; &lt;SPAN class=""&gt;WHEN&lt;/SPAN&gt; p_discount &lt;SPAN class=""&gt;BETWEEN&lt;/SPAN&gt; &lt;SPAN class=""&gt;0&lt;/SPAN&gt; &lt;SPAN class=""&gt;AND&lt;/SPAN&gt; &lt;SPAN class=""&gt;1&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;       &lt;SPAN class=""&gt;THEN&lt;/SPAN&gt; o_orderdate &lt;SPAN class=""&gt;&amp;gt;=&lt;/SPAN&gt; p_from_date&lt;/SPAN&gt;
&lt;SPAN&gt;       &lt;SPAN class=""&gt;ELSE&lt;/SPAN&gt; &lt;SPAN class=""&gt;CAST&lt;/SPAN&gt;(raise_error(&lt;SPAN class=""&gt;'p_discount must be between 0 and 1'&lt;/SPAN&gt;) &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; &lt;SPAN class=""&gt;BOOLEAN&lt;/SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;END&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;fields:&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;-&lt;/SPAN&gt; name: order_priority&lt;/SPAN&gt;
&lt;SPAN&gt;    expr: o_orderpriority&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;-&lt;/SPAN&gt; name: order_status&lt;/SPAN&gt;
&lt;SPAN&gt;    expr: o_orderstatus&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;-&lt;/SPAN&gt; name: order_date&lt;/SPAN&gt;
&lt;SPAN&gt;    expr: o_orderdate&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;-&lt;/SPAN&gt; name: order_year&lt;/SPAN&gt;
&lt;SPAN&gt;    expr: &lt;SPAN class=""&gt;YEAR&lt;/SPAN&gt;(o_orderdate)&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;-&lt;/SPAN&gt; name: customer_key&lt;/SPAN&gt;
&lt;SPAN&gt;    expr: o_custkey&lt;/SPAN&gt;
&lt;SPAN&gt;measures:&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;-&lt;/SPAN&gt; name: order_count&lt;/SPAN&gt;
&lt;SPAN&gt;    expr: &lt;SPAN class=""&gt;COUNT&lt;/SPAN&gt;(&lt;SPAN class=""&gt;1&lt;/SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;    display_name: Orders&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;-&lt;/SPAN&gt; name: gross_revenue&lt;/SPAN&gt;
&lt;SPAN&gt;    expr: &lt;SPAN class=""&gt;SUM&lt;/SPAN&gt;(o_totalprice)&lt;/SPAN&gt;
&lt;SPAN&gt;    display_name: Gross revenue&lt;/SPAN&gt;
&lt;SPAN&gt;    format:&lt;/SPAN&gt;
&lt;SPAN&gt;      &lt;SPAN class=""&gt;type&lt;/SPAN&gt;: &lt;SPAN class=""&gt;number&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;      decimal_places:&lt;/SPAN&gt;
&lt;SPAN&gt;        &lt;SPAN class=""&gt;type&lt;/SPAN&gt;: exact&lt;/SPAN&gt;
&lt;SPAN&gt;        places: &lt;SPAN class=""&gt;2&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;  &lt;SPAN class=""&gt;-&lt;/SPAN&gt; name: net_revenue&lt;/SPAN&gt;
&lt;SPAN&gt;    expr: &lt;SPAN class=""&gt;CAST&lt;/SPAN&gt;(&lt;SPAN class=""&gt;SUM&lt;/SPAN&gt;(o_totalprice) &lt;SPAN class=""&gt;*&lt;/SPAN&gt; &lt;SPAN class=""&gt;CAST&lt;/SPAN&gt;(&lt;SPAN class=""&gt;1&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; p_discount &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; &lt;SPAN class=""&gt;DECIMAL&lt;/SPAN&gt;(&lt;SPAN class=""&gt;10&lt;/SPAN&gt;, &lt;SPAN class=""&gt;4&lt;/SPAN&gt;)) &lt;SPAN class=""&gt;AS&lt;/SPAN&gt; &lt;SPAN class=""&gt;DECIMAL&lt;/SPAN&gt;(&lt;SPAN class=""&gt;28&lt;/SPAN&gt;, &lt;SPAN class=""&gt;2&lt;/SPAN&gt;))&lt;/SPAN&gt;
&lt;SPAN&gt;    display_name: Net revenue&lt;/SPAN&gt;
&lt;SPAN&gt;    &lt;SPAN class=""&gt;comment&lt;/SPAN&gt;: Gross revenue &lt;SPAN class=""&gt;after&lt;/SPAN&gt; &lt;SPAN class=""&gt;the&lt;/SPAN&gt; discount parameter.&lt;/SPAN&gt;
&lt;SPAN&gt;    format:&lt;/SPAN&gt;
&lt;SPAN&gt;      &lt;SPAN class=""&gt;type&lt;/SPAN&gt;: &lt;SPAN class=""&gt;number&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;      decimal_places:&lt;/SPAN&gt;
&lt;SPAN&gt;        &lt;SPAN class=""&gt;type&lt;/SPAN&gt;: exact&lt;/SPAN&gt;
&lt;SPAN&gt;        places: &lt;SPAN class=""&gt;2&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN&gt;$$&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;net_revenue is cast to DECIMAL on purpose: money stays exact to the cent, and the Excel screenshots show no floating-point noise.&lt;/P&gt;&lt;P&gt;Smoke test in the SQL editor, expected equal to the first table above:&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;SELECT&lt;/SPAN&gt; order_priority, MEASURE(order_count), MEASURE(gross_revenue), MEASURE(net_revenue)&lt;/SPAN&gt;
&lt;SPAN&gt;&lt;SPAN class=""&gt;FROM&lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;catalog&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;.&lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;schema&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;.metric_tpch_orders_param_demo &lt;SPAN class=""&gt;GROUP&lt;/SPAN&gt; &lt;SPAN class=""&gt;BY&lt;/SPAN&gt; &lt;SPAN class=""&gt;ALL&lt;/SPAN&gt; &lt;SPAN class=""&gt;ORDER&lt;/SPAN&gt; &lt;SPAN class=""&gt;BY&lt;/SPAN&gt; &lt;SPAN class=""&gt;1&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;Official docs: &lt;A href="https://docs.databricks.com/aws/en/uc-semantics/metric-views/use-parameters" target="_blank" rel="noopener"&gt;Use parameters with metric views&lt;/A&gt;, &lt;A href="https://docs.databricks.com/aws/en/uc-semantics/metric-views/yaml-reference" target="_blank" rel="noopener"&gt;Metric view YAML reference&lt;/A&gt;, &lt;A href="https://docs.databricks.com/aws/en/integrations/excel/query-data" target="_blank" rel="noopener"&gt;Import and query data using the Databricks Excel Add-in&lt;/A&gt;.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Nov 2026 14:33:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/parameterised-metric-views-in-excel-what-the-databricks-add-in/m-p/176554#M1975</guid>
      <dc:creator>DmitryKuznetsov</dc:creator>
      <dc:date>2026-11-16T14:33:26Z</dc:date>
    </item>
    <item>
      <title>Databricks Latest Features: Genie Code CLI, App Builder, Agent Memory and DABs Deployment History</title>
      <link>https://community.databricks.com/t5/community-articles/databricks-latest-features-genie-code-cli-app-builder-agent/m-p/176443#M1968</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;Databricks has shipped a lot of new features recently. Here’s a quick summary of the most useful ones, grouped by area.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. DABs Deployment History&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What it is:&lt;/STRONG&gt;&lt;BR /&gt;Databricks Asset Bundles (DABs) now keep a history of every deployment. Each record shows the deployment version, its status, and the resources it manages.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why it matters:&lt;/STRONG&gt;&lt;BR /&gt;Until now, working out what changed between two bundle deployments meant digging through Git history or comparing configurations by hand. Deployment history shows those changes directly. For example, if you raise a job’s timeout from 60 to 120 seconds and redeploy, the history records exactly that change.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where you’d use it:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Auditing changes in production environments&lt;/LI&gt;&lt;LI&gt;Troubleshooting when a job starts behaving differently after a deployment&lt;/LI&gt;&lt;LI&gt;Getting better visibility in CI/CD pipelines built on DABs&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;2. Genie Code CLI&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What it is:&lt;/STRONG&gt;&lt;BR /&gt;Genie Code, the Databricks AI coding assistant, now runs from your terminal. It works with your local files and Databricks workflows.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why it matters:&lt;/STRONG&gt;&lt;BR /&gt;Many developers spend most of their time in a local IDE and terminal. With the CLI, you get AI help without switching to the workspace UI. You can ask it to compare two bundle files, upload files, or help with workflow-related tasks.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Good to know:&lt;/STRONG&gt;&lt;BR /&gt;Model usage from the CLI is billed through &lt;STRONG&gt;Unity Gateway&lt;/STRONG&gt;, so cost tracking and governance stay in one place.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where you’d use it:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Reviewing changes between bundle configurations&lt;/LI&gt;&lt;LI&gt;Doing routine file and workflow tasks faster&lt;/LI&gt;&lt;LI&gt;Local-first development&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;3. Genie App Builder&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What it is:&lt;/STRONG&gt;&lt;BR /&gt;Describe the app you want in plain language, and Genie App Builder creates a Databricks App. You can then keep refining it through chat.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why it matters:&lt;/STRONG&gt;&lt;BR /&gt;Building even a simple internal app used to take frontend skills and setup time. Now you can go from an idea to a working prototype in minutes. The original article’s example is a news tracker with sample data that filters six cards by topic, built from a short description.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Governance:&lt;/STRONG&gt;&lt;BR /&gt;Building, sharing and permissions are controlled through &lt;STRONG&gt;App Spaces&lt;/STRONG&gt;, so teams can create apps quickly without losing control over who builds and who can access them.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where you’d use it:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Quick internal tools and dashboards&lt;/LI&gt;&lt;LI&gt;Prototypes to show business stakeholders&lt;/LI&gt;&lt;LI&gt;Letting analysts and less technical users build simple apps&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;4. Materialized Views and Streaming Tables from Python&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What it is:&lt;/STRONG&gt;&lt;BR /&gt;You can now create standalone materialized views and streaming tables directly from a serverless notebook, using the &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/25059"&gt;@DP&lt;/a&gt;.materialized_view and &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/25059"&gt;@DP&lt;/a&gt;.table decorators.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why it matters:&lt;/STRONG&gt;&lt;BR /&gt;Previously these objects were usually defined inside a full declarative pipeline. Now, for simpler cases, you can define them right in a notebook in Python, which means less setup and faster development.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where you’d use it:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Quick incremental aggregations&lt;/LI&gt;&lt;LI&gt;Lightweight streaming ingestion&lt;/LI&gt;&lt;LI&gt;Testing transformation logic before moving it into a full pipeline&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;5. JDBC Connections in Unity Catalog (Generally Available)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What it is:&lt;/STRONG&gt;&lt;BR /&gt;You can save a JDBC driver, endpoint and credentials once as a Unity Catalog connection, then use it by name in any notebook.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirements:&lt;/STRONG&gt;&lt;BR /&gt;Serverless compute and DBR 19 or above.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why it matters:&lt;/STRONG&gt;&lt;BR /&gt;Teams often copy connection strings and credentials across many notebooks, which is a maintenance headache and a security risk. With UC JDBC connections:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Credentials are stored once and governed centrally&lt;/LI&gt;&lt;LI&gt;Access is controlled through Unity Catalog permissions&lt;/LI&gt;&lt;LI&gt;Notebooks stay clean, with no hardcoded connection details&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Where you’d use it:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Reading from external databases such as MySQL, PostgreSQL or SQL Server&lt;/LI&gt;&lt;LI&gt;Sharing approved connections across teams safely&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;6. Audio Transcription in SQL with ai_transcribe (Beta)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What it is:&lt;/STRONG&gt;&lt;BR /&gt;A new AI function that turns audio into timestamped text with speaker labels, called directly from SQL.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Languages:&lt;/STRONG&gt; English and Spanish (currently)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why it matters:&lt;/STRONG&gt;&lt;BR /&gt;Audio data used to need separate speech-to-text services and custom pipelines. Now you can transcribe audio with a simple SQL query, then analyze the text with other AI functions such as ai_summarize, ai_classify or ai_analyze_sentiment, all within Databricks.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where you’d use it:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Call-center analytics (customer sentiment, complaint detection)&lt;/LI&gt;&lt;LI&gt;Meeting and interview transcription&lt;/LI&gt;&lt;LI&gt;Compliance monitoring of recorded calls&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;7. Agent Memory&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What it is:&lt;/STRONG&gt;&lt;BR /&gt;AI agents can now store useful facts and user preferences and use them in later conversations. The memory is stored in &lt;STRONG&gt;Lakebase&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why it matters:&lt;/STRONG&gt;&lt;BR /&gt;Without memory, every conversation with an agent starts from scratch. With Agent Memory, the agent remembers context. In the original article’s example, a user’s preferred news format is saved and used in a later session, without the earlier conversation being sent again.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where you’d use it:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Personalized assistants and chatbots&lt;/LI&gt;&lt;LI&gt;Customer support agents that remember past interactions&lt;/LI&gt;&lt;LI&gt;Internal copilots that learn team preferences over time&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sun, 15 Nov 2026 14:30:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/databricks-latest-features-genie-code-cli-app-builder-agent/m-p/176443#M1968</guid>
      <dc:creator>rajkumar8k</dc:creator>
      <dc:date>2026-11-15T14:30:31Z</dc:date>
    </item>
    <item>
      <title>Protecting Your Company Data When Integrating Coding Agents through Unity AI Gateway</title>
      <link>https://community.databricks.com/t5/community-articles/protecting-your-company-data-when-integrating-coding-agents/m-p/176397#M1966</link>
      <description>&lt;P&gt;Coding agents like Claude Code, Codex, OpenCode, or PI, started through the ug launcher, and integrated with foundation models through Unity AI Gateway can run with whatever Databricks permissions the developer already has through MCPs that is native on Databricks such as AI Search MCP(s), or Genie MCP(s).&lt;/P&gt;&lt;P&gt;Basically this introduce risk to the company if you are trying to protect the data before the model for whatever the reason is AI governance, law, etc, ...&lt;/P&gt;&lt;P&gt;We have been adopting protective mechanism in layers, where each one catches what the one above it misses.&lt;/P&gt;&lt;P&gt;- The first layer is what you already have. Since the agent acts as the user, Unity Catalog row filters, column masks, ABAC tag policies and plain least-privilege grants still apply to whatever it reads. But usually, people have multiple permissions and we want to protect the coding agent from reading the PII from those who have such permissions.&lt;/P&gt;&lt;P&gt;- The second layer is Sensitive Data Detection policy on the model service, you can turn this on on the UI and set it at rank 1, with tags email_address and credit_card. The model gets a token such as [US_SSN] instead of the value. Everything else just allows or denies. Some limitations that we have experience, the REDACT mechanism can be sometime to strict and remove important information from the coding agent such as AWS account number, Databricks workspace id when it is trying to perform task on such environment and break the workflow.&lt;/P&gt;&lt;P&gt;- The third layer is for what the built-ins miss or you can replace it completely to match some of your workflow. A custom SQL policy is a function that takes the event and returns a decision. The body is converted to a small SQL subset, so no regexp, just things like CONTAINS, LIKE and STARTSWITH.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;CREATE OR REPLACE FUNCTION main.governance.block_private_keys(
  event VARIANT
)
RETURNS VARIANT
LANGUAGE SQL
RETURN
  CASE
    WHEN event:type::string = 'request'
      AND CONTAINS(event:context.message::string, 'PRIVATE KEY-----')
    THEN to_variant_object(named_struct('result', 'DENY', 'reason', 'Prompt contains a private key.'))
    ELSE to_variant_object(named_struct('result', 'ALLOW', 'reason', ''))
  END;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Nov 2026 10:30:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/protecting-your-company-data-when-integrating-coding-agents/m-p/176397#M1966</guid>
      <dc:creator>DoTA</dc:creator>
      <dc:date>2026-11-14T10:30:49Z</dc:date>
    </item>
    <item>
      <title>The Databricks Architect in the Age of AI: Why Judgement Matters More Than Knowing Every Feature</title>
      <link>https://community.databricks.com/t5/community-articles/the-databricks-architect-in-the-age-of-ai-why-judgement-matters/m-p/176437#M1964</link>
      <description>&lt;H1&gt;&lt;SPAN&gt;The Databricks Architect in the Age of AI: Why Judgement Matters More Than Knowing Every Feature&lt;/SPAN&gt;&lt;/H1&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;As AI makes technical knowledge increasingly accessible, the real differentiator in enterprise data architecture is shifting towards experience, context and architectural judgement.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We are entering an interesting phase in the evolution of data engineering and enterprise architecture.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AI can generate SQL, write PySpark transformations, explain Delta Lake, recommend Spark configurations, create data pipelines and increasingly assist with architectural decisions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With AI coding assistants and agentic engineering becoming part of our daily workflows, the effort required to acquire technical knowledge and translate it into working solutions is changing dramatically.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This raises an important question:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;If AI can increasingly perform the technical tasks that data engineers and architects have spent years mastering, what will make an experienced Databricks architect valuable?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I believe the answer lies in something beyond technical knowledge: &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;the ability to exercise sound architectural judgement.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let's look at this through some practical Databricks scenarios.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;1. Knowing the platform is not the same as architecting an enterprise solution&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;Consider a typical enterprise Lakehouse implementation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;An AI assistant can help you:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Generate a Medallion Architecture.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Write PySpark transformations.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Create Delta tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Configure Unity Catalog.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Recommend Liquid Clustering strategies.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Build Lakeflow pipelines.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Identify potential Spark performance bottlenecks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;All of this is useful, and increasingly accessible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But enterprise architecture is rarely a problem of simply knowing which Databricks feature to use.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It is about understanding whether you should use it in the first place.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Should every source system be ingested into the Lakehouse, or would Lakehouse Federation be more appropriate for certain workloads?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Should business transformations happen in the Silver layer, Gold layer or downstream semantic models?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Should we use streaming tables, materialized views or conventional Delta tables?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Should we optimize for query performance, data freshness, infrastructure cost or operational simplicity?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;These are not merely technology questions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;They are architectural decisions influenced by business requirements, data characteristics, workload patterns, organizational maturity, security obligations and economics.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;The platform provides the capabilities. The architect must understand the consequences of using them.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;2. Three architectural decisions where judgement matters&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;Let's consider three situations that enterprise data architects regularly encounter.&lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN&gt;Scenario A: Lakehouse Federation versus data ingestion&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN&gt;Imagine an enterprise with several operational databases and an existing Databricks Lakehouse.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A straightforward recommendation might be to ingest all relevant data into Delta tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But is that always the right decision?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Consider a source that:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Contains data accessed infrequently.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Has modest query latency requirements.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Is already governed by an established operational team.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Would introduce additional replication and synchronization overhead if ingested.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Lakehouse Federation might be a more appropriate choice for certain workloads.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;On the other hand, if the workload demands high concurrency, predictable performance, complex transformations or historical processing, ingestion might be preferable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The decision requires understanding access patterns, data freshness, source-system impact, cost and operational ownership.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Knowing the feature is one thing. Knowing when not to use it is another.&lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN&gt;Scenario B: Medallion Architecture versus business complexity&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN&gt;Medallion Architecture has become a widely adopted pattern for organizing data refinement in the Lakehouse.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, implementing Bronze, Silver and Gold layers does not automatically produce a well-designed enterprise data platform.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Consider a large retail enterprise.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sales transactions, inventory movements, customer information and supply chain data may have different ownership structures, data quality expectations and business rules.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Simply moving data through three layers does not answer:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Where should business validation rules reside?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Who owns the definition of a trusted business entity?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;How should data contracts be enforced?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;How do we manage schema evolution?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;What happens when an upstream source changes?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;How do we prevent downstream reporting disruptions?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;These decisions require an understanding of business domains, operational dependencies and consumption requirements.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;An architect must design for the enterprise, not merely implement an architecture diagram.&lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&lt;SPAN&gt;Scenario C: Performance optimization versus economics&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN&gt;Databricks offers several capabilities to improve query performance and optimize workloads.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Liquid Clustering, predictive optimization, caching and workload management can all contribute to better performance in appropriate circumstances.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But consider this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A query that takes 30 seconds might be perfectly acceptable for a report refreshed once every night.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The same query might be unacceptable for an operational dashboard refreshed every few minutes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Optimizing both workloads using identical strategies would be a mistake.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The architect must understand:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Query frequency and concurrency.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Data volume and growth patterns.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Service-level agreements.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Compute consumption.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Business criticality.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Total cost of ownership.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;The objective is not to build the fastest possible data platform.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It is to build a platform that delivers the required business outcomes at an economically sustainable cost.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Optimization without context is often just unnecessary engineering.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;3. Experience changes the quality of architectural decisions&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;There is a significant difference between implementing an architectural pattern and understanding the problem it is intended to solve.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You develop a different perspective when you have:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Experienced a production pipeline failure.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Dealt with upstream schema changes.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Reconciled discrepancies across environments.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Managed competing stakeholder expectations.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Handled security and access-control challenges.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Experienced the consequences of poorly designed data models.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Supported a platform after its original implementation team has moved on.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;These experiences influence how you approach your next architectural decision.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You begin to anticipate problems before they materialize.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You understand that a seemingly simple technical decision can have implications across governance, operations, reporting, security and business continuity.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AI can increasingly help analyse these situations and recommend solutions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But the quality of those recommendations depends heavily on the context provided, the assumptions challenged and the decisions made by the people responsible for the outcome.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is where accumulated experience becomes valuable.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;4. AI should augment architectural judgement, not replace it&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;I don't see AI as an adversary to experienced Databricks architects.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I see it as a force multiplier.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;AI can:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Accelerate technical implementation.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Reduce repetitive engineering effort.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Explore alternative architectural patterns.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Help identify potential failure scenarios.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Improve documentation and knowledge sharing.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Accelerate experimentation and prototyping.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;These are meaningful productivity gains.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, generating a technically valid implementation is not the same as delivering a successful enterprise solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;An enterprise needs someone to ensure that the solution:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Addresses the actual business problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Meets security and regulatory requirements.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Integrates with the existing technology ecosystem.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Operates reliably at scale.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Remains maintainable.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Delivers measurable business value.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;A technically correct implementation can still be a poor architectural decision.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The responsibility for that decision cannot simply be delegated to an AI-generated recommendation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The opportunity for architects is therefore not to compete with AI on implementation speed, but to use AI to improve the quality and speed of their decision-making.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;5. The next generation of Databricks architects&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;I believe the role of a Databricks architect will increasingly evolve beyond platform specialization.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The next generation of architects must become:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Problem framers:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; Understand the business problem before selecting the technology.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Systems thinkers:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; Understand how ingestion, storage, transformation, governance, consumption and operations interact.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Decision makers:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; Evaluate architectural trade-offs instead of blindly following recommended patterns.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Business translators:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; Connect platform capabilities with measurable business outcomes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Accountable leaders:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; Take ownership of architectural decisions and their consequences.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;AI-enabled practitioners:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; Use AI to accelerate execution while retaining independent technical judgement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The objective should not be to compete with AI on how much technical information we can remember.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It should be to become better at knowing what knowledge matters, when to apply it and what consequences follow.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;6. Build knowledge that travels with you&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;There is one more aspect of this discussion that I find particularly important.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Technology platforms will evolve. Organizational structures will change. Designations, authority, teams and access to resources are contextual.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But the knowledge acquired through building, troubleshooting, experimenting and delivering enterprise platforms travels with you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Your ability to understand a complex problem, evaluate alternatives, make sound decisions and deliver outcomes becomes part of your professional capital.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Relationships and reputation are equally important. They create trust, influence and opportunities.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But they should amplify your capabilities, never become substitutes for them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Build capabilities that cannot be taken away. Build a reputation that travels beyond your organization. Build relationships that create opportunities, but never become dependent on them for your professional relevance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That, to me, is a sustainable approach to building a technology career.&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN&gt;A final thought&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;Databricks will continue to evolve. New capabilities will emerge. Some of today's architectural practices will become obsolete. AI will increasingly automate activities that currently require considerable engineering effort.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We cannot build our professional identity around knowing every feature of a technology platform.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We must build it around the ability to understand problems, make decisions and deliver outcomes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Don't compete with AI on the volume of knowledge. Develop the judgement to know what knowledge matters, when to apply it, and what consequences follow.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Because knowing Databricks might get you started.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But knowing how to architect with Databricks, in the context of a real enterprise, is what makes you valuable.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;HR /&gt;&lt;/DIV&gt;&lt;H2&gt;&lt;SPAN&gt;Let's hear from the community&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;As AI becomes increasingly capable of generating data pipelines, SQL transformations and architectural recommendations:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;What do you believe will differentiate an experienced Databricks architect from an AI-enabled developer?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Technical depth?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Architectural judgement?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Business understanding?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Experience managing production complexity?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Accountability for outcomes?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;I'd particularly welcome perspectives from practitioners who have built and operated enterprise-scale Lakehouse platforms.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;Technology will continue to change. The quality of our decisions must evolve with it.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Nov 2026 12:40:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/the-databricks-architect-in-the-age-of-ai-why-judgement-matters/m-p/176437#M1964</guid>
      <dc:creator>TheDataMaverick</dc:creator>
      <dc:date>2026-11-15T12:40:52Z</dc:date>
    </item>
    <item>
      <title>Making AI-agent writes safe on Databricks: lineage, shallow clones, null-safe diffs, rollback</title>
      <link>https://community.databricks.com/t5/community-articles/making-ai-agent-writes-safe-on-databricks-lineage-shallow-clones/m-p/176133#M1961</link>
      <description>&lt;P&gt;A pipeline change can run successfully and still ship wrong data: a join that duplicates rows, a filter that moves a revenue total by a few percent. With AI agents now writing more pipeline code, I wanted a check that runs before a change reaches production. I built it as an open-source tool called bricksentry, then tested it hard on a 2-million-row Delta table on serverless. Here is what I learned. The techniques are useful even if you never use the tool.&lt;/P&gt;&lt;H3&gt;1. Unity Catalog lineage is live, but it remembers dropped tables&lt;/H3&gt;&lt;P&gt;system.access.table_lineage is the right source for "who reads this table": it covers notebooks, jobs and pipelines, not just SQL. Two lessons:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;It is near real-time. A query I ran from a new session showed up as a downstream reader within minutes.&lt;/LI&gt;&lt;LI&gt;It keeps history for tables that no longer exist. My first version reported old scratch tables as "downstream". Fix: check each target against information_schema.tables and drop the ones that are gone.&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;2. Shallow clones make a free sandbox for risky writes&lt;/H3&gt;&lt;P&gt;Instead of running a write on production, run it on a SHALLOW CLONE, diff the clone against production, then drop the clone. A shallow clone copies no data, so it is instant even at 2M rows. What I added on top, and would recommend to anyone doing this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Only allow INSERT, MERGE, UPDATE, DELETE and CREATE OR REPLACE. Refuse DROP, TRUNCATE and ALTER outright.&lt;/LI&gt;&lt;LI&gt;Rewrite any hardcoded production table name to point at the clone.&lt;/LI&gt;&lt;LI&gt;Always drop the clone in a finally block, even when the write fails.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Result: across every attack I tried, production stayed at 2,000,000 rows with zero new Delta versions.&lt;/P&gt;&lt;H3&gt;3. Diff on keys with IS NOT DISTINCT FROM, not =&lt;/H3&gt;&lt;P&gt;A full outer join on key = key silently drops NULL keys on both sides. Every NULL-key row then shows up as one "removed" plus one "added", which is noise that trains people to ignore diffs. Joining with IS NOT DISTINCT FROM fixes it. This bug came from my first real Databricks run, not from my local tests.&lt;/P&gt;&lt;H3&gt;4. Sampling is cheap, until it hides the one row that matters&lt;/H3&gt;&lt;P&gt;Hash-sampling 10% of keys keeps diffs fast on big tables. But a 1-row delete on 2M rows was invisible in the sample. The fix: compare a full-table checksum (row count plus a sum of xxhash64 over the columns) alongside the sample. If the sample looks clean but the checksums differ, re-run the diff on all rows. It stays cheap when nothing changed and exact when something did, and it also catches a 1-row UPDATE.&lt;/P&gt;&lt;H3&gt;5. Capture the rollback before the change, not after&lt;/H3&gt;&lt;P&gt;DESCRIBE HISTORY gives you the current version, so you can write down the exact RESTORE TABLE ... TO VERSION AS OF n before anything runs. Put it in the PR or job log. Working out the right version under pressure is where mistakes happen.&lt;/P&gt;&lt;H3&gt;What I would do differently&lt;/H3&gt;&lt;P&gt;I would have tested on a real workspace much earlier. Two of the three bugs above (lineage ghosts and the sampling blind spot) never appeared on my laptop.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Honest limit:&lt;/STRONG&gt; so far this has run on one serverless workspace. If you try these patterns, or the tool, on classic compute, another cloud or a workspace with locked-down system tables, I would really like to hear what you see.&lt;/P&gt;&lt;P&gt;The tool is free and open source (Apache-2.0): &lt;A href="https://github.com/bricksentry/bricksentry" target="_blank" rel="noopener"&gt;github.com/bricksentry/bricksentry&lt;/A&gt;&lt;BR /&gt;Full write-up with every test: &lt;A href="https://medium.com/towards-data-engineering/i-built-a-safety-net-for-ai-agents-on-databricks-then-i-tried-to-break-it-476983ea192c" target="_blank" rel="noopener"&gt;I Built a Safety Net for AI Agents on Databricks. Then I Tried to Break It.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;How do you catch risky table changes today: expectations, monitoring, PR review, or something else?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2026 02:32:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/making-ai-agent-writes-safe-on-databricks-lineage-shallow-clones/m-p/176133#M1961</guid>
      <dc:creator>Brahmareddy</dc:creator>
      <dc:date>2026-11-11T02:32:55Z</dc:date>
    </item>
    <item>
      <title>Seven checks before a Unity Gateway rollout</title>
      <link>https://community.databricks.com/t5/community-articles/seven-checks-before-a-unity-gateway-rollout/m-p/176104#M1958</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Community Members,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I’ve put together a practical guide to Databricks Unity Gateway, focusing on model access, MCP permissions, policy handling, and cost attribution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here are seven checks I recommend before expanding a rollout:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Verify that the intended identity can call the service and an unauthorized identity cannot.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Check the service owner’s access to required destinations and credentials.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Expose only the MCP tools the application needs.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Make sure the client distinguishes policy denials from technical failures.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Confirm that usage can be attributed to a caller, service, and workload.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Test whether fallback responses still satisfy the application’s requirements.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Define who receives budget alerts and what users see when usage is blocked.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;The walkthrough includes a runtime architecture diagram, a Python example, and links to official documentation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Full article:&amp;nbsp;&lt;A title="Databricks Unity Gateway—Access, Governance &amp;amp; Cost" href="https://medium.com/@chalapathi.rao.komirisetti/databricks-unity-gateway-who-called-your-ai-and-who-pays-fed5a4238291?sharedUserId=chalapathi.rao.komirisetti" target="_blank" rel="noopener"&gt;https://medium.com/@chalapathi.rao.komirisetti/databricks-unity-gateway-who-called-your-ai-and-who-pays-fed5a4238291?sharedUserId=chalapathi.rao.komirisetti&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Which check has been the most challenging in your environment? I’d especially welcome examples of how you monitor policy denials and MCP permissions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="runtime-architecture.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/33226i044E132F800CA619/image-size/large?v=v2&amp;amp;px=999" role="button" title="runtime-architecture.png" alt="runtime-architecture.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2026 14:05:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/seven-checks-before-a-unity-gateway-rollout/m-p/176104#M1958</guid>
      <dc:creator>Chalapathi-Rao</dc:creator>
      <dc:date>2026-11-10T14:05:46Z</dc:date>
    </item>
    <item>
      <title>Is Databricks Losing Its Charm in the Age of AI?</title>
      <link>https://community.databricks.com/t5/community-articles/is-databricks-losing-its-charm-in-the-age-of-ai/m-p/176416#M1956</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I've been working with Databricks for nearly eight years, and lately I've been reflecting on how our role as data engineers is evolving.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;One thing I've noticed is that development is increasingly becoming about prompting AI, troubleshooting issues, fixing bugs, and making workflow adjustments rather than actually engineering solutions from the ground up.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Don't get me wrong, AI is a powerful tool, and there's no point in resisting it. But I sometimes feel that by becoming too dependent on AI, we're gradually losing some of our core engineering capabilities and, more importantly, our ability to challenge things independently.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Another concern is that clients are becoming increasingly familiar with AI-generated solutions. They come to us with suggested implementations, estimated development timelines, and even proposed approaches to fixing technical issues. Sometimes, they already have an idea of how long something should take because AI has given them an answer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, the real question is: &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;How do we differentiate ourselves as experienced data engineers in this new AI-driven environment?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How do we move beyond simply executing AI-generated suggestions and demonstrate that we understand the underlying architecture, data flows, performance implications, scalability, cost optimisation, security, and long-term maintainability better than a generic AI-generated solution?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ultimately, I believe our value shouldn't be measured by how quickly we can prompt AI or fix a bug. It should be measured by our ability to question assumptions, identify problems that aren't immediately obvious, make sound engineering decisions, and deliver solutions that are technically superior to what a client might initially propose.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'd be interested in hearing how other experienced data engineers and architects are approaching this shift.&lt;BR /&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/121531"&gt;@thekushalvishwa&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#Spar&lt;/SPAN&gt;&lt;SPAN&gt;#Delta Lake#&lt;/SPAN&gt;&lt;SPAN&gt;Workflows&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Nov 2026 20:46:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/is-databricks-losing-its-charm-in-the-age-of-ai/m-p/176416#M1956</guid>
      <dc:creator>thekushalvishwa</dc:creator>
      <dc:date>2026-11-14T20:46:34Z</dc:date>
    </item>
    <item>
      <title>Why Databricks Metric Views Matter: Consistent Metrics Across Dashboards</title>
      <link>https://community.databricks.com/t5/community-articles/why-databricks-metric-views-matter-consistent-metrics-across/m-p/177373#M1955</link>
      <description>&lt;P&gt;&lt;SPAN&gt;One of the trickiest problems in data engineering happens &lt;/SPAN&gt;&lt;I&gt;after&lt;/I&gt;&lt;SPAN&gt; pipelines are healthy and data quality checks pass:&lt;/SPAN&gt;&lt;SPAN&gt; two dashboards show different numbers for the same metric because each consumer or report calculates the business logic slightly differently.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In my latest post on Medium,&lt;/SPAN&gt;&lt;SPAN&gt; I explore how &lt;/SPAN&gt;&lt;STRONG&gt;Databricks Metric Views&lt;/STRONG&gt;&lt;SPAN&gt; help solve this by separating &lt;/SPAN&gt;&lt;STRONG&gt;how a metric is defined&lt;/STRONG&gt;&lt;SPAN&gt; from &lt;/SPAN&gt;&lt;STRONG&gt;how you slice and analyze it,&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;allowing you to define measures once and evaluate them dynamically across dimensions using &lt;/SPAN&gt;&lt;STRONG&gt;MEASURE&lt;/STRONG&gt;()&lt;SPAN&gt; in Databricks SQL,&lt;/SPAN&gt;&lt;SPAN&gt; while keeping definitions centralized across SQL,&lt;/SPAN&gt;&lt;SPAN&gt; AI/BI dashboards,&lt;/SPAN&gt;&lt;SPAN&gt; Genie,&lt;/SPAN&gt;&lt;SPAN&gt; and external BI tools.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Read the full article here:&lt;/SPAN&gt; &lt;A class="" href="https://medium.com/stackademic/one-metric-different-dashboards-why-databricks-metric-views-matter-0a8ed0b30f41" target="_blank" rel="noopener"&gt;One Metric, Different Dashboards: Why Databricks Metric Views Matter&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How are you handling metric consistency and semantic definitions across your dashboards and BI tools today?&lt;/SPAN&gt;&lt;SPAN&gt; Would love to hear your patterns,&lt;/SPAN&gt;&lt;SPAN&gt; trade-offs,&lt;/SPAN&gt;&lt;SPAN&gt; or questions in the comments!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2026 00:50:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/why-databricks-metric-views-matter-consistent-metrics-across/m-p/177373#M1955</guid>
      <dc:creator>Avinash_Narala</dc:creator>
      <dc:date>2026-11-24T00:50:40Z</dc:date>
    </item>
    <item>
      <title>Databricks SQL: Check Join Row Counts Before Resizing the Warehouse</title>
      <link>https://community.databricks.com/t5/community-articles/databricks-sql-check-join-row-counts-before-resizing-the/m-p/175640#M1952</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When a sales query runs slowly, inspect how many rows each join produces before changing compute size.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Consider a hypothetical retailer joining order lines to payments using &lt;/SPAN&gt;&lt;SPAN&gt;order_id&lt;/SPAN&gt;&lt;SPAN&gt;. One customer’s order has three product lines and two payment records. Joining these tables directly produces six rows for that order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the query then sums line amounts, each product line is counted twice. That extra processing can also make the query slower.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Azure Databricks query profiles show operator-level execution time, row counts, and memory usage, helping identify expensive operations and unexpected row growth.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For this fictional report, I would:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Open the query from &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Query History&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, then select &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;See query profile&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Inspect the join’s input and output row counts.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Confirm the report’s intended grain: one row per order.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Aggregate order lines and payments separately to that grain before joining.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Validate totals and compare execution profiles under comparable conditions.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Multiple matches can be intentional. The important check is whether the join preserves the meaning and grain of the report.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;What checks does your team use to distinguish legitimate join expansion from a join that inflates both processing work and business totals?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Reference: &lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/sql/user/queries/query-profile" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Azure Databricks query profile&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#Databricks #SQL #QueryOptimization&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2026 01:19:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/databricks-sql-check-join-row-counts-before-resizing-the/m-p/175640#M1952</guid>
      <dc:creator>amitsharma1707</dc:creator>
      <dc:date>2026-11-05T01:19:46Z</dc:date>
    </item>
    <item>
      <title>Structured Streaming: Choose Watermarks Around Real Arrival Delays</title>
      <link>https://community.databricks.com/t5/community-articles/structured-streaming-choose-watermarks-around-real-arrival/m-p/175615#M1950</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Structured Streaming: Choose Watermarks Around Real Arrival Delays&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A practical streaming lesson: measure how late business events arrive before choosing a watermark threshold.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Consider a hypothetical retailer using Azure Databricks to calculate sales in five-minute windows. A customer completes a purchase at 10:05, but the store’s connection fails. The event reaches the platform at 10:40, after newer sales have already arrived.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With a ten-minute watermark delay, that purchase might arrive too late to update its sales window.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Structured Streaming tracks the maximum observed event timestamp and uses the configured delay to calculate its watermark. Records within the lateness threshold are guaranteed to be processed; records outside it might still be processed, but that is not guaranteed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For this fictional pipeline, I would:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Measure arrival delays across normal operations and store outages.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Choose a threshold that reflects the business’s tolerance for missing late sales.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Retain original events so historical totals can be reconciled separately.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Test delayed events and monitor state growth before production.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;A longer threshold tolerates more late data but retains more state. For windowed aggregations in append mode, it also delays final output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;How does your team balance timely sales reporting with accepting events delayed by outages?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Reference: &lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/structured-streaming/watermarks" target="_blank"&gt;&lt;SPAN&gt;Azure Databricks watermark guidance&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#Databricks #StructuredStreaming #DataEngineering&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2026 16:27:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/structured-streaming-choose-watermarks-around-real-arrival/m-p/175615#M1950</guid>
      <dc:creator>amitsharma1707</dc:creator>
      <dc:date>2026-11-04T16:27:04Z</dc:date>
    </item>
    <item>
      <title>Masking Columns for a Client Workspace When You Can’t Use Catalog Binding</title>
      <link>https://community.databricks.com/t5/community-articles/masking-columns-for-a-client-workspace-when-you-can-t-use/m-p/175588#M1945</link>
      <description>&lt;P&gt;Hi Everyone,&lt;BR /&gt;&lt;BR /&gt;I am Adnan and I am a Cloudera Platform expert recently joined the Databricks Community.&amp;nbsp;I will be sharing all my implementations and experience I have gained as Big Data Expert and any solutions I implement to address my current business problems.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am learning my way through Databricks as I find it interesting and great. There may be better solutions to what I have acheived but am trying to share my learnings with you.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Recently I had to solve a problem that turned out to be more awkward than I expected: giving an external client query access to our data, from their own workspace, while guaranting that sensitive columns stay masked for them — and without exposing our main catalog to their workspace.&lt;/P&gt;&lt;P&gt;I'm writing this up because the "obvious" answer (catalog binding) wasn't an option to us for business reasons, and the path we ended up on has a few sharp edges that aren't obvious until you hit them. If you're in the same boat, hopefully this saves you a week.&lt;/P&gt;&lt;H2&gt;The setup&lt;/H2&gt;&lt;P&gt;A few facts that shaped everything:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;We have &lt;STRONG&gt;one Unity Catalog metastore&lt;/STRONG&gt;, not two. Our platform data lives in a single catalog I'll call base_catalog. The client queries from a &lt;STRONG&gt;separate workspace&lt;/STRONG&gt;, and the data they're allowed to see is exposed through a second catalog I'll call client_catalog.&lt;/LI&gt;&lt;LI&gt;Both workspaces are on that &lt;STRONG&gt;same metastore&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;The client connects with their own service principals over OAuth/JDBC — they never touch our workspace.&lt;/LI&gt;&lt;LI&gt;base_catalog already has ABAC column-mask and row-filter policies in place (national ID, names, contact numbers, etc.), driven by governed tags.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The goal: the client sees only what they're entitled to, and anything sensitive comes back masked — same as it would for an unprivileged user in our own workspace.&lt;/P&gt;&lt;H2&gt;Why we didn't use catalog binding&lt;/H2&gt;&lt;P&gt;As per Databricks advice, the recommended answer was &lt;STRONG&gt;read-only catalog binding&lt;/STRONG&gt;: bind base_catalog to the client's workspace, and the existing ABAC policies apply natively, no extra work. We actually tried it, and it worked — masking carried over with zero effort on our side.&lt;/P&gt;&lt;P&gt;However we rolled it back anyway. The business requirement was to &lt;STRONG&gt;keep base_catalog isolated&lt;/STRONG&gt; from the client workspace entirely — the client should never be able to see or reach our main catalog, even with policies in force. Binding makes the real catalog reachable from their workspace, and that was the line we weren't allowed to cross.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;So if you &lt;EM&gt;can&lt;/EM&gt; bind, bind — it's genuinely the simplest option and you can stop reading. This article is for when isolation is a hard requirement and binding is therefore off the table.&lt;/FONT&gt;&lt;/P&gt;&lt;H2&gt;Why plain Delta Sharing / Open Sharing wasn't enough on its own&lt;/H2&gt;&lt;P&gt;With binding gone, the natural next thought is Delta Sharing into client_catalog. Two things make this not "just work":&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;On the same metastore, Delta Sharing behaves differently than the cross-account case.&lt;/STRONG&gt; To share a table that's governed by ABAC policies at all, the &lt;STRONG&gt;share owner has to be exempt from those policies&lt;/STRONG&gt; — otherwise Unity Catalog refuses with an error about the share owner being governed by the policy. The practical consequence: the data crosses into client_catalog &lt;STRONG&gt;unmasked&lt;/STRONG&gt;. The masking does not travel with the share.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Tags and policies don't travel either.&lt;/STRONG&gt; The governed tags that drive our masking, and the ABAC policy definitions themselves, do not come across with a share. So on the client side you start with unmasked data, no tags, and no policies — i.e. nothing protecting it.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;That second point is the real work. The data lands unmasked; you have to re-establish the masking on the client side. That's a fail-open window if you're not careful — data is exposed between the moment it lands and the moment masking is applied — so the rule we enforce is: &lt;STRONG&gt;no client principal gets access to a table until masking is applied and verified on it.&lt;/STRONG&gt;&lt;/P&gt;&lt;H2&gt;The approach that worked for us&lt;/H2&gt;&lt;P&gt;The shape of the solution:&lt;/P&gt;&lt;PRE&gt;BASE WORKSPACE (base_catalog, isolated)        CLIENT WORKSPACE (client_catalog)
---------------------------------------        ---------------------------------
information_schema.column_tags
        │  (export job: MERGE → a table)
        ▼
governance.exported_tags ── Delta Share ──▶  client_catalog.governance.exported_tags
                                                    │
                                                    │  tag-sync job (diff → apply/remove)
                                                    ▼
                                            tags applied on the shared tables
                                                    │
                                   ABAC policies (pre-created on client_catalog,
                                   keyed to the same governed tags) bind to them
                                                    ▼
                                   client SP (non-exempt) reads MASKED&lt;/PRE&gt;&lt;P&gt;The key ideas:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;base_catalog stays the &lt;STRONG&gt;single source of truth&lt;/STRONG&gt; for which columns are sensitive (the tags).&lt;/LI&gt;&lt;LI&gt;The ABAC &lt;STRONG&gt;policies are created independently on client_catalog&lt;/STRONG&gt; by our governance team — same definitions, same governed tags. They are not synced across catalogs; each catalog owns its own.&lt;/LI&gt;&lt;LI&gt;The only thing that actually moves automatically is &lt;STRONG&gt;tag assignments&lt;/STRONG&gt;, and we built a job to keep them in sync.&lt;/LI&gt;&lt;LI&gt;The client service principals are &lt;STRONG&gt;non-exempt&lt;/STRONG&gt;, so once a column on a client-side table carries the right tag, the client's own policy masks it.&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;Step 1 — export the tags as data&lt;/H3&gt;&lt;P&gt;You can't "share" tags, but you can share a &lt;STRONG&gt;table that lists them&lt;/STRONG&gt;. I export the tag assignments from base_catalog into a governance table, refreshed on a schedule with a MERGE so that (a) governance's deliberate "leave this unmasked" exceptions survive refreshes, and (b) tags removed at source get dropped:&lt;/P&gt;&lt;PRE&gt;MERGE INTO base_catalog.governance.exported_tags t
USING (
  SELECT schema_name, table_name, column_name, tag_name, tag_value, current_timestamp() AS exported_at
  FROM base_catalog.information_schema.column_tags
  WHERE tag_name IS NOT NULL
) s
ON  t.schema_name=s.schema_name AND t.table_name=s.table_name
AND t.column_name=s.column_name AND t.tag_name=s.tag_name
WHEN MATCHED THEN UPDATE SET t.tag_value=s.tag_value, t.exported_at=s.exported_at
WHEN NOT MATCHED THEN INSERT (schema_name, table_name, column_name, tag_name, tag_value, exported_at, is_exception)
                       VALUES (s.schema_name, s.table_name, s.column_name, s.tag_name, s.tag_value, s.exported_at, FALSE)
WHEN NOT MATCHED BY SOURCE THEN DELETE;&lt;/PRE&gt;&lt;P&gt;The is_exception column is how governance says "this column is PII but the client is entitled to see it, leave it unmasked" — a deliberate, recorded decision rather than an accidental gap.&lt;/P&gt;&lt;H3&gt;Step 2 — share the data with an exempt owner&lt;/H3&gt;&lt;P&gt;The share into client_catalog is &lt;STRONG&gt;owned by a dedicated service principal that's in the EXCEPT list of the policies&lt;/STRONG&gt;. This is required — a non-exempt owner can't share a policy-governed table. That SP exists only to own the share and move data; it's not used to read anything on the client side.&lt;/P&gt;&lt;P&gt;I add both the data schemas/tables and the exported_tags table to the share, running the ALTER SHARE statements as that SP.&lt;/P&gt;&lt;P&gt;(This is the step where data lands unmasked. Everything after this is about putting the masking back before anyone can read it.)&lt;/P&gt;&lt;H3&gt;Step 3 — policies live on the client catalog&lt;/H3&gt;&lt;P&gt;Our governance team creates the same column-mask and row-filter policies on client_catalog, keyed to the same governed tags, with the client SPs &lt;STRONG&gt;not&lt;/STRONG&gt; in the EXCEPT lists. These are separate objects from the base ones and are maintained per catalog.&lt;/P&gt;&lt;H3&gt;Step 4 — the tag-sync job&lt;/H3&gt;&lt;P&gt;A scheduled job diffs the exported tag list against what's actually on client_catalog and reconciles. The diff is a view:&lt;/P&gt;&lt;PRE&gt;CREATE OR REPLACE VIEW client_catalog.governance.tag_sync_diff AS
WITH src AS (
  SELECT schema_name, table_name, column_name, tag_name, is_exception
  FROM client_catalog.governance.exported_tags WHERE tag_name IS NOT NULL
),
cols AS (
  SELECT table_schema AS schema_name, table_name, column_name
  FROM client_catalog.information_schema.columns
),
tags AS (
  SELECT schema_name, table_name, column_name, tag_name
  FROM client_catalog.information_schema.column_tags WHERE tag_name IS NOT NULL
)
SELECT s.schema_name, s.table_name, s.column_name, s.tag_name, s.is_exception,
  CASE
    WHEN c.column_name IS NULL THEN 'SKIP'
    WHEN s.is_exception        THEN 'EXCEPTION'
    WHEN t.tag_name IS NULL     THEN 'ADD'
    ELSE 'PRESENT'
  END AS action
FROM src s
LEFT JOIN cols c USING (schema_name, table_name, column_name)
LEFT JOIN tags t USING (schema_name, table_name, column_name, tag_name)
UNION ALL
SELECT m.schema_name, m.table_name, m.column_name, m.tag_name, FALSE, 'REMOVE'
FROM tags m
LEFT JOIN src s USING (schema_name, table_name, column_name, tag_name)
WHERE s.schema_name IS NULL;&lt;/PRE&gt;&lt;P&gt;And the job applies it. One deliberate choice: &lt;STRONG&gt;additions apply automatically, removals are reported for review, not auto-applied&lt;/STRONG&gt; — because removing a tag &lt;EM&gt;unmasks&lt;/EM&gt; a column, and I didn't want a mistaken change in base_catalog to silently expose data on the client side. I also fingerprint the diff so a run with no changes exits immediately instead of scanning:&lt;/P&gt;&lt;PRE&gt;DIFF_VIEW   = "client_catalog.governance.tag_sync_diff"
STATE_TABLE = "client_catalog.governance.tag_sync_state"
CATALOG     = "`client_catalog`"
AUTO_REMOVE = False   # removals are reported, not auto-applied (unmask risk)

spark.sql(f"CREATE TABLE IF NOT EXISTS {STATE_TABLE} (fingerprint STRING, run_at TIMESTAMP, adds INT, removes INT, exceptions INT)")

fp = spark.sql(f"""SELECT md5(concat_ws('\\n', sort_array(collect_list(
       concat_ws('|', schema_name, table_name, column_name, tag_name, action))))) fp
     FROM {DIFF_VIEW}""").collect()[0]["fp"]

last = spark.sql(f"SELECT fingerprint FROM {STATE_TABLE} ORDER BY run_at DESC LIMIT 1").collect()
if last and last[0]["fingerprint"] == fp:
    dbutils.notebook.exit("NO_CHANGE")

def run(rows, verb):
    n, errs = 0, []
    for r in rows:
        try:
            spark.sql(f"ALTER TABLE {CATALOG}.`{r.schema_name}`.`{r.table_name}` "
                      f"ALTER COLUMN `{r.column_name}` {verb} TAGS ('{r.tag_name}')"); n += 1
        except Exception as e:
            errs.append(f"{verb} {r.schema_name}.{r.table_name}.{r.column_name}: {e}")
    return n, errs

adds = spark.sql(f"SELECT * FROM {DIFF_VIEW} WHERE action='ADD'").collect()
rems = spark.sql(f"SELECT * FROM {DIFF_VIEW} WHERE action='REMOVE'").collect()
exc  = spark.sql(f"SELECT COUNT(*) c FROM {DIFF_VIEW} WHERE action='EXCEPTION'").collect()[0]["c"]

a, errs = run(adds, "SET")
r = 0
if rems and AUTO_REMOVE:
    r, e2 = run(rems, "UNSET"); errs += e2
elif rems:
    print("REMOVE candidates (review — unmask risk):")
    for x in rems: print(f"  {x.schema_name}.{x.table_name}.{x.column_name} [{x.tag_name}]")

spark.sql(f"INSERT INTO {STATE_TABLE} VALUES ('{fp}', current_timestamp(), {a}, {r}, {exc})")
if errs: raise Exception("\n".join(errs))
print(f"adds={a} removes={r} exceptions={exc}")&lt;/PRE&gt;&lt;P&gt;The export job (base side) has to run &lt;STRONG&gt;before&lt;/STRONG&gt; the sync job (client side), or the sync works off a stale snapshot.&lt;/P&gt;&lt;H3&gt;Step 5 — verify as the client, not as yourself&lt;/H3&gt;&lt;P&gt;This is the part I'd stress most, because it's where I nearly fooled myself. Aggregate checks lie — a hashed value can match a "looks like a 10-digit ID" regex and make your counts look wrong in either direction. So I verify by &lt;STRONG&gt;sampling actual values as a real, non-exempt client service principal&lt;/STRONG&gt;:&lt;/P&gt;&lt;PRE&gt;SELECT &amp;lt;pii_column&amp;gt; FROM client_catalog.&amp;lt;schema&amp;gt;.&amp;lt;table&amp;gt; WHERE &amp;lt;pii_column&amp;gt; IS NOT NULL LIMIT 5;&lt;/PRE&gt;&lt;P&gt;Expect hashed. I also sweep for PII-looking columns that carry &lt;STRONG&gt;no tag&lt;/STRONG&gt; — because an untagged sensitive column at source means unmasked data on the client:&lt;/P&gt;&lt;PRE&gt;SELECT c.table_schema, c.table_name, c.column_name
FROM client_catalog.information_schema.columns c
LEFT JOIN client_catalog.information_schema.column_tags t
  ON c.table_schema=t.schema_name AND c.table_name=t.table_name AND c.column_name=t.column_name
WHERE t.tag_name IS NULL
  AND lower(c.column_name) RLIKE 'phone|national|mrn|dob|birth|name|identifier|email|address';&lt;/PRE&gt;&lt;P&gt;Only after both checks pass does a client SP get granted on a table.&lt;/P&gt;&lt;H2&gt;Things I learned the hard way&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Tags don't travel with a share, and neither do policies.&lt;/STRONG&gt; You re-apply tags (automated here) and pre-create policies per catalog. I assumed sharing would carry at least the tags; it doesn't.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Masking needs both a tag and a policy that acts on it.&lt;/STRONG&gt; Either one missing means the column is clear, silently, with no error.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Row filters are tag-driven too.&lt;/STRONG&gt; It's easy to focus on column masks and forget the row-filter tags, which fail silently if they're not applied.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Removing a tag unmasks data.&lt;/STRONG&gt; I automate additions but keep removals manual/reviewed. When governance did a "swap the tag" (add new, remove old) on the source, the old tag lingered on the client side because my first version of the job only added — so I built a REMOVE path, but gated it.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Verify by sampling as the actual consumer.&lt;/STRONG&gt; My own session is privileged; it tells me nothing about what the client sees.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;The completeness of your source tagging becomes the control.&lt;/STRONG&gt; Anything the governance team hasn't tagged is exposed. The PII-pattern sweep is how I catch the gaps, and it caught real ones.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;If isolation isn't a hard requirement, use binding.&lt;/STRONG&gt; This whole pattern exists because we couldn't. It's more moving parts than binding, and more responsibility on you to keep it correct.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Happy to answer questions in the comments if anyone's working through the same constraint.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;If you found this useful, a kudos goes a long way — it tells me this kind of write-up is worth doing, and I’ll keep sharing solutions as I hit new problems........&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2026 15:54:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/masking-columns-for-a-client-workspace-when-you-can-t-use/m-p/175588#M1945</guid>
      <dc:creator>AdnanFaridKhan</dc:creator>
      <dc:date>2026-11-04T15:54:45Z</dc:date>
    </item>
    <item>
      <title>Solution Accelerator Series | Smart Claims for Insurance</title>
      <link>https://community.databricks.com/t5/community-articles/solution-accelerator-series-smart-claims-for-insurance/m-p/177467#M1944</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Claims teams work across a growing mix of data and investigation steps. The &lt;/SPAN&gt;&lt;STRONG&gt;Smart Claims for Insurance Solution Accelerator&lt;/STRONG&gt;&lt;SPAN&gt; explores how the Databricks Lakehouse can support claims processing, from data ingestion and analysis to decision-making, with technology and human review working together.&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://d1r5llqwmkrl74.cloudfront.net/notebooks/FSI/smart-claims/index.html?_gl=1*190m9pd*rs_ga*Y2Q5NWZiZGUtYmE4Mi00OTViLWJiYzgtZmViODAzMDkzN2Nh*rs_ga_PQSEQ3RZQC*MTY5MjI5NjE1MTQzMC4xMi4wLjE2OTIyOTYxNTMuNjAuMC4w&amp;amp;itm_source=www&amp;amp;itm_category=solutions&amp;amp;itm_page=smart-claims-for-insurance&amp;amp;itm_location=body&amp;amp;itm_component=cta-image-block#smart-claims_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;Augment investigations:&lt;/STRONG&gt;&lt;SPAN&gt; use insights from existing claims data to support and expedite human reviews.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Support explainable decisions:&lt;/STRONG&gt;&lt;SPAN&gt; provide more context throughout the workflow, with an audit trail for claims staff and support to help guard against human error and bias.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;STRONG&gt;Explore claims automation:&lt;/STRONG&gt;&lt;SPAN&gt; use data and analytics across the claims process to help lower costs, identify potentially fraudulent claims and accelerate settlements.&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/smart-claims-for-insurance?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=smart-claims-for-insurance" 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, 24 Nov 2026 16:56:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/solution-accelerator-series-smart-claims-for-insurance/m-p/177467#M1944</guid>
      <dc:creator>Tushar_Parekar</dc:creator>
      <dc:date>2026-11-24T16:56:18Z</dc:date>
    </item>
  </channel>
</rss>

