Skip to main content

Module dbmv

Module dbmv 

Source
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§

DBMVDimension
Dimension definition in a metric view
DBMVDocument
DBMV Document — wrapper envelope for multiple metric views
DBMVJoin
Join definition (supports recursive nesting for snowflake schemas)
DBMVMaterialization
Materialization configuration for a metric view
DBMVMaterializedView
Pre-computed materialized view definition
DBMVMeasure
Measure definition in a metric view
DBMVMeasureFormat
Format specification for a measure
DBMVMetricView
Databricks Metric View definition
DBMVWindow
Window function specification for a measure