Skip to content
  • There are no suggestions because the search field is empty.

Mart Out

Applies to
Platform: Microsoft SQL Server · Snowflake · Databricks · Databricks dbt · Fabric Lakehouse · Fabric Warehouse · Oracle
Architecture: Data Mart

A Mart Out is a model object type of the Mart layer that combines Mart objects into one output that is read after the star schema. Use it as the final object that consumers query, or as the source of another Mart Out. With Implementation Type Virtual you get views only; with Cached you also get a table that each load fills again.

Available since Generator 2.2. A Mart Out reads only Mart objects, also in Vault and Mart and in Dimensional and Mart projects.

Sources and relationships

A Mart Out reads these model object types:

  • Mart Composite, Mart Dimension, Mart Fact and Mart Hierarchy Flatten of the project.
  • Another Mart Out of the project.
  • In a Data Mart project, a Mart Out that you imported from another project through Data Connections. The source view reads its result view DM_MO_<model object name>_Result through the placeholders {<project identifier>#<import name>#database_name}, schema_name and server_name, which you set when you replace the placeholders. Nothing is generated for the imported Mart Out itself.

Raw Vault, Business Vault, Dimensional and Data Store objects, PITs and linked objects other than a Mart Out are not valid sources. A Vault Out is not a valid source either.

Among model objects, only another Mart Out can use a Mart Out as source. A Mart Out has no relationships.

Create a Mart Out

A Mart Out has exactly one dataflow. Join several sources in its dataflow set, or combine dataflow sets with a set operator.

Properties

  • Implementation Type: Virtual (default) or Cached. Virtual creates views only, so the result view reads the sources at query time. Cached adds a table and a loader. The loader empties the table and inserts all rows again on every load.
  • Deduplication Method, set per dataflow: None (default), Distinct or Partition. Distinct removes rows that are equal in all terms. Partition keeps one row per business key, the first one by Sort Order within Partition.
  • Sort Order within Partition, set per dataflow: the order that decides which row Partition keeps.

Edit Term offers the Business Key flag on Mart Out terms. Only Partition uses it. Without business keys, Partition partitions by all terms that are not Default Terms, which removes the same rows as Distinct, and validation shows warning ID-10051.

Default Terms

  • BG_LoadTimestamp: with Cached, the loader writes the load timestamp. In a Virtual Mart Out it is NULL unless you map it.
  • BG_SourceSystem: NULL unless you map it.

The wizard maps neither of them.

Generated objects

The part flow of Mart Out shows which parts it can get and under which settings; the legend explains the symbols.

Part flow of BusinessVault Composite, Core Composite, Mart Composite, Mart Out, RawVault Composite, Store Composite and Vault Out, top to bottom. The main path on the left, with the default settings, runs _Source, _Loader, Table, _Result. Decisions with their values, the default or main value first: Deduplication Method (None; Distinct, Partition); Implementation Type (Virtual; Cached); Create Result Views (true; false). Detours add the other parts: _Deduplication.

These are the names on Microsoft SQL Server for a Mart Out sales_mo:

RoleGenerated namePurposeGenerated when
SourceDM_MO_sales_mo_SourceJoins the sourcesAlways
DeduplicationDM_MO_sales_mo_DeduplicationRemoves duplicatesDeduplication Method Distinct or Partition
StorageDM_MO_sales_moTableImplementation Type Cached
LoaderDM_MO_sales_mo_LoaderReloads the tableImplementation Type Cached
ResultDM_MO_sales_mo_ResultQuery viewCreate Result Views true
  • The source view reads the result views of the sources, for example DM_MD_<model object name>_Result of a Mart Dimension.
  • Load control runs the loader after the loaders of the sources.

Generated parts of model objects shows the order in which a load runs the parts and the settings that add or remove them.

Example

Two Mart Outs on Microsoft SQL Server, in the schema m:

  • sales_mo reads QUANTITY and TRANSACTION_TIME of the Mart Dimension common_salestransaction. Implementation Type is Cached and Deduplication Method is Distinct.
  • sales_report_mo reads the same terms from sales_mo with Implementation Type Virtual.

The Default Terms are not mapped. The result view of the Mart Dimension delivers three rows: quantity 2 at 2026-04-01 10:00 twice and quantity 5 at 11:00.

Check the result

After the loader of sales_mo ran at 2026-04-02 06:00, query both result views:

SELECT QUANTITY, TRANSACTION_TIME, BG_LoadTimestamp, BG_SourceSystem
FROM m.DM_MO_sales_mo_Result ORDER BY QUANTITY;
SELECT QUANTITY, TRANSACTION_TIME, BG_LoadTimestamp, BG_SourceSystem
FROM m.DM_MO_sales_report_mo_Result ORDER BY QUANTITY;

This is the result, with the timestamps shortened. Distinct keeps the two equal rows of quantity 2 once:

sales_mo
QUANTITY  TRANSACTION_TIME  BG_LoadTimestamp  BG_SourceSystem
2.000     2026-04-01 10:00  2026-04-02 06:00  NULL
5.000     2026-04-01 11:00  2026-04-02 06:00  NULL

sales_report_mo
QUANTITY  TRANSACTION_TIME  BG_LoadTimestamp  BG_SourceSystem
2.000     2026-04-01 10:00  NULL              NULL
5.000     2026-04-01 11:00  NULL              NULL

Then the Mart Dimension stops delivering the row with quantity 5. sales_report_mo still returns both rows, because it reads the table of sales_mo. The loader of sales_mo at 2026-04-03 06:00 reports 1 inserted row, the two equal rows counted once. Afterwards the same queries return:

sales_mo
QUANTITY  TRANSACTION_TIME  BG_LoadTimestamp  BG_SourceSystem
2.000     2026-04-01 10:00  2026-04-03 06:00  NULL

sales_report_mo
QUANTITY  TRANSACTION_TIME  BG_LoadTimestamp  BG_SourceSystem
2.000     2026-04-01 10:00  NULL              NULL

Platform differences

The rules for names, loaders, deployment, platform properties and defaults are in Model object types on each platform. The Mart Out differs from them in these points:

  • Snowflake: the table is a transient table, and the load control task LC_DM_MO_<model object name>_TASK calls the loader. A Virtual Mart Out has no task.
  • Databricks dbt: the source model includes the deduplication.

Limitations

  • A Mart Out has exactly one dataflow, at least one term that is not a Default Term, and no relationships.
  • Implementation Type Permanent and Deduplication Method Condensing fail validation.
  • A Cached Mart Out keeps no history: each load replaces all rows.

Related articles