Migrating from Cube

Cube's YAML schema maps almost one-to-one onto Engeene: a cube is a dataset, its dimensions and measures are properties, and its join blocks become References. Import the YAML schema files from your Cube project.

File import only. There is no live Cube import.

Upload your model/ folder as a zip, not one file at a time. A real Cube project is one cube per file, and a join between two cubes can only resolve when both files are present. Engeene merges every cubes: block in the archive into one model.

A top-level views: is not imported as a dataset — a Cube view is a curated projection over cubes, so it has no data of its own. Each view is instead named in the gap report along with the cube join paths it exposes, so you can check the References that combination needs exist. A folder containing only views is recognised as a Cube project and tells you the cubes: files are missing.

Vocabulary mapping

Cube → Engeene Notes
cube (with name) Dataset Id slugified.
sql_table (schema.table) CSV source Last segment.
dimension with primary_key: true Id
dimension of type: number Measure No default aggregation — pick one per column.
dimension of type: string / boolean / yesno Attribute
dimension of type: time Time First becomes the primary time.
measure of type: count a row count Use Count on the cube's Id, which is the same number. Engeene has no separate row-count aggregation. A type: count with a sql: counts that column's non-null rows — a different number — so it arrives with no default aggregation.
measure (sum, avg, average, min, max, count_distinct, count_distinct_approx) Measure with that default aggregation count_distinct_approx maps to Count, which is always exact, so a migrated report can differ slightly from the original estimate. A measure of type: number (a computed value, not an aggregation) arrives with no default aggregation.
join … sql: "{CUBE}.col = {other}.col" Reference Single-column equality joins.

What does not come across

  • Custom SQL in a dimension/measure (CASE, arithmetic, functions) — falls back to the element name as a placeholder; re-point or re-express as a computed measure.
  • A cube with no dimensions or measures — imported with a placeholder column so the dataset still exists, and flagged.
  • pre_aggregations: — not needed in Engeene; nothing to port.
  • segments: — rebuild as query filters.
  • access_policy — set up roles in Engeene.
  • Multi-condition joins — only single-column equality is imported.
  • rolling_window measures — re-express with time grouping + computed measures.
  • format: hints — not applied. Set the decimal places you want on the Measure yourself.
  • extends: inheritance — flatten before importing.
  • Top-level views: — only cubes: are imported.

Measures default to scale 1; set decimal scale on money/percent measures after import.

How to import

  1. Open Models → Import Analytics Model → From File….
  2. Choose the zip of your model/ folder — or a single Cube YAML schema file (top-level cubes:) when the project is one file.
  3. The format is detected, the model is saved under a name taken from the file, and it opens in the editor. Read the gap report and fix what matters — each correction is stored as you make it.

After the import

  1. Set decimal scale on currency/percent measures (the format: hint is not applied).
  2. Set the aggregation on every numeric dimension and on any type: number measure — those arrive without one.
  3. Re-point any placeholder measures (custom-SQL measures) or rebuild them as computed measures.
  4. Confirm joins you needed were single-column; add any References that were multi-condition.
  5. Load your data and verify a known measure.

See also: Vocabulary Map · Product Differences and Workarounds.

← From dbtTaking Data Out →