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

Hub

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

A Hub stores each business key of a business object once, with its hash key Hub_HK, in a table of the Raw Vault layer. Use it as the anchor that Links and Satellites reference. After each load, the result view shows one row per business key and the load that first delivered it.

Sources and relationships

A Hub reads Stages, RawVault Composites and Store Entities of a linked Data Store project, in one or more dataflows. It has no relationships of its own. Other model objects use it in two ways:

  • Relationship to the Hub: Link, Driving Key Link, Hierarchical Link, Same As Link, Satellite, Multi-Active Satellite, Record Tracking Satellite, Effectivity Satellite and Non-Historized Satellite, and their Business Vault counterparts.
  • Dataflow source: Current View, History View, PIT, BusinessVault Composite, Vault Out and the Business Vault types.

Create a Hub

A Hub holds only business keys and Default Terms. Validation reports an error for any other term.

Properties

Platform-specific properties are listed under Platform differences.

Default Terms

The business keys form a unique constraint of the table.

Generated objects

The part flow of Hub 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 Hub load_customer_hub with one dataflow:

RoleGenerated namePurposeGenerated when
SourceRDV_HUB_load_customer_hub_SourceReads the sourcesAlways
DeduplicationRDV_HUB_load_customer_hub_DeduplicationRemoves duplicate rowsDeduplication Method Distinct or Partition
DataQualityLoaderRDV_HUB_load_customer_hub_DataQualityLoaderChecks the rules and fills the data quality tableAn active rule that runs before the load
DataQualityStorageRDV_HUB_load_customer_hub_DataQualityTableHolds the rows and their check resultsAn active rule that runs before the load
DataQualityBeforeLoadActionRDV_HUB_load_customer_hub_DataQualityBeforeLoadActionApplies the rule actions before the loadAn active rule that runs before the load
IntermediateResultRDV_HUB_load_customer_hub_DataQualityResultPasses the rows to loadAn active rule that runs before the load
ErrorRDV_HUB_load_customer_hub_DataQualityErrorHolds the rows that break a ruleAn active rule with Logging
HashingRDV_HUB_load_customer_hub_HashingCalculates Hub_HKAlways
HashingStorageRDV_HUB_load_customer_hub_HashingTableStores the hashed rowsLoad Caching Hashing
HashingLoaderRDV_HUB_load_customer_hub_HashingLoaderFills the hashing tableLoad Caching Hashing
DeltaRDV_HUB_load_customer_hub_DeltaSelects new business keysAlways
LoaderRDV_HUB_load_customer_hub_LoaderInserts the new keysAlways
StorageRDV_HUB_load_customer_hubHub tableAlways
ResultRDV_HUB_load_customer_hub_ResultQuery viewCreate Result Views true
  • The table script inserts the unknown-member row: business key 0 (text terms Unknown), a Hub_HK of zeros, BG_SourceSystem Unknown and BG_LoadTimestamp 1900-01-01. The result view hides this row. Link rows with an empty foreign key reference it.

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 rows whose Hub_HK is not in the result view. The loader inserts them with the load timestamp. A Hub loader never updates or deletes rows.

Example

The Hub load_customer_hub on Microsoft SQL Server reads the Stage CUSTOMER. CUSTOMER_ID is the business key. The loads deliver these keys:

  • Load 1 on 2026-10-28 08:00: customers 1 and 2.
  • Load 2 on 2026-10-29 08:00: customers 1, 2 and 3.
  • Load 3 on 2026-10-30 08:00: the same keys as load 2.

Check the result

Query the result view, here in the schema rv:

SELECT CUSTOMER_ID, Hub_HK, BG_LoadTimestamp
FROM rv.RDV_HUB_load_customer_hub_Result
ORDER BY CUSTOMER_ID;

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

CUSTOMER_ID  Hub_HK      BG_LoadTimestamp
1            0xE91FE173  2026-10-28 08:00
2            0x21ED4C7A  2026-10-28 08:00
3            0x2064F80F  2026-10-29 08:00
  • Load 2 inserted only customer 3, so customers 1 and 2 keep the timestamp of load 1.
  • Load 3 inserted no row.
  • The table holds a fourth row, the unknown-member row with CUSTOMER_ID 0.

With two dataflows, each dataflow loader inserts only the keys that are not yet stored. For example, when the first dataflow delivers customers 1 and 2 and the second one customers 2 and 7, the Hub stores customer 2 once.

Platform differences

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

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

Limitations

  • A Hub has at least one business key, no relationships and no terms other than business keys and Default Terms.
  • A dataflow that delivers the same business key twice in one load makes the loader fail. On Microsoft SQL Server the message is Violation of PRIMARY KEY constraint 'PK_RDV_HUB_<model object name>'. Deduplication Method Distinct or Partition removes such duplicates before hashing.
  • A Hub keeps no history. Satellites store the descriptive data of its keys.

Related articles