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

Hierarchical Link

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

A Hierarchical Link stores parent-child pairs of one Hub, such as an employee and their manager or an item and its component, with the hash key Link_HK, in a table of the Raw Vault layer. Use it for a hierarchy inside one business object. After each load, the result view shows one row per pair and the load that first delivered it.

Sources and relationships

A Hierarchical Link reads Stages, RawVault Composites and Store Entities of a linked Data Store project, in one or more dataflows. It has exactly two relationships, both to the same Hub, with roles, for example EMPLOYEE and MANAGER. The foreign-key terms are the business keys of the Hierarchical Link. See Use parent-child relationships.

Link Satellites, Record Tracking Link Satellites, Effectivity Link Satellites reference a Hierarchical Link. PIT, Current View, History View, BusinessVault Composite, Vault Out and the Business Vault types can read it as a source. A Current View on a Hierarchical Link and its Link Satellite is the usual source of a Hierarchy Flatten.

Create a Hierarchical Link

A Hierarchical Link holds only foreign-key terms and Default Terms. Validation reports an error for any other term; descriptive data goes into a Link Satellite.

Properties

Default Terms

A row without a parent has a NULL parent key when that foreign-key term is nullable. The Hierarchical Link then stores the key of the Hub's unknown-member row for the parent. See Behaviour for Nulled Business Keys in Links and How biGENIUS-X builds hash values.

Generated objects

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

Part flow of Business Driving Key Link, Business Link, Driving Key Link, Hierarchical Business Link, Hierarchical Link, Link, Same As Business Link and Same As Link, 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); Use Embryo Loader (true). Detours add the other parts: _Deduplication, _DataQualityLoader, _DataQualityTable, _DataQualityResult, _DataQualityBeforeLoadAction, _DataQualityError, _HashingLoader, _HashingTable, _EmbryoLoader.

These are the names on Microsoft SQL Server for the Hierarchical Link load_employee_hlnk with one dataflow:

RoleGenerated namePurposeGenerated when
SourceRDV_HLNK_load_employee_hlnk_SourceReads the sourcesAlways
DeduplicationRDV_HLNK_load_employee_hlnk_DeduplicationRemoves duplicate rowsDeduplication Method Distinct or Partition
DataQualityLoaderRDV_HLNK_load_employee_hlnk_DataQualityLoaderChecks the rules and fills the data quality tableAn active rule that runs before the load
DataQualityStorageRDV_HLNK_load_employee_hlnk_DataQualityTableHolds the rows and their check resultsAn active rule that runs before the load
DataQualityBeforeLoadActionRDV_HLNK_load_employee_hlnk_DataQualityBeforeLoadActionApplies the rule actions before the loadAn active rule that runs before the load
IntermediateResultRDV_HLNK_load_employee_hlnk_DataQualityResultPasses the rows to loadAn active rule that runs before the load
ErrorRDV_HLNK_load_employee_hlnk_DataQualityErrorHolds the rows that break a ruleAn active rule with Logging
HashingRDV_HLNK_load_employee_hlnk_HashingCalculates the hash keysAlways
HashingStorageRDV_HLNK_load_employee_hlnk_HashingTableStores the hashed rowsLoad Caching Hashing
HashingLoaderRDV_HLNK_load_employee_hlnk_HashingLoaderFills the hashing tableLoad Caching Hashing
EmbryoLoaderRDV_HLNK_load_employee_hlnk_EmbryoLoaderAdds missing Hub keysUse Embryo Loader on a relationship
DeltaRDV_HLNK_load_employee_hlnk_DeltaSelects new pairsAlways
LoaderRDV_HLNK_load_employee_hlnk_LoaderInserts the new rowsAlways
StorageRDV_HLNK_load_employee_hlnkHierarchical Link tableAlways
ResultRDV_HLNK_load_employee_hlnk_ResultQuery viewCreate Result Views true
  • The table script inserts the unknown-member row with hash keys of zeros. The result view hides 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 hashing view calculates Link_HK and the Hub key of each role. The delta view keeps the rows whose Link_HK is not in the result view, and the loader inserts them. The loader never updates or deletes rows, so a pair that the source no longer delivers stays in the table. A Link Satellite on the Hierarchical Link stores the history of each pair.

Example

The Hierarchical Link load_employee_hlnk on Microsoft SQL Server reads the Stage EMPLOYEE. Both relationships go to the Hub common_employee, with the roles EMPLOYEE and MANAGER. MANAGER_ID is nullable in the source. The loads deliver these rows:

  • Load 1 on 2026-10-28 08:00: employee 101 without a manager, employees 102 and 103 with manager 101.
  • Load 2 on 2026-10-29 08:00: employee 103 now reports to 102, and employee 104 is new with manager 102.

Check the result

Query the result view, here in the schema rv:

SELECT FK_common_employee_EMPLOYEE_EMPLOYEE_ID AS EMPLOYEE_ID,
       FK_common_employee_MANAGER_EMPLOYEE_ID AS MANAGER_ID,
       common_employee_MANAGER_HK AS MANAGER_HK, BG_LoadTimestamp
FROM rv.RDV_HLNK_load_employee_hlnk_Result
ORDER BY EMPLOYEE_ID, BG_LoadTimestamp;

This is the result after load 2, with hash keys shortened to their first four bytes:

EMPLOYEE_ID  MANAGER_ID  MANAGER_HK  BG_LoadTimestamp
101          NULL        0x00000000  2026-10-28 08:00
102          101         0x6348AE9A  2026-10-28 08:00
103          101         0x6348AE9A  2026-10-28 08:00
103          102         0x8887BDD9  2026-10-29 08:00
104          102         0x8887BDD9  2026-10-29 08:00
  • Employee 101 has no manager, so MANAGER_HK holds the key of the unknown-member row, all zeros.
  • Employee 103 has two rows: the pair with manager 101 stays after load 2 adds the pair with manager 102.
  • MANAGER_HK 0x6348AE9A is the Hub key of employee 101.

Platform differences

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

  • Snowflake: the load control task LC_RDV_HLNK_<model object name>_TASK calls the loader, and the task LC_RDV_HLNK_<model object name>_EMBRYOTASK calls the embryo loader.

Limitations

  • A Hierarchical Link has exactly two relationships to the same Hub and no terms other than foreign keys and Default Terms. Validation reports an error otherwise.
  • A Hierarchical Link holds one level, the direct parent. A Hierarchy Flatten resolves all levels.
  • A dataflow that delivers the same pair twice in one load makes the loader fail with a primary key violation. A Deduplication Method removes such duplicates before hashing.

Release differences

  • Generator 2.2: Use Embryo Loader is available.
  • Generator 2.3: Custom Singleton Values is available.

Related articles