Data for decisions and managerial involvement × Data engineering
Business lens: Data for decisions and managerial involvement · Technology lens: Data engineering
Reading scope: Original synthetic teaching. Primary links support selected background, not invented business outcomes or implemented organisational systems.
Rows are not automatically accepted business events
A manager asks how many transactions were processed after a batch import. Data engineering must distinguish physical input rows, business identities and accepted events. Repeated delivery can add rows without adding new business activity. Conflicting versions can also leave an identity unresolved rather than create a second legitimate transaction. Begin with the event identifier, the meaning of identical replay and the policy for a conflicting payload. A high imported-row count can look like growth even when the extra rows are delivery artefacts. The useful report should show what was accepted, what was ignored and what still needs evidence under the chosen contract.
Define replay and conflict before counting
The synthetic source starts with twenty-five unique event identities. Three additional rows are identical replays of three uncontested identities. Two further rows contain conflicting versions of two different original identities, neither of which belongs to the identical-replay group. Thus the fixture has thirty physical rows and twenty-five distinct identities. The stipulated policy accepts uncontested identities once, ignores identical extra rows and holds both versions of a conflicting identity. Transaction and constraint documentation supports structural controls; CSV reading supports input handling. None establishes that an identifier is factually correct or that a complete production deduplication system has been implemented. Keep the policy and conflict evidence visible before aggregating.
Reconcile the fixture precisely
Under the stipulated rule, twenty-three identities are uncontested and accepted once. Two identities remain held for review, represented by four physical rows. Three extra identical replay rows are ignored. Physical-row reconciliation is 23 accepted representatives + 4 held version rows + 3 ignored extra rows = 30. Identity acceptance is 23/25 = 92%; unresolved identity share is 2/25 = 8%. Counting twenty-seven rows after merely removing three identical extras would still overstate accepted business events because conflicting versions remain. The calculation is an invented event ledger, not a factual transaction count. It demonstrates why physical delivery completeness and business acceptance require separately defined units and states.
Hand off conflicts without silently choosing a winner
The source owner explains which version has supporting evidence. Data engineers preserve identifiers, payload differences and processing status. The business decision owner authorises the accepted correction, and finance or operations checks the downstream effect where appropriate. Management needs an honest unresolved count rather than pressure to make every row green. Automatically selecting the latest arrival can be wrong if arrival order does not determine business authority. Consultation should identify the actual rule and the evidence required to apply it. A held identity may block an operational task, so its exception queue needs an owner and follow-up condition instead of becoming a permanent technical side table.
Recover and reprocess under a defined target state
Choose one held identity and document an authorised resolution. Explain how reprocessing preserves a single accepted event while retaining the correction history. A transaction can help coordinate updates, but does not settle the underlying business dispute or guarantee all distributed effects have been reversed. Add a fixture with an unknown identity rule and describe the uncertainty path. This reading is a synthetic replay-and-reconciliation exercise, not a deployed messaging system or an exactly-once guarantee. Actual implementations need appropriate persistence, concurrency, source validation and recovery checks. The learner's useful output is a reproducible accounting of states and a correction plan that respects both technical and business ownership.
Progression and question-word review
Who resolves a conflict? Whom does a held event delay? Whose source evidence establishes the version? What unit is counted? Where are extra deliveries retained? When is replay identical? Why is twenty-seven not the accepted event count? Which rule governs correction? How is reprocessing checked? Foundation work separates rows and identities. Undergraduate work reconciles all thirty rows and calculates the two identity rates. Postgraduate work critiques authority, ordering and downstream corrections. Research work proposes a suitable study of replay errors with explicit event contracts. The portfolio should show the accepted, held and ignored states without presenting a convenient delivery count as unquestioned managerial evidence.
Study questions and answers
How many physical rows and identities are present?
Thirty rows represent twenty-five identities: three extra identical replays and two extra conflicting versions.
Marking guide: Credit thirty rows, twenty-five identities, three extra identical replays and two extra conflicting versions.
What is accepted under the stipulated rule?
Twenty-three uncontested identities accepted once; two conflicting identities are held. Acceptance is 92% of identities.
Marking guide: Credit twenty-three uncontested identities accepted once and two conflicting identities held; 23/25 = 92%.
Reconcile all physical rows.
23 accepted representatives + 4 held version rows + 3 ignored identical extras = 30 rows.
Marking guide: Credit physical-row reconciliation 23 representatives + four held version rows + three ignored replay extras = 30.
Practice task
Build the identity/version ledger, reconcile thirty physical rows and design an authorised conflict resolution with safe reprocessing criteria.
Practice bridge
- Reconcile 30 rows into accepted representatives, held versions and ignored extras.
- Use the record-reconciliation lesson to state which source evidence can resolve one held identity without creating another accepted event.
Boundary: The worksheet demonstrates identity accounting, not a production replay, persistence or exactly-once implementation.
Sources and further reading
- PostgreSQL — Constraints
Scope: Selected positivity and presence-rule semantics; not actual database execution or factual source validation.
Access: Public selected reading without an account; service entitlements, certificates and hosted execution not verified. - 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. - Python — CSV file reading and writing
Scope: Selected format-aware reading background; parsing preserves declared structure, not factual source meaning or business authority.
Access: Selected public reading without an account; certificates, paid service entitlements and hosted execution not checked.