Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

Databricks adds query-time metric composition features

AI summary

Databricks Blog announced two features for Unity Catalog Semantics. Metric views can now be joined with other metric views, tables and views in ordinary SQL at query time, while the SQL engine protects measures from duplication introduced by joins, including many-to-many joins. Named, directional relationship constraints can also be defined directly in Unity Catalog, allowing agents and BI tools to discover relationships and generate joins across independently governed metric views. Support for SQL joins between metric views within metric-view source for more flexible multi-fact definitions is still coming soon.

In-depth insight

The features let AI agents combine independently governed business metrics in ordinary SQL at query time while retaining governed measure logic and preventing join-induced aggregation duplication. Relationship constraints also give agents and BI tools a way to discover how separately governed metric views relate.

Traditional semantic models bring together the tables, relationships, and metrics needed to answer a set of business questions. This approach has worked well for BI, where the scope of analysis is often known when a model is built. But with AI agents, the scope of analysis is increasingly determined at query time. Users can ask questions spanning sales, support tickets, and product usage, even when the corresponding metrics are defined and governed independently by different teams. Anticipating every combination of metrics and dimensions at modeling time would require either unwieldy semantic models or a proliferation of redundant ones.

At Databricks, we’re taking a different approach to semantic modeling. In April, we released Unity Catalog metric views, a SQL-first way to define and govern business metrics. Since then, many customers have adopted metric views as the foundation of their semantic layer.

Today, we're excited to announce two new features in Unity Catalog Semantics that enable agents to compose independently governed metrics directly in SQL at query time:

  • **Query-time joins.**Metric views can now 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, allowing metrics and dimensions from multiple data sources to be combined on the fly. To learn more about query-time joins please read the product documentation.
  • Relationship constraints. Using familiar SQL informational constraints, data modelers can now define relationships between metric views directly in Unity Catalog. Agents and BI tools can discover these relationships and use them to generate joins across independently governed metric views. To learn more about relationship constraints joins please read the product documentation.

#Databricks#Unity Catalog Semantics#Unity Catalog metric views#Databricks Genie#Tableau#Power BI

Original · 13 min readRead the original
Group chat

No comments yet. Start the conversation.