biGENIUS-X

biGENIUS-X is a model-driven data warehouse automation tool. Architects model in a browser; architecture rules validate the model, and generators produce the SQL code, load procedures, orchestration and deployment scripts for the target platform. We solved the Willibald challenge twice on Snowflake, with the same data and data mart. Approach A is the classic topology: Raw Vault, Business Vault and Mart in one project (87 model objects). Approach B puts a historized Data Store in front of the vault: a store project (41 objects) feeds a linked vault-and-mart project (72 objects), and deletions, duplicates and keys without value are handled once in the store. Here the vault project imports the store project from a file; the Data Marketplace can instead share it as a Data Product with versioned data contracts. Besides the Data Store and Data Vault object types, the solution uses a few helper objects. Current and history views present a hub or link together with its satellites or link satellites as one object, either with the latest version only or with the full history. A hierarchy flatten resolves a recursive relationship, such as a hierarchical link, into one column per level. Composites hold logic that several target objects share, or split complex logic into smaller steps that are easy to follow. Both approaches produce the same key figures for all three deliveries; two roadshow orders of 2022-03-18 are assigned to different customers (criterion 15). Each criterion states what was generated, what was configured and what was written by hand.

The category table references its parent through OberKatID. The Raw Vault holds the tree as a Hierarchical Link Category_Hierarchy on the Category hub, with the roles Category and ParentCategory; a root category has no parent and points to the hub’s singleton record. For reporting, the mart composite Category_Parent joins each category to its parent, and the Mart Hierarchy Flatten object Category_Flatten resolves the tree into one row per category with the names of levels 1 to 3. The flatten is generated as a recursive query: the anchor selects the roots, the recursion adds the children. All 128 category keys of the three deliveries appear in the dimension. Approach B is identical. Generated: tables, recursive view, loaders. Configured: link roles, anchor and recursion mappings.

Hierarchical Link

A customer can have several residences at once, identified by customer and start date (Von). The Customer hub gets a Multi-Active Satellite CustomerResidence; the sequence that separates the active rows of one customer is the start date, mapped as BG_Sequence = TO_NUMBER(TO_CHAR(VON, ‘YYYYMMDD’)). Each load compares the delivered residences of a customer with the stored set. If any residence was added, changed or removed, the complete new set is written as a new version and the previous set is closed; unchanged customers get no rows. After delivery 3 the current rows equal the 965 delivered residences of 410 customers. Approach B is identical; its vault reads the residences from the Data Store. Generated: table, delta view, loader. Configured: satellite type, sequence expression.

Multi-Active Satellite

The relationship between customer and association partner is a Driving Key Link Customer_AssociationPartner with the customer as driving key. Each load compares the delivered partner of a customer with the customer’s latest link row and inserts a new row when it differs, including a return to an earlier partner. A customer without a partner points to the singleton record of the AssociationPartner hub (project setting “Nulled Business Keys Point to Hub Singleton”), so “no partner” is a state in the history, not a gap. The current relationship is the latest row per customer; the history is the sequence of rows. Approach B is identical; its vault reads the customers from the Data Store. Generated: link table, delta and current views, loader. Configured: link type and driving key.

Validity in Relationships

The delivery table becomes a Link Delivery between the hubs OrderItem, DeliveryAddress and DeliveryService. The four foreign key columns (order, item, address, service) form the link key, so no artificial key is needed. The delivery date is not history but a fact of the event; it sits in a Non-Historized Link Satellite Delivery, written once per link row. The link and the satellite load from the same stage table in one load step each. After delivery 3 the link holds 4,319 rows, one per delivered row. Approach B is identical; its vault reads the deliveries from the Data Store. Generated: link and satellite tables, loaders. Configured: link hubs, satellite type.

MtoN-TableWithoutPrimaryKey

Both channels share the hubs Order and OrderItem. The numeric web shop key and the roadshow key (RS0000001) map to the text key of the hub; the generated code converts the type; the roadshow item key is order plus product. Every table carrying an order key loads the hub. Attributes stay per source (Order_Webshop, Order_Roadshow), combined by a PIT and a current view. In approach A the raw vault reads the flat roadshow file directly into a Driving Key Link Order and a link OrderItem. In approach B the Data Store splits the file into header and lines, and one Driving Key Link OrderItem integrates both channels at item grain. After delivery 3: 2,062 web shop and 2,808 roadshow orders. Generated: hubs, links, satellites, PIT, views, loaders. Configured: key expressions.

Early Integration

Product types are a Reference Table ProductType (code, description, no history). The on-time bands need history, which the reference table type does not keep, so they are a hub OnTimeCategory with the evaluation as business key and a satellite with lower bound, upper bound and description. A business history view feeds the dimension OnTimeCategory as SCD type 2; a business current view gives the fact numeric ranges to assign each order its band. In approach A an empty delivery leaves the stored rows untouched. In approach B the Data Store marks the rows of an empty delivery as deleted, and the vault reads only rows not marked, so it keeps the earlier bands as well. Generated: tables, history views, loaders. Configured: object types and the band lookup.

Historized RefTable

 

Duplicates are removed where the data has them, by a setting on the dataflow. Hubs load their keys with a distinct, as every table carrying a key feeds the hub. Satellites and store entities use a partition deduplication on the business key with a defined order. The roadshow file repeats the order header on every item row, so the roadshow order satellite keeps one row per order. The official test case adds product 20 again unchanged and product 21 again as a different product; the partition on the product id, ordered by description, keeps the delivered row. In approach A the productcategory link still stores both categories of product 21 for that load. In approach B they sit on store entities. Generated: deduplication views. Configured: mode, partition and order per dataflow.

Duplicate Data

A row without business key cannot form a hub key. The hub DeliveryService therefore carries the data quality check “Nulled Non-Nullable Business Keys”, its satellite the check “Nulled Term” on the hub reference: generated checks run before the load, log the keyless rows of delivery 1 with the reason in an error table and exclude them from the load. Where a foreign key is empty, the project setting “Nulled Business Keys Point to Hub Singleton” points the link to the hub’s singleton record (hash key X’00’), so every link row has all its hub references. After delivery 3 the hub holds 82 keys plus the singleton. In approach B the check sits on the Store Entity LIEFERDIENST. Generated: checks, error tables, singleton insert. Configured: data quality rules, project setting.

Rows without Businesskey

Customer attributes live in the satellite Customer on the Customer hub. Each load hashes the delivered attributes and compares the hash with the current version of the key; a different hash writes a new version and closes the previous one. A change back to an earlier value is a new version too, because the comparison is with the current version only, so customer 107 has three versions. In approach B the Data Store versions the customer first (Store Entity KUNDE, all attributes SCD type 2) and the vault satellite reads the current store version; the result is the same three versions. Generated: hash, delta view, loader with version closing. Configured: satellite attributes.

Changes in Customer Data

We built the warehouse twice. Approach A (Raw Vault → Business Vault → Mart) detects deletions in the vault: the Customer hub gets a Record Tracking Satellite with delete detection “FullSet”, which closes the appearance of missing keys per load and reopens returning ones. Approach B (Data Store → Data Vault → Mart) detects deletions once, in the Data Store: the Store Entity Kunde flags a missing key as a new version with BG_IsDeleted, and the vault carries that flag into the Customer satellite instead of tracking keys itself. Both show customer 70 valid, deleted, valid across the three deliveries, and both data marts report the same figures. Generated: delete detection, flag propagation. Configured: delete detection method per object.

Deletions of Customers

A foreign key that points to a missing customer is still loaded. The Customer hub is fed by every table that carries a customer id, including the delivery addresses, so 997, 998 and 999 become hub keys without a satellite row, and the Link DeliveryAddress_Customer keeps the six relationships. Alternatively, the relationship flag “Use Embryo Loader” generates a loader that adds missing keys to the hub before a link or satellite is loaded, without extra hub dataflows. In the mart, a fact row whose customer has no dimension row gets the unknown member (key -1); roadshow orders referencing customers delivered later resolve on 2022-03-25. Approach B gives the same figures. Generated: hub and link loaders, unknown member, dimension lookup. Configured: hub dataflows or embryo loader flag.

Invalid Foreignkeys

The web shop tables are cumulative, so a missing order is a deletion. In approach A the hubs Order and OrderItem each get a Record Tracking Satellite with delete detection “FullSet”, fed by the web shop tables only: the roadshow files contain one sales day each, and a full-set comparison over them would mark every earlier day as deleted. The fact Sales leaves out orders and items whose current tracking row says they are gone. In approach B the Data Store detects the deletion on the Store Entities BESTELLUNG and POSITION; the vault carries the flag as IS_DELETED in the satellites Order_Webshop and OrderItem_Webshop, and the fact filters on it. Both marts count the five orders only until they disappear. Generated: tracking, flags, loaders. Configured: delete detection, fact filter.

Deletion of Orders

The fact Sales is loaded as a snapshot per report date: every load inserts all current order items with the dimension keys valid at that moment. Customer, Product and OnTimeCategory are SCD type 2 dimensions; the fact lookup takes the version valid at the effective timestamp, mapped to the timestamp of the load, so each snapshot uses the versions valid at its report date. The category tree changes its keys with every replacement, so the Category dimension keeps both key sets (SCD type 1), and each snapshot stores the product’s category key at its load. Product 20 sits under Gemüse › Mittelzehrer on 2022-03-11 and 2022-03-25, under Mittelzehrer › Gemüse on 2022-03-18. Approach B gives the same rows. Generated: SCD views, lookups, loaders. Configured: SCD types, fact load strategy.

Changes in Dimensions

The mart has one fact, Sales, at order-item grain and seven dimensions: Customer, AssociationPartner, Product, Category, DeliveryAddress, Order and OnTimeCategory. Measures: quantity, price, gross revenue (quantity × price), discount, revenue (gross revenue minus discount, as the challenge defines it), association bonus, net revenue, openorder flag, fully-delivered flag, last delivery date and delivery deviation in days. The discount is a percentage: per order in the web shop, per item on the roadshow; 2 percent of roadshow revenue is the bonus of the hosting association. Each load inserts a complete snapshot with the load timestamp as report date. The figures of approaches A and B match the expected results of the challenge for all three report dates. Generated: tables, lookups, loaders. Configured: measures as term expressions of the fact.

KeyFigures

The two rules sit at different places in the two approaches. In approach A they run in the Business Vault: the Business Driving Key Link Order_Resolved (Order, Customer, AssociationPartner, driving key Order) takes each order’s delivered customer and partner, fills a missing roadshow customer by credit card and valid-to, and a missing partner from the contact customer. In approach B the rules run early, in the raw Driving Key Link OrderItem, against the current store versions of customers and association partners. In both, the Business Satellite Order_Status derives open flag, fullydelivered flag, last delivery date and deviation in days with window functions over the delivery link. Generated: views, tables, loaders. Manual: the rule expressions, written as term mappings and join conditions.

Business Rules

 

Lineage comes from the model, not from parsing code. Every term mapping in biGENIUS-X records which source term feeds which target term, so the GUI shows a term-based lineage across all layers: for REVENUE from the stage columns MENGE and PREIS of Position and RS_Bestellung and the discounts of Bestellung and RS_Bestellung, through the order item satellites and the current view OrderItem_Current, to the fact Sales. Two data-pipe views structure the model: Challenges (the objects that answer the 13 challenges) and Datamart (every object on the path to the fact). In approach B the lineage continues into the Data Store project, whose entities appear in the vault project as linked objects. Generated: lineage from the term mappings. Configured: data-pipe views; nothing is maintained separately.

Data Lineage

Errors are caught at three points. Before generation, the architecture validation reports modeling errors, such as a satellite without a relationship to its hub; an error blocks generation, a warning is listed in the generated output (three per vault project). During loading, every generated loader runs in one transaction, rolls back on failure, logs the error to the event log and raises it, so the task fails and its successors do not run; the root task suspends after a configurable number of failures. Faulty data is handled in the model: a data quality rule logs keyless rows in an error table and excludes them, missing references resolve to the singleton or the unknown member. Generated: validation, transactions, logging, data quality checks. Configured: data quality rules, failure threshold.

Error Handling

 

The generator derives the load order from the model and writes it, for Snowflake, as a task graph: one root task, one task per loader and one end task. Raw vault loaders depend only on the stage tables they read: with hash keys, hubs, links and satellites load in parallel. Business vault, PIT and mart tasks wait for every object their dataflows read, the fact last. Approach A has 89 tasks with 193 dependencies; approach B two graphs, store (43) and vault (64), run in that order. For the historic load timestamps of the challenge, a script called the 87 loaders of A in the graph’s order. Other platforms use similar approaches, and Airflow DAGs can be generated for every technology. Generated: task graph and dependencies. Configured: nothing.

Orchestration

Generation produces one artifact package per project: a README with generator version, branch and object counts, the SQL (configurable as one file per layer, used here, or one file per deployment object), the load control scripts with the task graph, and deployment scripts. Environment-specific names (database, schema, warehouse, load interval) are placeholders filled per environment from replacement_config.json, so the same code goes to every environment. There are three ways to deploy: the Deployment Agent, installed next to the target platform, deploys from biGENIUS-X and shows which branch is deployed where; Push to Repo commits the artifacts to the project’s Git repository for a CI/CD pipeline (Azure DevOps, GitHub Actions, GitLab); or the package is downloaded and deployed with the included script. Generated: all SQL and scripts. Configured: environment values.

Deployment

 

We schedule with Snowflake’s own task scheduler (load control option Depending Tasks; the alternatives include Airflow). The generated root task carries the schedule, the warehouse, the failure threshold and a guard against overlapping runs, all as placeholders filled at deployment. A generated helper script enables the graph, runs it once by hand, shows the current and past runs and the loader log, and suspends it again. Deployment suspends a scheduled graph first and stops if a run is still active. Each loader task runs on the warehouse of its layer, so layers can be sized separately. For the challenge the graphs stayed suspended, because the three deliveries had to be loaded with historic load timestamps. Generated: root task, helper script. Configured: interval, warehouse, threshold.

Scheduling

The model is platform-independent; the target platform is chosen by the generator. biGENIUS-X generates for Microsoft SQL Server, Oracle, Snowflake, Microsoft Fabric Warehouse, Microsoft Fabric Lakehouse and Databricks, plus dbt projects on Databricks and Snowflake (dbt on Snowflake for the Data Vault only). The generators cover the architectures Stage, Data Vault, Data Store, Dimensional and Data Mart. For the Willibald challenge we used Snowflake: approach A with the VaultAndMart generator, approach B with the Datastore and VaultAndMart generators. Moving a project to another platform means switching the generator and remapping the platform data types, not remodeling. Generated: all platform-specific code. Configured: generator choice per project.

Supported Databases

biGENIUS-X is a cloud application (software as a service) for modeling, generating and deploying a data warehouse; nothing is installed for modeling. Users work in a browser: the latest Google Chrome, the latest Mozilla Firefox, or one of the last two major versions of Microsoft Edge. Access requires a license and login credentials (a trial can be requested on bigenius-x.com), and each project needs a metadata Git repository (Azure DevOps, GitHub, GitLab or Bitbucket) connected with a personal access token. The generated code runs on the customer’s own data platform. For the Willibald solution that was a Snowflake account; the generated deployment script uses PowerShell 7 and SnowSQL, or the artifacts are pushed to the project’s Git repository for a CI/CD pipeline. Configured: target platform connection values.

Installation

Klicke außerhalb der Vergleichs-Bar um sie zu schließen.
Vergleichen
Vergleichen ×
Vergleich starten! Zurück zur Seite