Repository navigation
Description
Problem
axes.md's EF Core Operand position axis has no captured collection value: a List<T>, array, HashSet<T> or IEnumerable<T> of ranges or value sets that a query reads with Contains(column), Any(…) or Count(…). No oracle varies it. DifferentialFuzzParityTests binds each operand only as a column, an inlined constant or a single parameter.
Three bugs have come through this gap, and the oracle check on #105 shows no registered oracle catches any of them. For #46 and #71, I reverted the fix and ran every oracle, and they all stayed green.
- list.Contains(valueSetColumn) throws InvalidCastException in Npgsql #46:
wanted.Contains(valueSetColumn)threwInvalidCastExceptionin Npgsql. - list.Contains(rangeColumn) fails with 42809 'op ANY/ALL (array) requires array on right side' #71:
wanted.Contains(rangeColumn)failed on the server with42809. - Any/Count over a captured list of ranges silently merge overlapping ranges and drop empty ones #76 (open):
Any/Countover a captured range list merge overlapping ranges and drop empty ones, silently.
Claims E36 and E37 are held only by the regression tests SetCollectionContainsTests and RangeCollectionContainsTests, which are worked examples, not sweeps. E38 states #76's divergence as the documented workaround.
Change
Add a probe class, CapturedCollectionProbeTests, to the integration project, against live PostgreSQL. It sweeps:
- every discovered range type and value set type (closed, wrapper and NodaTime)
- × collection form (array,
List<T>,HashSet<T>,IEnumerable<T>) - × list contents (empty, overlapping, adjacent, with an empty element, duplicate, every shape)
- × query shape (
Any/Countalone, or beside aContainsthat reads the same collection)
The oracle is the same expression evaluated in memory.
- Register it in
oracles.json, with a seed that sends value sets as one parameter again (the list.Contains(valueSetColumn) throws InvalidCastException in Npgsql #46 defect). - Name it in the
heldByof E36 and E37. - Register today's Any/Count over a captured list of ranges silently merge overlapping ranges and drop empty ones #76 rows in
candidates.json. - Add the value and the pair to
axes.md.
Done when
- The sweep is green on main, with the Any/Count over a captured list of ranges silently merge overlapping ranges and drop empty ones #76 rows reported as known candidates.
dotnet run tools/oracles.cs seeds <seed>reports CAUGHT.- The conventions tests pass.
Activity
test: captured collection probe sweep over every range and set type