Skip dftracer-name pruning gates for path-schema records
PitfallVerified 30 Sep 2026Holds project: dftracer-utils
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.
Symptom#
A path-schema file is pruned incorrectly when it has names such as name, pid or ts that also exist in dftracer records.
Cause#
Pruning gates used the field name as proof that dftracer-specific semantics applied.
Fix#
Carry by_path from the file's recorded schema in the pruning context. Skip dftracer-name gates when it is set. In a regression test, exceed the chunk-bloom distinct-value threshold so bloom pruning does not hide this path.
Evidence#
Observer inbox 5f2574cd39 reports the wrong gates and the schema flag fix. It warns that small distinct-value test data can exercise only bloom pruning instead.
Also found by searching
- path-schema file with fields name pid ts gets pruned and query returns too few rows
- chunk pruning drops records from a custom schema file that shares field names with dftracer
- how do I make the pruner skip dftracer-specific gates for by_path schema files
- pruning bug hidden by bloom filter in small test data, need many distinct values
- records from a custom path schema file are pruned wrongly when they have fields name pid ts
- chunk pruning drops rows of non-dftracer schema file because field named ts
- how do I stop dftracer-specific pruning gates from applying to path-schema files?
- bloom pruning hides the bug in test, small distinct values, by_path flag in pruning context