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

BG_IsDeleted

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

BG_IsDeleted marks the rows of a Store Entity that delete detection adds for business keys deleted in the source. A deleted row has the value 1, every other row 0.

Objects that carry it

Store Entity. The term exists only when Delete Detection Method is not None. The table, the result view and the views and loaders of the load carry it.

Value

  • A delivered row gets 0.
  • A key that the load marks as deleted gets one row with 1, its business key and unknown values in all other terms.
  • Snowflake writes FALSE and TRUE instead of 0 and 1.

A change of BG_IsDeleted is stored like any other change: as a new version with SCD2 history, or in the same row with SCD1. When a deleted key returns, it gets 0 again. The rules per method are in Configure delete detection.

You cannot edit or map BG_IsDeleted.

Data type

  • Microsoft SQL Server and Fabric Warehouse: bit
  • Oracle: NUMBER(1)
  • Snowflake: BOOLEAN
  • Databricks and Fabric Lakehouse: integer

Example

A Store Entity on Microsoft SQL Server has the business key CUSTOMER_ID, SCD2 history and Delete Detection Method PartialSet with the partial term COUNTRY. Load 1 delivers customer 5 from DE. Load 3, on 2026-10-03, delivers DE rows but not customer 5. The result view then shows, with the timestamp columns shortened to dates:

CUSTOMER_ID  CUSTOMER    COUNTRY  BG_IsDeleted  ValidFrom   ValidTo
5            Customer 5  DE       0             1900-01-01  2026-10-03
5            Unknown     Unknown  1             2026-10-03  9999-12-31

To list the keys whose current row is deleted, filter the result view on BG_IsDeleted = 1 and BG_ValidToTimestamp equal to End of Universe.

Related articles