Dimensions
Define semantic model dimensions, formatting, granularities, semantic behavior, and AI context.
You can use the dimensions parameter within a semantic model to define dimensions. dimensions: is a required, non-empty list. Vulcan rejects a semantic model with no dimensions.
Each item can be a bare string or an object. A bare string is shorthand for { name: <value> } and must match a column in the underlying Vulcan model:
dimensions:
- plan_type
- status
- emailEvery dimension requires name. Use the full object form when you need description, tags, terms, format, granularities, behavior, ai_context, or public:
dimensions:
- name: signup_date
description: When the user signed up
tags:
- temporal
- acquisition
terms:
- customer.signup_date
- name: plan_type
behavior:
type: categoricalParameters
Every field a dimension supports, one section per key.
name
The identifier of a dimension, matching a column on the underlying physical model. Must be unique among dimensions within a semantic model and follow the naming rules (^[a-zA-Z_][a-zA-Z0-9_]{0,63}$).
description
Human-readable explanation of what the dimension represents. Optional.
tags
Categorization labels for the dimension. Validated against ^[a-zA-Z0-9.:_-]+$ and normalized to lowercase.
terms
Business glossary references for the dimension, typically dotted FQNs. Validated against ^[a-zA-Z0-9._-]+$ and normalized to lowercase.
ai_context
Structured hints for AI/LLM consumers on this dimension: instructions, synonyms, caveats, and worked examples. See AI context for the full field reference.
public
Controls whether the dimension is exposed to consumers. Defaults to true.
format
A free-form display hint for how consumers should render the dimension's values, such as percent or currency. Optional. Vulcan stores this as an opaque string and does not validate or interpret it; formatting is applied by the consuming BI tool or client.
behavior
Semantic classification of the dimension's role.
behavior.type
Use for
identifier
Primary keys, foreign keys, IDs
categorical
Enums, status fields, type columns, grouping columns
bucketing
Numeric range buckets
ordinal
Ordered categories (rank, tier level)
granularities
For timestamp-like dimensions, attach one or more named time buckets.
name
Yes
Granularity identifier, unique within the dimension; follows the same naming rules as other identifiers.
interval
Yes
A positive duration matching \d+ (minute|hour|day|week|month|year)s?, for example 15 minutes, 1 day, 1 month.
offset
No
Free-form string; not validated against a fixed grammar.
origin
No
Free-form string; not validated against a fixed grammar.
description
No
Human-readable explanation of the granularity.
ai_context
No
AI/LLM hints scoped to this granularity.
Validation
DimensionSpec validates dimension definitions during vulcan plan. It checks that:
The
dimensionslist on a semantic model is present and non-emptyEach
nameis a valid identifierEach
granularities[*].intervalmatches the positive-duration grammarEach
behavior.typeis one ofidentifier,categorical,bucketing, orordinalDimension names are unique within the semantic model
Each
granularities[*].nameis unique within its dimension
Related pages
Semantic models for how a dimension fits into the full spec
Policies for row filters, column masks, and physical-model
column_mask_expressionsAI context for adding AI/LLM guidance to a dimension
Last updated
Was this helpful?