Ray's Knowledge Base
Unlock

Disable path projection only for folds that require every field

DecisionVerified 30 Sep 2026Holds project: dftracer-utils
Decision. The context, the choice, why, and the options that were turned down.

Context#

A plugin fold must read every field of a path-schema record even when the View has a select list.

Decision#

In trace/views/fold.cpp, let fuse give the scanner a copy of the view definition without a path list when a fold requests all fields.

Why#

This preserves full-record plugin behavior without disabling projection for unrelated scans. Observer inbox 5f2574cd39 records this decision.

Rejected options#

Treating every fold with needs_args as an all-path fold disabled projection for most scans, since most folds set needs_args.

Also found by searching

  • plugin fold sees missing fields when the View has a select list on a path-schema trace
  • my fold that needs the full record gets only projected columns
  • how do I make a fold read every field without disabling projection for all scans
  • needs_args disables projection for most folds, fuse passes view without path list in fold.cpp
  • plugin fold needs every field but select list projection drops them
  • path projection disabled for all scans because folds set needs_args
  • how should fuse handle a fold that requires all fields in a View with select
  • trace/views/fold.cpp scanner gets view definition without path list, full-record plugin