Skip to content

03-data-modeling ​

Pages read: 42 (list of paths at the bottom)

Ground truth: Cube Core v1.8.35 in container cubebi-cube (@cubejs-backend/schema-compiler 1.8.35). Checked with read-only grep against schema-compiler/dist/src/compiler/{CubeValidator,CubeToMetaTransformer,CubeEvaluator,ViewGroupEvaluator,DataSchemaCompiler,transpilers/CubePropContextTranspiler}.js, server-core/dist/src/core/{CompilerApi,DevServer}.js, shared/dist/src/env.js and the Tesseract native binary native/native/index.node.

Main finding: almost everything in this slice that is model syntax compiles and runs in Core 1.8.35. This includes access policies with data masking and conditional masking, view groups, hierarchies, calendar cubes, multi-fact views, join aliases, dimension links, default_filters, dynamic formats and currency. Tesseract is the default planner (CUBEJS_TESSERACT_SQL_PLANNER defaults to true in env.js). Cloud's additions are the tooling around the model (IDE, Visual Model, dev-mode branches, Content Validator, Access Policies viewer, Model Configuration UI) and the consumers of some model keys (the AI agent reads meta.ai_context, workbooks read meta.auto_run, meta.default_ui_filters and dimension links drill-ins, and Cloud maps users to groups and userAttributes).


Data model fundamentals: cubes, members, syntax, naming, references ​

  • Docs: pages/docs/data-modeling/overview.md, cubes.md, concepts/syntax.md; pages/reference/data-modeling/cube.md, segments.md
  • What it does:
    • Files live under model/ (configurable: schema_path, repository_factory). Use .yml (with Jinja) or .js, and you can mix them. Convention: model/cubes, model/views, view groups next to views.
    • Naming rules: a name starts with a letter, uses only [A-Za-z0-9_], and is not a Python reserved word. Cube and view names are unique across the model. Member names (measures, dimensions, segments, pre-aggs, hierarchies) are unique within their cube. Folder names are unique within their view. The DAX API forbids names that clash with date-hierarchy column names.
    • Cube parameters: name, sql | sql_table, sql_alias, extends, data_source, title, description, public, refresh_key {sql | every (interval or cron) | timezone}, meta, calendar, joins, dimensions, measures, segments, hierarchies, pre_aggregations, access_policy.
    • Reference syntax: bare column, {member}, {cube}.column, {cube.member}, join-path refs {a.b.d.id}, {CUBE}, {time_dim.granularity}, {cube.sql()}. JS uses ${...}. In YAML, escape literal braces with \{. Outside SQL params, members are referenced bare (CUBE.status).
    • Cube auto-parenthesises referenced compound member SQL to keep operator precedence. It does not parenthesise top-level snippets (GitHub issue 6373).
    • Default refresh_key: every: 2 minute for BigQuery, Athena, Snowflake, Presto and Firebolt; 10 second for all other sources. An interval is turned into FLOOR(EPOCH/interval) SQL and checked about 10 times per interval (at least every 1 s, at most every 5 min).
    • Segments are named WHERE predicates (name, sql, description, public) and are queried through segments: [...].
  • Availability: CORE. Evidence: all keys are in CubeValidator.js joi schemas. No plan tier stated.
  • Core building blocks to use: schema-compiler, /v1/meta, /v1/load, /v1/sql, SQL API.
  • To build on Core: nothing to build. Effort: none.
  • Gotchas: setting primary_key: true flips the default of public to false. SECURITY_CONTEXT in model code is deprecated; use query_rewrite or access policies instead.

Dimensions (types, case, sub-queries, geo, switch, primary keys) ​

  • Docs: pages/docs/data-modeling/dimensions.md; pages/reference/data-modeling/dimensions.md
  • What it does:
    • Types: time | string | number | boolean | switch | geo.
      • geo takes latitude.sql and longitude.sql.
      • switch takes only values (no sql). It needs Tesseract, and /v1/meta reports it as type: string with its values.
    • Parameters: case.when[{sql,label}] / else.label, title, description, public, meta, order (asc|desc), primary_key (several primary keys make a composite key), sub_query, propagate_filters_to_sub_query, mask, granularities, time_shift (calendar cubes only), links, format, currency.
    • Proxy dimensions reference other dimensions, including ones in joined cubes. Subquery dimensions (sub_query: true) turn another cube's measure into a per-row value (a correlated subquery done through joins).
    • Default granularities: year, quarter, month, week (Monday start), day, hour, minute, second.
  • Availability: CORE. Evidence: CubeValidator.js has geo, switch, propagateFiltersToSubQuery, currency and order:. CubeToMetaTransformer.js emits currency, order, links and synthetic in /v1/meta.
  • Core building blocks to use: /v1/meta dimension metadata.
  • To build on Core: nothing to build. Effort: none.
  • Gotchas: currency is only valid on number dimensions.

Custom granularities ​

  • Docs: pages/reference/data-modeling/dimensions.md (granularities), docs/data-modeling/dimensions.md, concepts/syntax.md
  • What it does:
    • Defined as granularities: [{name, title?, interval, offset? | origin?}] on time dimensions, e.g. interval: 1 week, offset: -1 day, or origin: "2025-04-01". Can be referenced as {created_at.sunday_week} and used in pre-aggregation granularity.
    • A sql: override is allowed only under a default-granularity name. Otherwise compilation fails with "must be named after one of the predefined granularities".
    • Supported sources: Athena, Redshift, DuckDB, Databricks, BigQuery, ClickHouse, MSSQL, MySQL, Postgres, Snowflake.
    • The REST API can query a custom granularity by name. The SQL API, GraphQL and BI tools cannot; they need a proxy dimension.
  • Availability: CORE. Evidence: that error string is in CubeValidator.js.
  • Core building blocks to use: REST timeDimensions.granularity, proxy dimensions.
  • To build on Core: nothing to build.
  • Gotchas: SQL API and BI tools need a proxy dimension for each custom granularity.

Display metadata: format, currency, title/description, order ​

  • Docs: pages/reference/data-modeling/dimensions.md (format, currency, order), measures.md (format, dynamic format, currency)
  • What it does:
    • Dimension formats:
      • string: imageUrl, link, and {type: link, label}
      • number: number[_N] | percent[_N] | currency[_N] | abbr[_N] | accounting[_N] | id, or a d3-format string
      • time: a strftime / d3-time-format string
    • Measure formats are the same named formats or d3 strings. _N is the maximum number of decimals (0–6, default 2).
    • Dynamic format: format: {sql: ...} is an aggregate string expression evaluated per row. It compiles into a hidden <measure>___format measure that obeys access policies. The DAX API uses it for Power BI.
    • currency: ISO 4217 code, numeric types only.
    • Workbook rendering: link renders as a clickable link only for http, https and mailto. imageUrl renders a thumbnail only for https and data:image/*; the image is fetched by the browser and Cube does not proxy it. Thumbnails are clickable only if links exist.
  • Availability: CORE+CLOUD. Core compiles the keys, creates the ___format synthetic measure (CubeSymbols.js) and exposes format, formatDescription and currency in /v1/meta (CubeToMetaTransformer.js). Cloud adds the rendering in Workbooks/Explore, image thumbnails, the Style-tab overrides and DAX formatting.
  • Core building blocks to use: /v1/meta format, formatDescription and currency; query the ___format member next to the measure.
  • To build on Core: a front-end formatter (d3-format and d3-time-format), image and link cell renderers. Effort: S.
  • Gotchas: the dynamic-format SQL must aggregate. To keep pre-aggregation matching, it should reference additive measures only.
  • Docs: pages/docs/data-modeling/dimensions.md (Links), pages/reference/data-modeling/dimensions.md (links)
  • What it does:
    • links: [{name, label, url | dashboard, icon (Tabler name), primary, target (blank|self), params: [{key, value}]}]. url and dashboard are mutually exclusive, and at most one link per dimension can be primary.
    • Each link compiles to a hidden synthetic dimension <dim>___link_<name>_url. It is added to the query automatically and evaluated per row. params values are URL-encoded with the database's encoding function.
    • A dashboard: link generates the URL /dashboard/<slug>?params. In Cloud the slug is resolved per deployment, and each param becomes an equality filter on the target dashboard's view member (a cube path is auto-resolved to the view member). An unknown slug is skipped.
    • UI: a left-click on a cell opens a menu (all links, Copy value, Drill down on measures). The primary link renders inline on the cell. url links default to target: blank, drill-ins to self. Cmd/Ctrl-click opens a new tab. A row whose link URL is null drops that link from its menu.
    • Requires Cube v1.6.53 or later; honouring target on drill-ins requires v1.7.5 or later.
  • Availability: CORE+CLOUD. Plan not stated.
    • Core: LinksSchema with .oxor('url','dashboard') in CubeValidator.js, the ___link_ synthetic dimensions in CubeSymbols.js, and links emitted in /v1/meta.
    • Cloud: the table cell menu, the dashboard-slug registry and the drill-in navigation and filtering.
  • Core building blocks to use: /v1/meta links and the synthetic flag. Synthetic ___link_*_url columns come back in /v1/load results.
  • To build on Core: a table cell-menu UI, a dashboard registry with slugs (your own storage) and a drill-in router that turns params into filters. Effort: S–M.
  • Gotchas:
    • Every reference in a link URL must have a single value per value of the dimension, or rows are duplicated.
    • Synthetic columns must be hidden in your UI.

Measures: types, filters, calculated measures, drill members ​

  • Docs: pages/docs/data-modeling/measures.md; pages/reference/data-modeling/measures.md
  • What it does:
    • Types:
      • count (sql optional)
      • count_distinct
      • count_distinct_approx (HLL, additive)
      • sum, avg, min, max
      • number (arithmetic over other measures)
      • number_agg (custom aggregate; Tesseract only)
      • string, time, boolean (aggregate expressions)
    • filters: [{sql}] compiles to CASE WHEN. Calculated measures can reference other measures in the same or joined cubes.
    • Other parameters: title, description, public, meta, mask, format, currency, drill_members.
    • A drill-down query groups by the listed dimensions and computes the listed measures. The drilled measure is not added automatically, and segments are ignored.
  • Availability: CORE. Evidence: CubeValidator.js (numberAgg, drillMembers, mask).
  • Core building blocks to use: /v1/meta drillMembers; the REST drill-down pattern.
  • To build on Core: nothing to build (a drill-down UI belongs to another slice).
  • Gotchas: count_distinct is not additive, so it cannot be rolled up in pre-aggregations. Use count_distinct_approx when roll-ups matter.

Multi-stage measures (rolling window, period-to-date, time shift, grain, filter override, ranking, case/switch) ​

  • Docs: pages/docs/data-modeling/measures.md; pages/reference/data-modeling/measures.md
  • What it does:
    • rolling_window:
      • {type: fixed|to_date, granularity, trailing, leading, offset: start|end}. trailing and leading accept N unit or unbounded.
      • to_date requires granularity and takes none of offset, trailing or leading.
      • year_to_date, quarter_to_date and month_to_date are deprecated, and Tesseract ignores them.
      • Tesseract does not need a date range if the source can generate a time series. The date range is still required on other sources and for custom granularities on BigQuery, MSSQL and Snowflake. MySQL needs CUBEJS_DB_MYSQL_USE_GENERATED_TIME_SERIES.
    • multi_stage: true: each stage becomes CTEs.
      • time_shift: [{time_dimension?, type: prior|next, interval | name}]. name refers to a named calendar-cube shift.
      • grain: {keep_only | exclude, include} controls the inner GROUP BY (percent of total, ranking, nested aggregates). It replaces the legacy group_by, reduce_by and add_group_by.
      • filter: {exclude, keep_only, include (query-style filters with nested and/or), mode: relative|fixed} overrides inherited filters.
      • order_by with type: rank ranks rows.
      • case: {switch: {CUBE.switch_dim}, when: [{value, sql}], else: {sql}} requires multi_stage.
    • Declare grain on the measure that combines its inputs. If two inputs both declare the same grain.include and the combining measure does not, they are combined with a silent cross join.
    • For case measures across cubes, use one shared switch dimension; one switch per cube produces extra rows.
  • Availability: CORE. The docs mark it as powered by Tesseract, which is the default in 1.8.x. Evidence: CubeValidator.js (multiStage, grain, keepOnly, timeShift, switch), CUBEJS_TESSERACT_SQL_PLANNER defaults to true, and Tesseract is in native/index.node.
  • Core building blocks to use: Tesseract SQL planner.
  • To build on Core: nothing to build.
  • Gotchas:
    • A time_shift, or a filter with exclude or keep_only, stops a query filter from lifting conditional masks (see access policies).
    • Setting CUBEJS_TESSERACT_SQL_PLANNER=false disables many of these features.

Calendar cubes (retail and fiscal calendars) ​

  • Docs: pages/docs/data-modeling/concepts/calendar-cubes.md; reference/data-modeling/cube.md (calendar), dimensions.md (time_shift, granularities.sql), context-variables.md (time_shifts in FILTER_PARAMS)
  • What it does:
    • calendar: true on a cube built over a calendar table. Its time dimension can:
      • override default granularities with sql columns (e.g. 4-5-4 months)
      • define time_shift: [{name?, type, interval, sql?}] that maps a date to a pre-computed prior date
    • Requirements:
      • exactly one primary_key, and it must be the time dimension used to join the calendar (a second primary key fails at query time: "only one is allowed for calendar cubes")
      • the join dimension of the fact cube must also be of type time
    • Several date columns: join the calendar once per date column using join alias (e.g. purchase_calendar, cancellation_calendar). Queries then use paths such as subscriptions.cancellation_calendar.date.
    • Measures reference shifts by interval or by name. FILTER_PARAMS.<cal>.<dim>.time_shifts.<shift>.filter(fn) lets you push down the shifted range.
    • A pre-aggregation must declare the overridden granularity itself. A finer rollup gives wrong (Gregorian) buckets or fails.
  • Availability: CORE (Tesseract; not default before v1.7.0). Evidence: calendar: in CubeValidator.js and the error string "only one is allowed for calendar cubes" in native/index.node.
  • Core building blocks to use: Tesseract, join aliases, FILTER_PARAMS.
  • To build on Core: nothing to build.
  • Gotchas: a granularity override can only use a default granularity name. Use interval for new names such as fiscal_week.

Joins: relationships, direction, aliases, fan/chasm traps ​

  • Docs: pages/docs/data-modeling/joins.md; pages/reference/data-modeling/joins.md
  • What it does:
    • joins: [{name, alias?, relationship: one_to_one|one_to_many|many_to_one, sql}]. The legacy names has_one, has_many and belongs_to still work.
    • All joins are directed LEFT JOINs. There is no INNER, RIGHT or FULL join; emulate them with a set filter or in cube SQL.
    • Join paths are resolved with Dijkstra. When several paths are possible, members are collected in this order: measures, dimensions, segments, time dimensions. Views pin the path.
    • A primary key is required. Fan and chasm traps are handled with a distinct-key dedup subquery, and such queries are non-additive for pre-aggregation matching.
    • alias (v1.8.7+, Tesseract):
      • joins the same cube several times (role-playing dimensions); each alias is its own SQL copy (orders__customer)
      • queried as orders.customer.city
      • cannot equal a cube or member name, cannot contain __, and cannot collide after snake-casing
      • an extends child cannot redeclare an aliased join
      • pre-aggregations of the joined cube do not serve queries that come through an alias, and rollup_join cannot use aliases
      • members reached through an alias appear in metadata only through views
    • Without aliases, only one join per pair of cubes is allowed. The workaround is an extends copy of the cube.
  • Availability: CORE. Evidence: alias in the CubeValidator.js joins schema.
  • Core building blocks to use: views with join_path.
  • To build on Core: nothing to build.
  • Gotchas: access policies apply to every aliased copy of a cube. Row filters and masks are applied to each copy independently.

Views (curation, join paths, view members, folders, default_filters, extends) ​

  • Docs: pages/docs/data-modeling/views.md, extending-cubes.md; pages/reference/data-modeling/view.md
  • What it does:
    • cubes: [{join_path, includes ("*" or a list of names or {name, alias, title, description, format, meta}), excludes, prefix}]. Included members do not inherit public: false from the cube.
    • View-level measures and dimensions may only combine members the view already includes, referenced as {CUBE.member}. A view member that reads a column fails at compile time ("defines own member"). Use multi_stage when the members come from different cubes.
    • folders: [{name, includes: [member | {join_path} | nested folder]}]. Folders do not overlap. For tools that cannot show nesting, the structure is flattened, or kept as path-like names via CUBEJS_NESTED_FOLDERS_DELIMITER.
    • default_filters: [{member, operator (REST operators), values, unless: [members]}] are enforced on every query against the view, including filter suggestions. Querying or filtering any member listed in unless releases the filter.
    • extends on views inherits the parent's cubes includes, view measures and dimensions, folders, access policies (child policies are added, not replaced) and other unset parameters. A child cannot remove an inherited member.
    • public can be dynamic, e.g. COMPILE_CONTEXT.security_context.is_finance.
    • A view may span data sources. A query touching more than one data source needs a covering rollup_join.
  • Availability: CORE. Evidence: defaultFilters with unless and folders in CubeValidator.js, defaultFilters handled in CubeEvaluator.js, and CUBEJS_NESTED_FOLDERS_DELIMITER in env.js.
  • Core building blocks to use: /v1/meta (folders, nested folders), default_filters.
  • To build on Core: nothing to build. A folder tree UI is S.
  • Gotchas: in a view, member-level policies of the underlying cubes are ignored, but their row-level filters and masks still apply.

View meta keys consumed by the Cloud UI: meta.auto_run, meta.default_ui_filters ​

  • Docs: pages/reference/data-modeling/view.md (meta.auto_run, meta.default_ui_filters); docs/data-modeling/configuration.md (Auto-run)
  • What it does:
    • auto_run: false makes workbook and Explore tabs on that view wait for Run query. Precedence: the user's per-tab toggle, then the view's meta.auto_run, then the deployment-wide CUBEJS_AUTO_RUN_MODE (default true).
    • default_ui_filters are editable filters pre-filled when the view is selected in workbooks, the React Embed SDK or the Sheets/Excel add-in. Each entry is {member, operator, value|values, measure?}.
      • Operators use filter-bar labels (is, contains, between, top n, in the quarter, ...). They are case- and whitespace-insensitive, and REST aliases (equals, gte, inDateRange) are also accepted.
      • Relative date grammar: now, today, yesterday, this <unit>, N <units> ago|from now, start of N <units> ago|from now, ISO dates and numbers.
      • On dates, is means equality at the value's grain. Both between bounds are inclusive, except that a range ending at a period start is exclusive at the end.
      • Relative values resolve at query time.
      • An invalid entry is dropped with a browser-console warning.
      • The filters apply only to new queries; they are never enforced through APIs.
  • Availability: CLOUD-ONLY behaviour on top of a Core passthrough.
    • Core: meta is joi.any(), so these keys compile and are returned in /v1/meta. Core contains no code reading auto_run or default_ui_filters. CUBEJS_AUTO_RUN_MODE exists in shared/env.js (autoRunMode, default true), but no other Core package reads it.
    • Cloud: the workbook and embed UI behaviour.
  • Core building blocks to use: /v1/meta view meta; REST filter operators. default_filters covers the enforced variant.
  • To build on Core: front-end logic in your query builder: read meta.auto_run, plus a parser that turns the relative-date default_ui_filters grammar into REST filters. Effort: S–M (the relative-date grammar and its inclusive/exclusive edge cases are most of the work).
  • Gotchas: the docs say these keys may move out of meta in the future.

Multi-fact views (and SQL API view-join merging) ​

  • Docs: pages/docs/data-modeling/multi-fact-views.md
  • What it does:
    • When a view includes measures from several fact cubes that share dimension cubes, Cube picks the root at query time. It runs one aggregating subquery per fact, then FULL JOINs them on the shared dimensions; missing values are NULL.
    • Requirements:
      • each fact has direct joins to every shared dimension cube
      • dimension cubes appear at root join_paths
      • use prefix to tell same-named fact measures apart
      • a fact that lacks a key can use NULL AS fk
    • Filters:
      • filters on shared dimensions are pushed into every subquery
      • measure filters become HAVING after the join
      • fact-specific filters and segments make the query fail with "Can't find join path"; use the measure's own filters instead
    • A view measure that combines facts must be multi_stage. Without it the query fails with "Can't find join path".
    • SQL API: joining two or more views on a shared dimension and grouping by it is merged into one multi-fact query.
      • The join type maps to the result: FULL keeps all keys, INNER keeps keys in both, LEFT/RIGHT keep one side.
      • A join on DATE_TRUNC must use the same grain as the GROUP BY.
      • Ungrouped SELECT * queries are not merged.
  • Availability: CORE (Tesseract; not default before v1.7.0). Evidence: multi-fact symbols are in native/index.node, and Tesseract is the default in 1.8.35.
  • Core building blocks to use: views, SQL API, Tesseract.
  • To build on Core: nothing to build.
  • Gotchas: every grouped dimension, filter and segment must be reachable from every fact.

View groups ​

  • Docs: pages/docs/data-modeling/view-groups.md; pages/reference/data-modeling/view-group.md
  • What it does:
    • A top-level view_groups: [{name, title, description, includes: [view names | nested group objects]}]. A view can belong to several groups.
    • Also supported: a viewGroup / viewGroups key on the view itself, and the view_group() global in JS.
    • /v1/meta returns a top-level viewGroups array (includes keeps the authored order), and each grouped view carries a viewGroups: [names] array.
  • Availability: CORE. Evidence: ViewGroupEvaluator.js, viewGroupSchema in CubeValidator.js, viewGroups in api-gateway/gateway.js and CubeToMetaTransformer.js, and view_group registered in DataSchemaCompiler.js.
  • Core building blocks to use: /v1/meta viewGroups.
  • To build on Core: a catalog or navigation UI. Effort: S.
  • Gotchas: none found.

Hierarchies ​

  • Docs: pages/reference/data-modeling/hierarchies.md; docs/data-modeling/dimensions.md
  • What it does:
    • hierarchies: [{name, title, levels: [dims from least to most granular, may include joined-cube dims], public}] on cubes.
    • Hierarchies are exposed through views via includes. Whether they are displayed depends on the visualization tool, and the Playground can preview them.
  • Availability: CORE. Evidence: hierarchies in CubeValidator.js, and CubeToMetaTransformer.js emits hierarchies.
  • Core building blocks to use: /v1/meta hierarchies.
  • To build on Core: drill-down UI only (other slice).
  • Gotchas: none found.

Extending cubes and views; polymorphism; FILTER_PARAMS in parents ​

  • Docs: pages/docs/data-modeling/extending-cubes.md; reference/data-modeling/cube.md (extends)
  • What it does:
    • A child cube merges the parent's measures, dimensions, segments and joins. A child may redefine an inherited join, which replaces it.
    • Inside the parent, use {CUBE} rather than the parent's name.
    • When the parent uses FILTER_PARAMS, either override sql in each child, or list the children's FILTER_PARAMS in the parent. Unused ones render as 1 = 1.
    • In JS, a nameless cube() returns an unregistered reference that can be used as a base.
  • Availability: CORE.
  • Core building blocks to use: model extends.
  • To build on Core: nothing to build.
  • Gotchas: none found.

Context variables: CUBE, FILTER_PARAMS, FILTER_GROUP, SQL_UTILS, COMPILE_CONTEXT, SECURITY_CONTEXT ​

  • Docs: pages/reference/data-modeling/context-variables.md
  • What it does:
    • FILTER_PARAMS.cube.member.filter('col' | fn) pushes query filter values into cube SQL. It must be a top-level WHERE expression.
      • A function receives raw driver strings; a date range passes two arguments.
      • It can name a segment, in which case the whole predicate is rendered, or 1 = 1 when the segment is not selected.
      • It can address a calendar time shift through .time_shifts.<name>.filter(fn).
    • Segment and time-shift bindings work only with Tesseract; on the legacy planner they render as 1 = 1.
    • FILTER_GROUP(...) is required when there are several FILTER_PARAMS, so that OR and boolean query filters render correctly.
    • SQL_UTILS.convertTz(col) converts a timestamp column to the request's time zone. Do not use such dimensions as timeDimensions, or the conversion is applied twice.
    • COMPILE_CONTEXT holds securityContext plus anything from extend_context. It is evaluated once per context_to_app_id key.
    • SECURITY_CONTEXT (with requiredFilter) is deprecated and carries an SQL injection risk.
  • Availability: CORE.
  • Core building blocks to use: context_to_app_id, extend_context, scheduled_refresh_contexts.
  • To build on Core: nothing to build.
  • Gotchas: COMPILE_CONTEXT is per app id, not per user. Per-user logic belongs in query_rewrite or access policies.

Dynamic data models: Jinja + Python (YAML) and JavaScript ​

  • Docs: pages/docs/data-modeling/dynamic/index.md, jinja.md, javascript.md, schema-execution-environment.md, code-reusability-export-and-import.md
  • What it does:
    • YAML/Jinja:
      • loops, macros, {% import "macros/x.jinja" as m %} (path relative to model/)
      • auto-escaping wraps substituted values in JSON quotes, so use | safe (or a SafeString subclass) whenever a value is concatenated with other text
      • for multi-line SQL from macros use indent(N) | safe, in that order
    • Python:
      • model/globals.py uses TemplateContext (add_variable, add_function / @function, add_filter / @filter)
      • @memo caches a call once per argument set per compilation; sync and async are supported
      • local module imports work
      • requirements.txt is pip-installed at startup; native extensions need a custom image
    • JavaScript:
      • asyncModule(async () => { ... cube(...) }) runs at the end of each compile stage; sql and drill_members must be functions there
      • memo(key?, fn) caches per compilation across stages; calling cube, view, view_group, context or asyncModule inside memo throws
      • ES6 import and export are transpiled to the VM's require (which can import from parent directories)
      • no process or console
    • schema_version (which may be async, e.g. per tenant) triggers recompilation. Dynamic cubes need data_source plus a driverFactory when several databases are used.
  • Availability: CORE+CLOUD.
    • Core: Jinja, Python, TemplateContext, memo and SafeString are embedded in native/index.node (def memo(func), class SafeString); JS memo and view_group are in DataSchemaCompiler.js.
    • Cloud: Jinja Preview in the IDE. The docs say Core has no rendered-YAML preview (GitHub issue 8134).
  • Core building blocks to use: schema_version, context_to_app_id, repository_factory, driver_factory, /v1/meta to inspect the compiled result.
  • To build on Core: a Jinja-preview tool, i.e. a dev endpoint or CLI that renders templates with the same globals.py context. Effort: S–M (re-using Cube's renderer is not exposed as an API; you would re-implement the rendering with Jinja2 plus the TemplateContext registrations).
  • Gotchas: Jinja escaping errors surface as YAML parse errors far from their cause, which is why a preview tool matters.

Python helper packages: cube, cube_dbt, lkml2cube ​

  • Docs: pages/reference/data-modeling/cube-package.md, cube_dbt.md, lkml2cube.md
  • What it does:
    • cube (built in):
      • config object or decorator for cube.py options
      • TemplateContext
      • memo: argument matching by equality for hashables, lists, dicts and sets; other objects match only themselves; works only inside template-function calls
    • cube_dbt (PyPI):
      • loading: Dbt.from_file, Dbt.from_url or Dbt(dict)
      • .filter(paths, tags, names) (paths without the models/ prefix)
      • models: .models and .model(name), which skip ephemeral models
      • Model.{name, description, sql_table, columns, column, primary_key, as_cube(), as_dimensions(skip)}
      • Column.{name, description, sql, type (heuristic map, default string), meta, primary_key (from the primary_key tag), as_dimension()}
      • rendered snippets are pre-indented 4, 6 or 8 spaces
    • lkml2cube (PyPI CLI):
      • cubes converts LookML views to cubes (no joins); --parseonly dumps the parsed object
      • views converts explores to cubes and views with joins
  • Availability: CORE. Evidence: the cube package is in the native module; cube_dbt and lkml2cube are open-source PyPI packages. The docs give install instructions for both Core (pip install -r requirements.txt in the container) and Cloud (automatic).
  • Core building blocks to use: requirements.txt, Jinja templates.
  • To build on Core: nothing to build.
  • Gotchas: none found.

Security context, query_rewrite, COMPILE_CONTEXT (programmatic access control) ​

  • Docs: pages/docs/data-modeling/access-control/context.md, access-control/index.md
  • What it does:
    • A JWT in the Authorization header is verified (JWKS supported). Its claims become securityContext, which must be an object ("Cannot create proxy with a non-object" otherwise).
    • query_rewrite(query, ctx) adds mandatory filters, role-based filters or per-cube filters, or raises to deny.
    • context_to_app_id plus COMPILE_CONTEXT compile one model per tenant. Example: a Python masked() helper in globals.py, or dynamic public.
    • extend_context enriches the context.
    • Pre-aggregations that depend on COMPILE_CONTEXT need scheduled_refresh_contexts.
    • The Playground lets you set or build JWTs for testing.
    • cubeCloud is a reserved key in the security context. Cloud's "Enable Cloud Auth Integration" toggle injects the authenticated user's information.
  • Availability: CORE+CLOUD. Core has the whole mechanism (config options in config.md). Cloud adds Cloud Auth Integration, i.e. populating securityContext.cubeCloud from Cloud users, groups and attributes.
  • Core building blocks to use: check_auth, query_rewrite, extend_context, context_to_app_id, scheduled_refresh_contexts, CUBEJS_JWK_URL.
  • To build on Core: an identity provider that issues JWTs with user claims. To mimic Cloud, put cubeCloud.userAttributes and cubeCloud.groups into the token (see next section). Effort: S.
  • Gotchas: CUBEJS_DEV_MODE=true in Core disables JWT checks (see Development mode below).

Access policies (member-level, row-level, conditions, data masking) ​

  • Docs: pages/docs/data-modeling/data-access-policies.md, access-control/member-level-security.md, access-control/row-level-security.md; pages/reference/data-modeling/data-access-policies.md
  • What it does:
    • Policy shape: access_policy: [{group | groups, conditions: [{if}], member_level: {includes | excludes}, row_level: {filters | allow_all}, member_masking: {includes | excludes}}] on cubes or views.
    • Defaults and validation:
      • once any policy exists, groups without a policy are denied
      • group: "*" matches everyone
      • an empty member_level is rejected
      • member_masking requires member_level
    • Evaluation model (a 2-D space of members by rows):
      • members are the union across matching policies
      • for each queried member, its visible rows are the union of the row filters of the policies that grant it; the row sets of the queried members are then intersected
      • a member granted by no matching policy means denial (empty result)
    • Combination with other mechanisms:
      • member-level rules are AND-ed with public
      • in a view, only the view's member-level rules apply
      • row filters are AND-ed with query_rewrite, and a view's row filters are AND-ed with its cubes' row filters
    • Masking:
      • mask on a member is a static value or {sql} (default NULL; the global defaults are CUBEJS_ACCESS_POLICY_MASK_{STRING,NUMBER,BOOLEAN,TIME})
      • full access wins over masking
      • "conditionally unmasked": if a policy grants full access but has a row filter, the SQL becomes CASE WHEN rowFilter THEN value ELSE mask END
      • a query filter at least as strict as the policy's row filter lifts the mask, except when the query uses a time_shift or a multi-stage filter with exclude or keep_only
      • numeric range filters lift masks only on type: number members, with plain decimal bounds
      • a conditionally masked measure that is not grouped by the filter's members is fully masked
      • SQL masks on measures are not applied in ungrouped SQL API queries
    • Conditions: if is a Python expression in YAML (only and, or, not, member access and .includes()) or a full JS expression in JS models.
    • Row filters: use the REST filter format, including and and or. Numeric values must be decimals, so "007" is rejected.
  • Availability: CORE+CLOUD. Plan not stated.
    • Core: the full engine, in CubeValidator.js (accessPolicy, memberLevel, rowLevel, memberMasking with .with('memberMasking','memberLevel'), conditions, allowAll) and server-core/CompilerApi.js (policy union and intersection, maskedMembersSet, the conditional CASE WHEN masks, per-user /v1/meta visibility). The mask env vars are in env.js.
    • Cloud: automatic mapping of authenticated users to groups and user attributes.
    • The docs say userAttributes is Cloud-only. In fact, Core's CubePropContextTranspiler.js rewrites the shorthands userAttributes, user_attributes and groups to securityContext.cubeCloud.userAttributes and securityContext.cubeCloud.groups.
  • Core building blocks to use:
    • context_to_groups (without it the group set is empty, so only group: "*" policies ever match)
    • securityContext.* in filters and conditions
    • query_rewrite for anything policies cannot express
  • To build on Core:
    • a user, group and attribute store plus a JWT minter, and context_to_groups: ctx => ctx.securityContext.cubeCloud?.groups ?? []
    • to make Cloud-authored models (which use userAttributes.*) run unchanged, put cubeCloud: {userAttributes: {...}, groups: [...]} into the security context
    • Effort: S for the minimal version; M with an admin UI for users, groups and attributes.
  • Gotchas:
    • Policies on cubes do not restrict member access when the cube is queried through a view; put policies on views.
    • Range-filter unmasking on a number dimension built over a text column can leak rows.

Access Policies viewer ​

  • Docs: pages/docs/data-modeling/access-policies-viewer.md
  • What it does:
    • Model → Access Policies in the Cloud UI. Requires the PlaygroundRead permission. Read-only, and it follows the branch or build you are viewing (dev mode included).
    • List view: one row per group declared anywhere. * is shown as "All groups". Columns: Policies (count of cubes and views with an explicit policy, with a hover list) and Default policy (cubes covered by * plus cubes with no policy at all).
    • Detail view: one row per accessible cube or view. Columns:
      • Condition: count of conditions, or —
      • Member-level: Allow all / Deny all / Allow: list
      • Member masking: list of masked members
      • Row-level: Allow all / Filters on: dimensions
      • Member names are shortened to their last path segment.
    • It does not edit policies, show group membership or run preview queries.
  • Availability: CLOUD-ONLY. Evidence: Cloud UI instructions and a Cloud permission. Core /v1/meta does not expose policies (accessPolicy does not appear in CubeToMetaTransformer.js or gateway.js).
  • Core building blocks to use: run the compiler offline, i.e. load the model with @cubejs-backend/schema-compiler (prepareCompiler) in a Node script and read cubeEvaluator cube definitions (accessPolicy, already normalised with includes and excludes resolved). Alternatively parse YAML directly (this misses JS and Jinja models).
  • To build on Core: an introspection service plus a 2-table UI; optionally a "test as group" runner that mints JWTs and calls /v1/load with a dry run. Effort: M.
  • Gotchas: resolving includes: "*", excludes and view-versus-cube semantics yourself is error-prone. Use the compiler's evaluated output rather than raw YAML.

AI context (description and meta.ai_context) ​

  • Docs: pages/docs/data-modeling/ai-context.md; also mentioned in views.md, reference cube.md, view.md, measures.md, dimensions.md
  • What it does:
    • description is shown in the UI and also read by the agent.
    • meta.ai_context is read only by the agent. It is read on views, measures and dimensions; cube-level ai_context is ignored by the agent.
    • It is truncated silently at 2,000 characters.
    • A member-level ai_context can be overridden per view through includes: [{name, meta: {ai_context}}]; note that meta is overridden as a whole.
    • Guidance from the docs: prefer focused views, document which measure to prefer, synonyms and acronyms.
  • Availability: CORE+CLOUD.
    • Core: meta is joi.any() on every entity, and the include-level meta override is in CubeValidator.js ("Override the metadata of the included member as a whole"), so ai_context compiles and is returned in /v1/meta. There is no ai_context string anywhere in Core code.
    • Cloud: the AI agent (Analytics Chat) consumes it and applies the 2,000-character limit and the cube-level exclusion.
  • Core building blocks to use: /v1/meta (descriptions, meta.ai_context, view groups, folders), the REST or SQL API for execution.
  • To build on Core: an LLM agent that builds its prompt from /v1/meta: the view list, view ai_context, member descriptions and ai_context. It must apply the same precedence rules (the view's include override wins, cube-level is ignored) and a length cap. Effort: M for prompt assembly (the agent itself is another slice).
  • Gotchas: /v1/meta is already filtered to what the user can access, which is the correct scoping for the agent.

Model configuration (deployment defaults: time zone, row limits, timeout, auto-run) ​

  • Docs: pages/docs/data-modeling/configuration.md
  • What it does:
    • Settings → Configuration in Cloud is a typed UI over these environment variables:
      • CUBEJS_DEFAULT_TIMEZONE (default UTC, TZ database names)
      • CUBEJS_DB_QUERY_DEFAULT_LIMIT (default 10,000)
      • CUBEJS_DB_QUERY_LIMIT (hard cap, default 50,000; streaming SQL API queries may exceed it)
      • CUBEJS_DB_QUERY_TIMEOUT (default 10m; accepts 30s, 2h or seconds)
      • CUBEJS_AUTO_RUN_MODE
    • Saving restarts the dev-mode worker immediately; production picks up the change at the next build.
  • Availability: CORE+CLOUD. The four query env vars are Core (present in env.js). The UI and the restart orchestration are Cloud. Auto-run is used only by the Cloud UI: the env var is defined in Core but nothing reads it.
  • Core building blocks to use: environment variables, cube.js / cube.py.
  • To build on Core: a settings UI that writes env or config and restarts the container. Effort: S.
  • Gotchas: raising CUBEJS_DB_QUERY_LIMIT risks out-of-memory errors and denial of service.

Data Model IDE (browser code editor, branches, change review, model generation) ​

  • Docs: pages/docs/data-modeling/data-model-ide.md
  • What it does:
    • Model › IDE: a code editor over the deployment's Git repo.
    • The Dev mode button opens a branch-picker dialog (choose a branch or create a new one; committing to main is configurable).
    • Branch switcher: create a branch from another branch, delete the current branch (optionally on GitHub too), copy a ?branch= link.
    • Shared branches are visible to every user of the deployment.
    • Leaving with unsaved changes shows a warning (Go back / Discard / Save).
    • Changes tab:
      • per-file diff cards, with a selectable "Compare with" base
      • per-user "Viewed" marks; a file that changes afterwards shows "Changed since viewed" with only the incremental diff
      • after a squash, the full diff is shown
    • Generate data model wizard (in Visual Model, ⋮ menu): regenerating existing cubes renames the old files to .backup. Outside Premium it is available only when a deployment is created.
  • Availability: CLOUD-ONLY. The Generate-data-model wizard after deployment creation requires Premium or above.
  • Core building blocks to use: Core Playground dev endpoints (/playground/files, /playground/db-schema, /playground/generate-schema, /playground/test-connection, /playground/context; present in server-core/DevServer.js, dev mode only), hot reload in dev mode, /v1/meta for validation errors.
  • To build on Core:
    • a web IDE (e.g. Monaco) with YAML/JS language support
    • a Git service (libgit2 or GitHub API) for branches, diffs, commits and merges
    • per-user "viewed" state storage
    • per-branch Cube instances (see Development mode)
    • a schema generator (reuse /playground/generate-schema or your own introspection)
    • Effort: L.
  • Gotchas: Core's Playground file endpoints are unauthenticated and live only under CUBEJS_DEV_MODE, so do not expose them. Build your own authenticated file and Git API.
  • Docs: pages/docs/data-modeling/dev-mode.md
  • What it does:
    • Each user gets a personal dev branch and dev API endpoints that track the branch and hot-reload. Endpoints are listed under Status → API credentials. An embed session can target a branch with branchName.
    • Flow: Save all, then Commit (to the working branch), "Merge into <parent>" (shared branches) or "Publish to <deploy branch>". The default button depends on the branch.
    • Pull-request handling: shows "Pull request required" when GitHub branch protection or a ruleset blocks direct push, or when "Allow merging to this branch" is off. Branch protection is polled about every minute.
    • Commit messages: an optional AI-written message, generated from the diff against the target branch; falls back to Git's default merge message.
    • Sync: "Pull from <branch>" updates from the parent or remote. Conflicts show markers, with Commit & resolve or Don't resolve.
    • Deep links: ?branch=<name>&devmode=true. The parameters are stripped after use and do nothing without permission.
    • CLI-deployed deployments: dev-mode actions never trigger a production build; only cube deploy does.
    • Limitations: no autoscaling and no scheduled refresh on dev APIs.
    • Pre-aggregations: dev environments share production's Cube Store. Unchanged pre-aggregations are served from production tables. Changed ones are built on demand, separately. Large dev builds can evict older production tables.
  • Availability: CLOUD-ONLY. The page itself contrasts this with Core's CUBEJS_DEV_MODE=true, which is an authentication bypass: no JWT verification, unauthenticated Playground endpoints that can mint tokens and overwrite the model and .env, and an SQL API that accepts any credentials when CUBEJS_SQL_PASSWORD is unset.
  • Core building blocks to use: one Core instance (or context_to_app_id plus repository_factory) per branch. repository_factory can serve model files from a branch checkout keyed by a security-context claim such as branch. Combine with schema_version keyed to the branch HEAD for hot reload.
  • To build on Core: a branch-environment orchestrator (Git worktrees plus repository_factory, or per-branch containers), the commit/merge/publish UI and Git integration (with GitHub branch-protection detection), an LLM for commit messages, and per-branch JWT scoping. Effort: L.
  • Gotchas:
    • Never use Core dev mode as the multi-user dev environment.
    • Sharing one Cube Store between dev and production needs separate pre-aggregation schemas or prefixes to avoid evicting production tables.

Visual Model (no-code ERD modeler) ​

  • Docs: pages/docs/data-modeling/visual-modeler.md (also data-model-ide.md)
  • What it does:
    • Model › Visual Model: a canvas showing cubes as an ERD (pan, zoom, search) and views with their source cubes on the left.
    • Cubes: Add Cube, Generate Cube from a table picker, Edit dialog (Dimensions tab with Title, SQL, Type, Format), Add → Dimension / Measure / Access Policy, Relationships tab. Joins can be drawn by dragging between dimensions.
    • Views: Add view dialog (base cube, name, title, description, join paths).
    • Each dialog has a YAML mode. Editing automatically enters dev mode.
    • UI limits:
      • cannot edit meta, segments, hierarchies, refresh keys or folders
      • cannot add subquery dimensions, custom granularities, drill members, rolling windows or pre-aggregations
      • cannot delete cubes or views
      • only YAML files without Jinja or dynamic generation are editable
    • It replaces the earlier "Data Graph" feature.
  • Availability: CLOUD-ONLY. Plan: Premium and above.
  • Core building blocks to use: /v1/meta for rendering the graph (cubes, joins via connectedComponent, members); /playground/db-schema for table lists. Writing back means generating YAML (there is no Core write API).
  • To build on Core: a React Flow/ERD canvas, YAML AST round-tripping that preserves comments (e.g. yaml CST), form dialogs per entity, a DB introspection service, and integration with the IDE and branch system. Effort: L–XL.
  • Gotchas: round-tripping Jinja or JS models is not feasible; restrict editing to plain YAML as Cloud does.

Content Validator (find broken report and task references) ​

  • Docs: pages/docs/data-modeling/content-validator.md
  • What it does:
    • Data model → Content Validator tab. It validates in real time on open, with no background job.
    • Scope:
      • every workbook's draft reports and published dashboard snapshots, checked with the same semantic-SQL parser the report editor uses
      • the conditions of scheduled tasks (only when AI is available and only for tasks visible to the user)
      • branch-aware: validates against the dev, shared-branch or production model, and names the context in the header
      • ignores public and access policies; only truly missing members are flagged
    • Findings table: Content, State (Draft / Published / Scheduled task), Field, Error (e.g. No such field "orders.total", No such view "sessions_view"), Status (Missing / May be affected). Search box and All/Draft/Published/Scheduled filters.
    • In dev mode: a "New" badge and an "Introduced here / Pre-existing" filter. Free-text task instructions that mention a member removed on the branch are flagged "May be affected"; these are hints only and are not counted as broken.
    • Fixes:
      • draft reports: Open, Replace (searchable picker; "Replace in all affected reports"; a precise rewrite that leaves same-named members of other views alone; persists and re-validates) or Delete (with confirmation)
      • published snapshots and tasks: Open only
      • tasks can be edited only by their creator, an admin or the "Manage all scheduled tasks" role
    • Limits: reports with advanced semantic SQL (WITH clauses, joins, subqueries) get only the missing-view check on FROM and JOIN targets; otherwise they are counted as "N reports could not be checked".
  • Availability: CLOUD-ONLY. Evidence: it depends on Cloud workbooks, dashboards and scheduled tasks, and appears only in Cloud UI instructions.
  • Core building blocks to use:
    • /v1/meta of the target model version (the full, unfiltered model: use a privileged JWT or context_to_groups returning an admin group, because Core filters meta per user)
    • /v1/sql or SQL API dry-run compilation to validate each saved query
    • per-branch instances for the diff against production
  • To build on Core: a validator service that walks your stored reports, dashboards and tasks (your own storage), checks member and view existence against meta, a member-rename rewrite tool, and a UI. Effort: M (L with the dev-vs-production diff and semantic-SQL parsing).
  • Gotchas:
    • The validator must see the full model; per-user meta filtering would hide members that exist and make them look broken.
    • Saved semantic SQL needs a real SQL parser (e.g. sqlparser-rs) to rewrite references safely.

Pre-aggregations (model reference) ​

  • Docs: pages/reference/data-modeling/pre-aggregations.md (also cubes.md, dimensions.md and calendar-cubes.md notes)
  • What it does:
    • Types:
      • rollup (default; additive measures: count, sum, min, max, count_distinct_approx)
      • original_sql (persisted in the source; pairs with use_original_sql_pre_aggregations)
      • rollup_join (Preview; joins two rollups across data sources; ephemeral, so scheduled_refresh: true is an error; needs indexes on the join key; the right side is bounded by Cube Store partitions)
      • rollup_lambda (must come first; union_with_source_data adds real-time data)
    • Parameters:
      • members: measures, dimensions, segments
      • time: time_dimension with granularity (default or custom), or time_dimensions[] (rollup only; the first entry drives partitioning), partition_granularity (hour to year)
      • freshness: refresh_key {every (interval or cron; cron cannot be combined with sql), sql, incremental, update_window}, scheduled_refresh (default true; non-scheduled ones are treated as orphans and dropped), build_range_start/end {sql}
      • matching: allow_non_strict_date_range_match (default true via env var)
      • indexes [{name, columns (with CUBE.td.daysyntax or), type: aggregate}]
    • Rules and defaults:
      • default refresh_key is every: 1 hour, or every 10 s when sql is set
      • incremental refresh without update_window refreshes only the last partition
      • data outside the build range is never returned
      • keep total partitions under 500–1,000
  • Availability: CORE (Cube Store and the refresh worker are part of Core). No plan stated on this page. Cloud adds managed Cube Store tiers; that is outside this slice.
  • Core building blocks to use: Cube Store, refresh worker (CUBEJS_REFRESH_WORKER), scheduled_refresh_contexts, Orchestration API.
  • To build on Core: nothing for the modeling part.
  • Gotchas:
    • Pre-aggregations for calendar overrides must name the overridden granularity.
    • Aliased joins are not served by the joined cube's pre-aggregations.

Summary table ​

FeatureAvailabilityPlanEffort to build on CoreDepends on
Cubes, members, syntax, naming, references, segmentsCORE—noneschema-compiler
Dimensions (types, case, geo, switch, sub_query, PKs)CORE—noneTesseract for switch
Custom granularitiesCORE—nonesupported data sources
Display metadata (format, dynamic format, currency, order)CORE+CLOUD—S (front-end rendering)/v1/meta, ___format measure
Dimension links (URL and dashboard drill-in)CORE+CLOUD—S–M/v1/meta links, synthetic ___link_*_url dims, own dashboard registry
Measures: types, filters, calculated, drill_membersCORE—none—
Multi-stage measures (rolling, to_date, time_shift, grain, filter, rank, case)CORE—noneTesseract (default in 1.8.x)
Calendar cubesCORE—noneTesseract, join aliases
Joins incl. aliases, fan/chasm trapsCORE—noneTesseract for alias (v1.8.7+)
Views (join_path, view members, folders, default_filters, extends)CORE—none—
View meta auto_run and default_ui_filters; CUBEJS_AUTO_RUN_MODECLOUD-ONLY (Core passes meta through)—S–Myour query-builder UI, relative-date parser
Multi-fact views and SQL API view-join mergeCORE—noneTesseract
View groupsCORE—S (catalog UI)/v1/meta viewGroups
HierarchiesCORE—none (UI in another slice)/v1/meta
Extending cubes and viewsCORE—none—
Context variables (FILTER_PARAMS, FILTER_GROUP, SQL_UTILS, COMPILE_CONTEXT)CORE—noneTesseract for segment and time-shift bindings
Dynamic models (Jinja/Python, JS asyncModule, memo)CORE+CLOUD (Jinja Preview is Cloud)—S–M (preview tool)TemplateContext, schema_version
cube, cube_dbt, lkml2cube packagesCORE—nonepip / requirements.txt
Security context, query_rewrite, COMPILE_CONTEXTCORE+CLOUD (Cloud Auth Integration)—SJWT issuer, extend_context
Access policies (member, row, conditions, masking)CORE+CLOUD (user to group and attribute mapping)—S–Mcontext_to_groups, securityContext.cubeCloud.{groups,userAttributes}
Access Policies viewerCLOUD-ONLYPlaygroundRead permissionMschema-compiler run offline (cubeEvaluator)
AI context (description, meta.ai_context)CORE+CLOUD (agent is Cloud)—M (prompt assembly)/v1/meta, LLM agent
Model configuration UI (TZ, limits, timeout, auto-run)CORE+CLOUD—Senv vars, restart orchestration
Data Model IDE (editor, branches, change review, generate)CLOUD-ONLYGenerate model after creation: Premium+LGit service, per-branch instances, /playground/generate-schema
Development mode (branch APIs, commit/merge/publish, AI commit message)CLOUD-ONLY—Lrepository_factory, context_to_app_id, schema_version, Git, LLM
Visual Model (ERD no-code modeler)CLOUD-ONLYPremium+L–XL/v1/meta, DB introspection, YAML round-trip, IDE/branches
Content ValidatorCLOUD-ONLY—M (L with branch diff)stored reports/dashboards/tasks, /v1/meta, SQL parser
Pre-aggregations (model reference)CORE—noneCube Store, refresh worker

Pages read (42) ​

  • pages/docs/data-modeling/overview.md
  • pages/docs/data-modeling/cubes.md
  • pages/docs/data-modeling/dimensions.md
  • pages/docs/data-modeling/measures.md
  • pages/docs/data-modeling/joins.md
  • pages/docs/data-modeling/views.md
  • pages/docs/data-modeling/view-groups.md
  • pages/docs/data-modeling/multi-fact-views.md
  • pages/docs/data-modeling/extending-cubes.md
  • pages/docs/data-modeling/ai-context.md
  • pages/docs/data-modeling/configuration.md
  • pages/docs/data-modeling/content-validator.md
  • pages/docs/data-modeling/data-model-ide.md
  • pages/docs/data-modeling/dev-mode.md
  • pages/docs/data-modeling/visual-modeler.md
  • pages/docs/data-modeling/access-policies-viewer.md
  • pages/docs/data-modeling/data-access-policies.md
  • pages/docs/data-modeling/access-control/index.md
  • pages/docs/data-modeling/access-control/context.md
  • pages/docs/data-modeling/access-control/member-level-security.md
  • pages/docs/data-modeling/access-control/row-level-security.md
  • pages/docs/data-modeling/concepts/calendar-cubes.md
  • pages/docs/data-modeling/concepts/syntax.md
  • pages/docs/data-modeling/dynamic/index.md
  • pages/docs/data-modeling/dynamic/jinja.md
  • pages/docs/data-modeling/dynamic/javascript.md
  • pages/docs/data-modeling/dynamic/schema-execution-environment.md
  • pages/docs/data-modeling/dynamic/code-reusability-export-and-import.md
  • pages/reference/data-modeling/cube.md
  • pages/reference/data-modeling/view.md
  • pages/reference/data-modeling/view-group.md
  • pages/reference/data-modeling/dimensions.md
  • pages/reference/data-modeling/measures.md
  • pages/reference/data-modeling/joins.md
  • pages/reference/data-modeling/segments.md
  • pages/reference/data-modeling/hierarchies.md
  • pages/reference/data-modeling/pre-aggregations.md
  • pages/reference/data-modeling/data-access-policies.md
  • pages/reference/data-modeling/context-variables.md
  • pages/reference/data-modeling/cube-package.md
  • pages/reference/data-modeling/cube_dbt.md
  • pages/reference/data-modeling/lkml2cube.md