Contract

Volume contract

An open-source ODCS contract asking a BigQuery table for at least 1000 rows, measured by Enterprise Data quality.

Use it when A table should never land half empty without someone hearing about it.

By The Nistor team

apiVersion: v3.1.0
kind: DataContract
id: acme-orders
name: acme_orders
version: 1.0.0
status: active
domain: sales
schema:
  - name: orders
    physicalName: orders
    physicalType: table
    properties:
      - name: order_id
        physicalType: STRING
        logicalType: string
        required: true
        primaryKey: true
    quality:
      - type: library
        rule: rowCount
        dimension: completeness
        mustBeGreaterOrEqualTo: 1000
customProperties:
  - property: nodeId
    value: BigqueryTable_acme-data-prod.sales.orders

Taken from docs/integrations/odcs.md

The rowCount rule becomes the contract's volume dimension: at least 1000 rows. The nodeId custom property binds the contract to the BigQuery table on the graph. You declare the volume dimension in open source. It is measured from data-quality results, so it has no data without the Data quality module, part of Nistor Enterprise.

With that module, the dimension breaches when the latest row count is below the floor. A breach opens a contract breach and an incident, and the recovery resolves both. Without it, the dimension has nothing to measure and never breaches.

See your platform as one graph, on your laptop. Explore the demo estate, or book a walkthrough on one like yours.