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

Reference Table

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

A Reference Table stores one row per business key of simple reference data, such as country codes and names, in a table of the Raw Vault layer, without hash key and without history. Use it for lookup data that many objects need and that does not justify a Hub and a Satellite. After each load, the result view shows the current value of each key.

Sources and relationships

A Reference Table reads Stages, RawVault Composites and Store Entities of a linked Data Store project, in one or more dataflows. It has no relationships, and no other model object has a relationship to it. Vault Out reads it as a source; in a Vault and Mart project, Mart Dimension, Mart Fact and Mart Composite can read it too. Join it in a dataflow by its business key.

Create a Reference Table

Loading behavior

The loader updates and inserts:

  • A business key that the table does not hold yet is inserted.
  • A business key whose row hash BG_RowHash differs from the stored row is updated in place, with the new load timestamp. The old values are not kept.
  • A business key that the source no longer delivers stays in the table.

The row hash covers the terms that are not business keys and not Default Terms. See BG_RowHash and How biGENIUS-X builds hash values.

Properties

Foreign Key Mode, Custom Singleton Values and Use Embryo Loader do not apply.

Default Terms

The business keys form the primary key of the table.

Generated objects

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

Part flow of Business Hub, Hub and Reference Table, top to bottom. The main path on the left, with the default settings, runs _Source, _Hashing, _Delta, _Loader, Table, _Result. Decisions with their values, the default or main value first: Deduplication Method (None; Distinct, Partition); Before-load rule (no; yes); Load Caching (empty; Hashing); Create Result Views (true; false); Logging (yes). Detours add the other parts: _Deduplication, _DataQualityLoader, _DataQualityTable, _DataQualityResult, _DataQualityBeforeLoadAction, _DataQualityError, _HashingLoader, _HashingTable.

These are the names on Microsoft SQL Server for the Reference Table with_distinct_ref with one dataflow:

RoleGenerated namePurposeGenerated when
SourceRDV_ReferenceTable_with_distinct_ref_SourceReads the sourcesAlways
DeduplicationRDV_ReferenceTable_with_distinct_ref_DeduplicationRemoves duplicatesDeduplication Method Distinct or Partition
DataQualityLoaderRDV_ReferenceTable_with_distinct_ref_DataQualityLoaderChecks the rules and fills the data quality tableAn active rule that runs before the load
DataQualityStorageRDV_ReferenceTable_with_distinct_ref_DataQualityTableHolds the rows and their check resultsAn active rule that runs before the load
DataQualityBeforeLoadActionRDV_ReferenceTable_with_distinct_ref_DataQualityBeforeLoadActionApplies the rule actions before the loadAn active rule that runs before the load
IntermediateResultRDV_ReferenceTable_with_distinct_ref_DataQualityResultPasses the rows to loadAn active rule that runs before the load
ErrorRDV_ReferenceTable_with_distinct_ref_DataQualityErrorHolds the rows that break a ruleAn active rule with Logging
HashingRDV_ReferenceTable_with_distinct_ref_HashingCalculates the row hashAlways
HashingStorageRDV_ReferenceTable_with_distinct_ref_HashingTableStores the hashed rowsLoad Caching Hashing
HashingLoaderRDV_ReferenceTable_with_distinct_ref_HashingLoaderFills the hashing tableLoad Caching Hashing
DeltaRDV_ReferenceTable_with_distinct_ref_DeltaSelects new and changed keysAlways
LoaderRDV_ReferenceTable_with_distinct_ref_LoaderUpdates and insertsAlways
StorageRDV_ReferenceTable_with_distinct_refReference TableAlways
ResultRDV_ReferenceTable_with_distinct_ref_ResultQuery viewCreate Result Views true
  • The table has no unknown-member row.

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

The delta view keeps the source rows whose business key is not in the result view or whose BG_RowHash differs. The loader updates the changed keys and then inserts the new ones, in one transaction.

Example

The Reference Table with_distinct_ref on Microsoft SQL Server reads country codes and names from the Stage EMPLOYEE. COUNTRY_ISO_CODE is the business key and COUNTRY the name. The dataflow has Deduplication Method Distinct, because several employees share a country. The loads deliver these countries:

  • Load 1 on 2026-10-28 08:00: CH Switzerland for two employees and DE Germany.
  • Load 2 on 2026-10-29 08:00: the same countries and AT Austria.
  • Load 3 on 2026-10-31 08:00: the source now names DE Deutschland.

Check the result

Query the result view, here in the schema rv:

SELECT COUNTRY_ISO_CODE, COUNTRY, BG_LoadTimestamp, BG_RowHash
FROM rv.RDV_ReferenceTable_with_distinct_ref_Result
ORDER BY COUNTRY_ISO_CODE;

This is the result after load 3, with BG_RowHash shortened to its first four bytes:

COUNTRY_ISO_CODE  COUNTRY      BG_LoadTimestamp  BG_RowHash
AT                Austria      2026-10-29 08:00  0xE60F2C8A
CH                Switzerland  2026-10-28 08:00  0xDB1812A5
DE                Deutschland  2026-10-31 08:00  0xB570D028
  • The deduplication view reduced the two CH rows of load 1 to one.
  • Load 3 overwrote Germany with Deutschland and set its load timestamp; the table still holds three rows.

Platform differences

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

  • Snowflake: the load control task LC_RDV_REFERENCETABLE_<model object name>_TASK calls the loader.

Limitations

  • A Reference Table has at least one business key and no relationships. Validation reports an error otherwise; a nullable business key raises a warning.
  • A Reference Table keeps no history: changed values overwrite the stored ones.

Related articles