FA-45410 / Data systems / Member archive
MERGE treats matched rows as insert-if-absent · case 05
MERGE treats matched rows as insert-if-absent.
Case contract
Merge source [key,value] into a target unique-key table. Any repeated source key is CARDINALITY and leaves target unchanged; otherwise matched keys replace payloads and unmatched keys insert. Return status and sorted final rows. Source null keys are ordinary distinct keys in this stipulated integer-key model only (inputs here are integer keys).
Why this case matters
A bounded deterministic data engine model makes representation and changelog faults reproducible.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| matched update | ["OK", [[10, 5]]] | ["OK", [[10, 6]]] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗