Continuous learning and continuous improvement × Data engineering
Business lens: Continuous learning and continuous improvement · Technology lens: Data engineering
Reading scope: Original synthetic teaching. Sources support background, not invented figures or tested outcomes.
A schema change can change the meaning of a number
A business combines old and new payment records after updating its export format. Both files have a numeric amount field, but the old version stores minor units and the new version stores major units. The import runs and every number fits the column type. Data engineering learning begins with semantic contracts, not merely structural validity. Define the meaning, unit and version of each input before summing it. The managerial consequence can be severe: a technically plausible total may imply a sales increase that never occurred. Continuous improvement therefore needs a field dictionary and a correction process that make source changes visible before downstream reports rely on them.
A version-aware normalisation rule
Record the source version and the agreed canonical unit. Apply the appropriate conversion only to records whose version and meaning are established; unresolved records should remain visible for review. Structural constraints can enforce some declared conditions, and transactions can group local database changes, but they do not establish the source's real-world meaning or undo remote effects. The public database readings support that background only. Preserve the raw values and conversion evidence where appropriate so a corrected report can be reproduced. Do not decide that every unusually large amount must be an error: a legitimate large payment and a unit mismatch need different evidence and responses.
An invented mixed-unit reconciliation
The synthetic old file contains twenty records, each storing 10,000 paise, which represents ₹100. The new file contains thirty records, each storing ₹100 directly. Correct normalisation gives 20 × ₹100 + 30 × ₹100 = ₹5,000. Naively treating every raw value as rupees gives 20 × 10,000 + 30 × 100 = ₹203,000. The overstatement is ₹198,000 and the naive total is 203,000/5,000 = 40.6 times the correct total. The records and units are stipulated; no real payment data is verified. The calculation shows why a numeric schema alone cannot protect meaning, not that every old file requires the same conversion or every suspicious increase has this cause.
Who resolves the interpretation
The source owner confirms the export contract and effective version, the data engineer implements the authorised normalisation, and finance verifies the reporting unit and reconciliation. The governance owner records definitions and unresolved cases. Management decides which earlier decisions or publications require correction. If the wrong total was circulated, communicate the revised amount, reason and affected scope rather than silently replacing it. Consultation should include staff who understand source exceptions, while technical confidence should remain tied to evidence. A converter that divides every amount by one hundred would fix the old rows but damage the new ones, showing why indiscriminate cleaning can create a second error.
Learning from the change and preventing recurrence
Add a small fixture with both source versions and known canonical results. Test the selection rule as well as the arithmetic. Include an unknown version to demonstrate the unresolved path instead of guessing its unit. Monitor source contracts and preserve the input/transformation version associated with a published report. Reprocessing should have a defined target state and avoid duplicating accepted business events. Correcting the dataset does not automatically reverse a purchasing or staffing decision already made from it. A useful improvement combines clearer source communication, explicit metadata and bounded technical checks; no live pipeline, database execution or complete governance audit is claimed here.
Questions and learning levels
Who verifies the export version? Whom does the inflated total mislead? Whose records establish the unit? What conversion is authorised? Where are raw and normalised values linked? When did the new format begin? Why can valid numbers still be semantically wrong? Which unknown version needs review? How will the corrected ₹5,000 reach its users? Foundation work explains major and minor units. Undergraduate work recomputes the totals, difference and 40.6 ratio. Postgraduate work evaluates migration, exceptions and correction authority. Research work proposes a study of semantic-contract failures with appropriate source evidence and sampling. The portfolio should show a version-aware rule and an honest uncertainty path rather than assert that a universal cleaning formula solves the problem.
Study questions and answers
Compute correct and naive totals.
Correct: twenty plus thirty records at ₹100 each gives ₹5,000. Naive raw-value sum is ₹203,000.
Marking guide: Credit correct total 5,000 versus naive 203,000 under version-specific units. Require normalising meaning rather than only adding raw values.
Compute overstatement and ratio.
Difference is ₹198,000; the naive total is 40.6 times the correct ₹5,000 under the stipulated units.
Marking guide: Credit overstatement 198,000 and ratio 203,000/5,000 = 40.6. Keep difference and multiplicative ratio distinct.
Why not divide all records by one hundred?
Only the old version stores paise. Dividing the new rupee values also would introduce an error; unknown versions require investigation.
Marking guide: Credit only the old version storing paise. Reject dividing already-rupee records by 100; unknown versions need investigation.
Practice task
Create a mixed-version field dictionary, independently reconcile both totals and draft a version-aware conversion, unresolved-record and report-correction procedure.
Sources and further reading
- PostgreSQL documentation — Constraints
Scope: Selected structural-constraint guidance checked. Structure does not prove real-world identity, use permission or factual correctness.
Access: Public selected reading available without an account in this check. Certificates, webinar playback, hosted execution and service entitlements were not checked. - PostgreSQL — Transactions tutorial
Scope: Selected database transaction background checked. No external database execution or cross-system recovery guarantee claimed.
Access: Public selected reading retrieved without an account. Free reading does not establish free services, certificates or hosted execution.