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

Fabric Warehouse Data Store

Applies to
Platform: Fabric Warehouse
Architecture: Data Store

Fabric Warehouse Data Store generates a Stage and a Store layer for Fabric Warehouse as T-SQL notebooks with a notebook load control. Select the Generator Configuration Fabric Warehouse Data Store when you add a project whose Data Store runs in a Fabric Warehouse.

Scope and output

  • Platform: Microsoft Fabric Warehouse. The configuration is available since Generator 2.0.
  • Layers: Source, Stage and Store. Dataflow Modeling shows Stage and the Data Store in the Bronze column. See Understand the Layering concept.
  • Output: T-SQL deployment notebooks, a deployment pipeline definition and Python load control notebooks, described in Fabric Warehouse - Artifacts.

Solid arrows are dataflows between the layers of the project; dashed outlines mark layers of linked projects, and dashed arrows are their dataflows:

Layer flow of a Data Store project: data flows from Source into Stage and from Stage into Data Store. Data Store can also read Stage or Data Store objects of a linked project.

Prerequisites

  • A Fabric workspace with a warehouse for the target layers and a lakehouse for the load control execution log. The deployment creates missing schemas and the log as a Delta table, but no warehouse.
  • An Azure Key Vault with the tenant ID, client ID and client secret of a service principal, which the load control notebook uses to connect to the warehouse.

A setup example is in Fabric Warehouse - Target environment, the placeholders in Fabric Warehouse - Placeholder values.

Sources and linked projects

Stage source views read each source table by its three-part name [<database>].[<schema>].[<table>]. The source system has the type Microsoft Fabric Warehouse, and its database and schema names are placeholders. Source systems per generator configuration lists the discovery types.

You can import a linked project as a source and export this project as a linked project.

Supported model objects

Capabilities and limitations

  • Keys: a Store Entity has no hash key and no surrogate key. Its primary key is the business key; a historized Store Entity adds BG_ValidFromTimestamp in front. Keys are created as NONCLUSTERED and NOT ENFORCED.
  • Change detection: Delta Detection on the Store Entity sets how rows are compared. The default Hash Value Comparison compares BG_RowHashScd1 and BG_RowHashScd2.
  • Delete detection: Configure delete detection adds the column BG_IsDeleted and a delete detection table, view and loader.
  • Data quality: Store Entity supports data quality rules.
  • Indexes: index management is not available, and the generated tables have no indexes.
  • Hashing: row hashes are HASHBYTES('SHA1', ...) with the default Hash Algorithm, cast to and stored as VARBINARY(20). See How biGENIUS-X builds hash values.
  • Validity: with the default Persist Validity on, historized tables have a BG_ValidToTimestamp column.
  • Deployment: the pipeline definition runs the load control deployment first, then the deployment notebooks in order. See Fabric Warehouse - Deployment.
  • Data types: validation reports warning ID-35000 when the length, precision or scale of a term does not fit its Fabric Warehouse data type. Warning ID-35001 flags a business key term of type varchar(max) or varbinary(max), because constraints on it could block the deployment.

Project properties

The configuration offers these project properties, with their defaults:

Data types

Default Term data types by platform lists the data types of the Default Terms on Fabric Warehouse.

Platform differences

The table compares the configuration with Microsoft SQL Server Data Store of the same release:

ItemFabric WarehouseMicrosoft SQL Server
Primary keysnonclustered, not enforcedclustered
Persist Validity defaultonoff
Index managementnot availableavailable
Artifact Output Modenot availableavailable
Target Object Comment Typenot availableavailable
LoadControl OptionsMulti-Threading NotebookNative Load Control, Airflow
Notebook Deployment Objects Limitavailablenot available

Example

A Store Entity dd_deletedset_scd_0_1_2 with the business key term CUSTOMER_ID has SCD1 and SCD2 terms and delete detection. It generates this table. The excerpt shows the example schema store in place of the placeholder, leaves out seven columns and adds line breaks:

CREATE TABLE [store].[DS_SE_dd_deletedset_scd_0_1_2] (
     [BG_LoadTimestamp] DATETIME2(6) NOT NULL
    ,[BG_UpdateTimestamp] DATETIME2(6) NOT NULL
    ,[BG_SourceSystem] VARCHAR(255) NULL
    ,[BG_ValidFromTimestamp] DATETIME2(6) NOT NULL
    ,[BG_ValidToTimestamp] DATETIME2(6) NULL
    ,[BG_IsDeleted] BIT NOT NULL
    ,[BG_RowHashScd1] VARBINARY(20) NOT NULL
    ,[BG_RowHashScd2] VARBINARY(20) NOT NULL
    ,[CUSTOMER_ID] INT NOT NULL
    ,[CUSTOMER] VARCHAR(100) NOT NULL
    ,[CUSTOMER_TYPE] VARCHAR(100) NOT NULL
)
;
ALTER TABLE [store].[DS_SE_dd_deletedset_scd_0_1_2]
    ADD CONSTRAINT [PK_DS_SE_dd_deletedset_scd_0_1_2]
    PRIMARY KEY NONCLUSTERED ([BG_ValidFromTimestamp], [CUSTOMER_ID])
    NOT ENFORCED;

The table holds every version of a customer; the primary key starts with BG_ValidFromTimestamp. With Microsoft SQL Server Data Store, the same table has no BG_ValidToTimestamp column, and its primary key is clustered.

Release differences

Project Settings shows the Generator Version of your project.

  • Generator 2.0: first release of the configuration.
  • Generator 2.2: the project properties Persist Validity, Create Result Views and the four Hash properties; the model object properties Increment Management Type on Stage, and Delete Detection Partial Terms and Delete Detection Partial Operator on Store Entity; the validation warnings ID-35000 and ID-35001.

Related articles