FAILURE MAP
← Case archive

FA-2569 / Analytical processing / Member archive

Rolling three: Retains only one predecessor · case 04

The query violates its result contract: retains only one predecessor.

Member previewVariant 4 · 3 implementations · 8 checks per implementation

Case contract

Return each ID and sum of its v plus at most two preceding rows in the same key in ID order. 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
left facts without references[[104, null], [114, 0], [124, 0], [134, null], [14, null], [144, -1], [154, 2], [164, 2], [174, null], [184, 5], [194, 0], [204, 0], [24, 0], [34, 2], [44, 4], [54, 1], [64, 2], [74, -2], [84, 0], [94, 2]][[104, null], [114, 0], [124, 0], [134, null], [14, null], [144, -1], [154, 2], [164, 2], [174, null], [184, 4], [194, 0], [204, -1], [24, 0], [34, 2], [44, 4], [54, 3], [64, 4], [74, -2], [84, 0], [94, 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 ↗