EX-10: Building an Auditable Source-to-Target (S2T) Row
Track: Lineage & BCBS 239 • Difficulty: Beginner • Mastery Points: 100 PTS
Business Problem Scenario
Automated lineage scanners that inspect live query plans can miss manual Excel transformations, offline reconciliation scripts, or batch pipeline hops. Under Basel Committee on Banking Supervision (BCBS) 239 Principle 3 (Data Architecture and IT Infrastructure), every transformation hop that feeds a statutory financial return must be formally registered in an immutable Source-to-Target (S2T) catalog with a verifiable Git commit hash, transformation logic, and certified data steward.
Engineering Objective
Write an INSERT INTO gov.s2t statement registering hop HOP-DEP-008. • Values to Insert: - hop_id: 'HOP-DEP-008' - cde_id: 'CDE-007' - source_table: 'bronze.core_balances' - source_column: 'ledger_balance' - target_table: 'silver.core_balances' - target_column: 'ledger_balance' - transform_logic: 'CAST(balance AS DECIMAL(18,2))' - git_hash: 'git:7f3a9b' (simulated 7-character Git commit SHA) - steward: 'david.chen@globaldynadatumbank.example' Key Concepts: - BCBS 239: International standard mandating complete aggregate risk reporting and data traceability. - S2T Mapping: Authoritative catalog documenting data transformation logic, source provenance, and technical steward accountability.
Target Table: gov.s2t (hop_id STRING, cde_id STRING, source_table STRING, source_column STRING, target_table STRING, target_column STRING, transform_logic STRING, git_hash STRING, steward STRING)
Verification & Architecture Insights
BCBS 239 audits require verifiable reproducibility; attaching Git hashes to S2T rows connects business numbers directly to the code that calculated them, bridging automated AST lineage with manual off-system handoffs.