Back to Datahub

README

metadata-ingestion/docs/sources/cube/README.md

1.7.04.2 KB
Original Source

Overview

Cube is a headless semantic layer that defines metrics, dimensions, and joins once and exposes them to BI tools, data apps, and AI agents through SQL, REST, and GraphQL APIs. Its data model is organised into cubes (business entities such as orders or customers) and views (curated, query-ready datasets built on top of cubes).

This source ingests the Cube data model into DataHub as datasets: each cube and view becomes a dataset whose measures and dimensions are modelled as schema fields. It supports both Cube Core (self-hosted, via the /v1/meta REST endpoint) and Cube Cloud, where it merges /v1/meta (structural and presentation metadata) with the richer Metadata API (warehouse and column-level lineage). On Cube Cloud the connector can mint the metadata-scoped token automatically via the Control Plane API. DataHub captures descriptions, measure/dimension classification, view-to-cube lineage, and — where the deployment exposes it — column-level lineage down to the underlying warehouse tables. On Cube Cloud it also ingests saved reports as charts and workbooks as dashboards via the Platform API, extending lineage to the BI consumption layer. Stateful ingestion removes cubes and views that have been deleted from the model.

Concept Mapping

Source ConceptDataHub ConceptNotes
Deployment / data modelContainerSubtype Cube Deployment
CubeDatasetSubtype Cube
ViewDatasetSubtype View
MeasureSchema FieldTagged Measure; aggregation in native type
DimensionSchema FieldTagged Dimension; primary keys marked as key
format / drillMembers / cumulativeSchema Field jsonPropsMeasure presentation hints
joins / hierarchies / folders / preAggregationsDataset custom propertiesStructural model metadata
public / isVisibleIngestion filterHidden cubes/members skipped unless include_hidden
table_references / cube sqlLineageLineage to upstream warehouse tables
View member aliasMemberFine-Grained LineageColumn-level view-to-cube lineage
metaTags / Terms / Owners / DomainsMapped via meta_mapping / column_meta_mapping
Report (Cube Cloud)ChartInput lineage to queried cubes/views
Workbook (Cube Cloud)DashboardContains its reports' charts