Databricks introduces query-time joins and relationship constraints in Unity Catalog Semantics
Databricks released Beta features for AI agents to compose governed metrics directly in SQL, preventing join-induced duplication.
On December 3, 2026, Databricks announced two new capabilities in Unity Catalog Semantics: query-time joins and relationship constraints. These features allow AI agents and BI tools to combine independently governed business metrics directly in SQL at query time, without requiring data modelers to anticipate every possible combination of metrics and dimensions in advance.
A common challenge in business analytics is the 'chasm trap,' where joining tables with multiple matching rows duplicates records and produces incorrect aggregate results. Traditional semantic models address this by controlling how queries are constructed through specific interfaces. Databricks takes a different approach by building protection against join-induced duplication into the SQL engine itself. With the new MEASURE() function, the engine ensures that each source row contributes at most once per group, regardless of how many joined rows it produces. This allows users and agents to write standard SQL joins while relying on the platform to preserve correct aggregation semantics.
Relationship constraints provide metadata that describes how metric views relate to one another, including cardinality and join conditions. Unlike definition-time joins that fix a specific path, relationship constraints allow agents to discover potential connections and decide which joins best fit the analytic question at runtime. This enables Genie and other AI agents to answer complex questions across different data domains using centrally governed definitions.
Both features are currently in Beta on Databricks Runtime 19 and above. The company states that this approach separates the governance of business metrics from the scope of individual analyses, allowing teams to define metrics once and reuse them across various agent-driven workflows.