FA-2265 / Storage and queries / Member archive
Left join count: Combines separate left identities sharing a key · case 05
The query violates its result contract: combines separate left identities sharing a key.
Case contract
Return each a ID and the number of same-key b row matches, including zero 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 fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| left facts without references | [[105, 0], [135, 0], [145, 0], [15, 0], [155, 0], [165, 0], [175, 0], [75, 0]] | [[105, 0], [115, 0], [125, 0], [135, 0], [145, 0], [15, 0], [155, 0], [165, 0], [175, 0], [185, 0], [195, 0], [205, 0], [25, 0], [35, 0], [45, 0], [55, 0], [65, 0], [75, 0], [85, 0], [95, 0]] | 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 ↗