FAILURE MAP
← Case archive

FA-2827 / Schema migrations / Member archive

Migration join backfill: Matches NULL keys despite the ordinary equality contract · case 02

The query violates its result contract: matches null keys despite the ordinary equality contract.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Return each a ID and sum of known b.v for matching known k, retaining NULL when there are no known matches. Inputs are finite relations a=rows and b=refs with columns (id,k,v,w,flag,parent). IDs are unique within each relation, None is SQL NULL, keys are ASCII strings or None, and other values are integers or None. Return an unordered result bag as lists sorted by repr, preserving multiplicity unless explicitly distinct.

Why this case matters

Executes actual in-memory SQLite relational semantics. The fixtures exercise empty inputs, nullable groups, duplicate facts, known zero, negative values, peer ties and partition boundaries. This models the specified query contract, not optimizer performance, disk durability or a complete migration transaction.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
mixed nullable groups duplicates ties and truth flags[[102, 0], [112, 0], [12, 7], [122, 0], [132, null], [142, null], [152, 2], [162, null], [172, null], [182, 7], [192, null], [202, null], [22, 7], [32, 7], [42, 7], [52, 7], [62, 7], [72, -2], [82, -2], [92, -2]][[102, null], [112, null], [12, 7], [122, null], [132, null], [142, null], [152, 2], [162, null], [172, null], [182, 7], [192, null], [202, null], [22, 7], [32, 7], [42, 7], [52, 7], [62, 7], [72, -2], [82, -2], [92, -2]]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 ↗