Migrating from dbt
dbt describes the shape of your warehouse — models, columns, types, and relationship tests. Engeene imports that shape from a manifest.json artifact (or live from dbt Cloud). This makes dbt a clean structural starting point: you keep transforming in dbt, and Engeene serves the result.
If your project has a MetricFlow semantic layer, it brings the semantics too. A semantic_models: block is the one place dbt states which column is a key, which is a measure and how it aggregates — and Engeene reads all of it, including joins your relationship tests never declared. See The semantic layer. Without one, dbt genuinely carries no measures and you pick aggregations after import.
What you import
| Source | Notes |
|---|---|
target/manifest.json |
Produced by dbt compile or dbt run. |
| dbt Cloud | Pulled live from a job's artifacts (account id + job id + token). |
Vocabulary mapping
| dbt | → Engeene | Notes |
|---|---|---|
node with resource_type: model or seed |
Dataset | Named after the model's name; its data file after alias if set. Two models with the same name (in two packages) become two datasets, the second with a -2 suffix, and the import says so. |
a versioned model (versions:) |
one Dataset | Only the latest version is imported — the one a ref('…') resolves to; each older version is listed in the gap report. |
| column of integer/numeric/decimal/number/float/double/money | Measure | Decimal places carried through for numeric(p,s) / decimal(p,s); one that cannot be read is imported with none and flagged. |
| column of timestamp/datetime/date/time | Time | First becomes the primary time. |
| column of char/text/varchar/uuid/boolean | Attribute | |
column of any other type — interval, a geometry such as point, json |
Attribute | Flagged in the gap report; never read as a number. |
column named id, or {dataset}_id |
Id | Name heuristic (data_type doesn't say "key"). |
column with no data_type |
Attribute | Defaulted, and flagged in the gap report. |
relationships test (column_name + to: ref('…')) |
Reference | The join, derived from your schema tests. |
The semantic layer
If your project defines MetricFlow semantic_models:, the import applies them on top of the column shape — and this is where most of the value is, because a dbt model says nothing about semantics.
| MetricFlow | → Engeene |
|---|---|
an entity of type: primary or unique |
that column becomes an Id |
an entity of type: foreign |
a Reference to the model whose primary entity has the same name — MetricFlow's own join rule |
a measure with agg: sum / min / max / average / count_distinct / median |
a Measure with that default aggregation |
a dimension of type: time |
a Time column; defaults.agg_time_dimension names the dataset's primary time |
a dimension of type: categorical |
an Attribute |
Two things it deliberately does not do:
- A measure computed from an expression (
expr: amount / quantity, acase when) is reported, not applied. Materialize the expression as a column in dbt, or rebuild it as a computed measure. - A foreign entity with no matching primary entity in the same import is reported and the column is left alone, rather than pointed at a guessed dataset.
agg: sum_boolean and percentile have no single-column Engeene equivalent and are reported. So is agg: count over a column: it counts that column's non-null rows, which is a different number from Engeene's distinct Count, so the column keeps its type and gets no default aggregation. (A count over the primary entity's own column is simply the row count — Count on the Id gives the same number, and nothing is reported.)
Metrics
A simple metric adds nothing beyond its measure's aggregation, which the import already applied — so it passes silently. Ratio, derived, cumulative and conversion metrics are arithmetic over measures; they are reported and you rebuild them as computed measures, which express ratios and differences between measures on a visualization.
Without a semantic layer, dbt has no measures. Numeric columns import as Measures with the default Sum; set the default aggregation you actually want on each one. Every aggregation is still available per query.
What does not come across
- Ratio, derived, cumulative and conversion
metrics:, and semantic-model measures built on an expression — reported, not imported (see The semantic layer); rebuild them as computed measures in Engeene. sources:blocks (raw external tables) — not imported; import the models built from them.snapshots:(SCD type-2) — skipped.- Materialization info (table/view/incremental) — irrelevant once data is in Engeene.
- Relationship tests on a Time column — rejected (the column stays a Time); add the Reference on a non-time key.
- Custom column expressions — columns are ingested as the source table produces them.
To get the most across, make sure your dbt project declares column data_types and relationships tests — those are exactly what Engeene reads for types and joins.
How to import
From a file
- Run
dbt compile(ordbt run) to producetarget/manifest.json. - Open Models → Import Analytics Model → From File… and choose
manifest.json. - The format is detected and the model is named after your dbt project, saved, and opened in the editor. Read the gap report and fix what matters.
Live from dbt Cloud
- Open Models → Import Analytics Model → dbt….
- Fill in access URL (your dbt Cloud host, if not the default), account id, job id, and an API token.
- Click Import. Engeene pulls the job's
manifest.json, saves the converted model under the dbt project name, and opens it in the editor. - Read the gap report, then fix what matters. Each correction is stored as you make it.
The token is used for that one request and is never stored.
After the import
- Set the aggregation you want on each numeric Measure that no
semantic_models:measure covered. - Confirm Id columns — the name heuristic may miss keys that aren't
id/{dataset}_id. - Re-create the reported MetricFlow metrics (ratio, derived, cumulative, conversion) as Measure aggregations or computed measures.
- Add any References not covered by
relationshipstests. - Load your data and verify a known total.
See also: Vocabulary Map · Product Differences and Workarounds.