duql: an index into a derived column must read the column, not a record field
PitfallVerified 2 Oct 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.
Symptom#
referenced_fields compared the whole base path l[1] against derived names, so an index into a derived column read a missing record field (null).
Cause#
The whole base path was compared against derived names instead of the path's root key.
Fix#
A path whose root key is defined by an earlier stage now reads the column.
Evidence#
duql arrays work (E7); the fix made the index read the derived column.
Also found by searching
- index into a derived column read a missing record field and returned null
- referenced_fields compared the whole base path l[1] against derived names
- a path whose root key is defined by an earlier stage must read the column
- duql array index on a derived column gave null