Expand description
Databricks Metric Views (DBMV) model
Defines the data structures for Databricks Metric Views — a semantic layer format that transforms raw tables into standardised business metrics.
§File Format
DBMV documents use the .dbmv.yaml extension and contain one or more
metric view definitions per file, wrapped in an SDK envelope format.
The envelope uses camelCase keys (apiVersion, kind, metricViews)
while the inner Databricks-native content uses snake_case keys
(display_name, materialized_views).
§Example
apiVersion: v1.0.0
kind: MetricViews
system: my-databricks-system
metricViews:
- name: orders_metrics
source: catalog.schema.orders
dimensions:
- name: order_date
expr: order_date
measures:
- name: total_revenue
expr: SUM(revenue)Structs§
- DBMV
Dimension - Dimension definition in a metric view
- DBMV
Document - DBMV Document — wrapper envelope for multiple metric views
- DBMV
Join - Join definition (supports recursive nesting for snowflake schemas)
- DBMV
Materialization - Materialization configuration for a metric view
- DBMV
Materialized View - Pre-computed materialized view definition
- DBMV
Measure - Measure definition in a metric view
- DBMV
Measure Format - Format specification for a measure
- DBMV
Metric View - Databricks Metric View definition
- DBMV
Window - Window function specification for a measure