FA-1847 / Relational algebra / Member archive
Composite join: Omits the value component of a composite join key · case 02
The query violates its result contract: omits the value component of a composite join key.
Case contract
Return ID pairs matching both known k and known v. 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 fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| mixed nullable groups duplicates ties and truth flags | [[12, 12], [12, 22], [12, 32], [12, 42], [132, 122], [152, 112], [182, 12], [182, 22], [182, 32], [182, 42], [22, 12], [22, 22], [22, 32], [22, 42], [32, 12], [32, 22], [32, 32], [32, 42], [42, 12], [42, 22], [42, 32], [42, 42], [52, 12], [52, 22], [52, 32], [52, 42], [62, 12], [62, 22], [62, 32], [62, 42], [72, 52], [72, 62], [82, 52], [82, 62], [92, 52], [92, 62]] | [[152, 112], [182, 22], [182, 32], [32, 22], [32, 32], [42, 22], [42, 32], [62, 42], [72, 52]] | 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 ↗