TICKIT-10: Data Contract and Quality Assertions
Track: TICKIT Marketplace • Difficulty: Intermediate • Mastery Points: 150 PTS
Business Problem Scenario
To prevent breaking schema changes from degrading downstream BI dashboards, TICKIT's Lakehouse platform team requires every publishing domain to establish an Open Data Contract Standard (ODCS v3.0.2) YAML contract. You must author the production contract for the gold.fact_sales dataset declaring server coordinates, primary key expectations, and data quality constraints.
Engineering Objective
Author a valid Bitol ODCS v3.0.2 YAML contract for gold.fact_sales. • Contract Declarations: - apiVersion: v3.0.2 - kind: DataContract - id: urn:datacontract:tickit:sales - server: tickit-prod - dataset: gold.fact_sales with column sales_sk having logicalType: integer, primaryKey: true Key Concepts: - Open Data Contract Standard (ODCS): Industry standard for defining declarative, machine-readable data contracts.
Target Table: gold.fact_sales (sales_sk BIGINT, salesid INT, pricepaid DECIMAL(10,2))
Verification & Architecture Insights
Machine-readable data contracts bridge the gap between data producers and consumers, catching contract-breaking changes in CI before production deployment.