Skip to content
trendoviz

AI for Business · Industry

Databricks adds query-time joins for AI agents

A new Unity Catalog feature lets AI agents discover and compose governed business metrics directly in SQL at query time.

Published
  • 2 min read
  • 1 source
  • Stated by the source itself

Summary

Databricks has released two new features for Unity Catalog Semantics: query-time joins and relationship constraints. These capabilities allow AI agents and business intelligence tools to discover and compose governed business metrics directly in SQL at query time, without requiring data modelers to anticipate every possible metric combination in advance. The features are now in Beta.

Key facts

  • New features: Unity Catalog Semantics now includes query-time joins and relationship constraints.
  • Goal: Enable AI agents to compose governed business metrics directly in SQL at query time.
  • Availability: Both features are now in Beta.
  • Approach: Data modelers define relationships between metric views using SQL informational constraints.
  • Benefit: Agents can answer new business questions using centrally governed metric definitions without monolithic semantic models.

Details

The new query-time joins feature allows metric views to be joined with other metric views, tables, and views in ordinary SQL. The SQL engine protects measures from join-induced duplication, even across many-to-many joins, enabling metrics and dimensions from multiple data sources to be combined on the fly. Relationship constraints allow data modelers to define relationships between metric views directly in Unity Catalog using familiar SQL informational constraints. These constraints enable agents and BI tools to discover how metric views can be joined, allowing for the discovery of governed metrics at query time. This approach contrasts with traditional semantic models, which bring together tables, relationships, and metrics for a fixed set of business questions. With AI agents, the scope of analysis is increasingly determined at query time, and anticipating every combination of metrics and dimensions at modeling time would require unwieldy or redundant semantic models.

Why it matters

This development is significant for organizations adopting AI agents for data analysis. It addresses a key challenge: the need to govern and combine metrics that are defined and governed independently by different teams. By enabling agents to discover and compose these metrics at query time, organizations can maintain a single source of truth for their business definitions while still allowing for flexible, ad-hoc analysis. This could reduce the overhead of creating and maintaining overlapping semantic models, allowing data teams to focus on defining high-quality metrics rather than anticipating every possible user question.

What's next

Databricks indicates a continued commitment to openness. Users can get started by reading the product documentation for query-time joins and relationship constraints.

Sources

Original source: Databricks blog

Part of a larger trend: SQL evaluation metrics for AI agents

Industry ·

EU fines Meta up to 6% of turnover over scam ads

The European Commission warns Meta of a massive fine for failing to protect users from billions of scam ad impressions, including AI-generated content impersonating public figures.

1 source

Found an error? Report it.