Evidence for args.<k> stored under the bare name k pruned unprefixed queries
PitfallVerified 2 Oct 2026Holds project: dftracer-utils
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.
Symptom#
A query on a top-level field (id == 5) returned 0 rows when the index was used.
Cause#
Evidence for args.<k> was stored under the bare name k. A query reading a top-level k first was then pruned by evidence built from args.k.
Fix#
FileIndexData::evidence_name maps query names to evidence names: args.<k> reads k; a bare name that a record may hold at top level reads none. args.<k> queries now prune too.
Evidence#
Fixed in the "index-statistics-budget" work (engine item 1) of dftracer-utils, from the session notes. Related: cf0e3f44ea.
Also found by searching
- id == 5 returns 0 rows with the index but matches in a full scan
- args.<k> evidence pruned a query on a top-level field k
- index evidence stored under the bare name collides with a top-level field
- what does FileIndexData::evidence_name do