A DUQL correlated term whose outer side also reads the sub-query's own fields is a compile error
FactVerified 30 Sep 2026Holds project: dftracer-utils
Fact. A statement and the evidence for it.
Statement#
A correlated term whose ^. side also reads fields of the sub-query itself, such as x + ^.y == z, is a compile error with the message mixes. Before this rule, the rewrite silently read x from the enclosing row, which gave a wrong result.
Evidence#
Observer note from the duql correlated-ranges work on dftracer-utils, 2026-09-30.
Also found by searching
- duql sub-query where x + ^.y == z -> compile error: mixes
- my correlated sub-query term mixing inner and outer fields now fails to compile but used to run
- why does duql reject a correlated condition that reads both ^. outer fields and the sub-query's own fields?
- correlated predicate mixing outer and inner columns gave wrong result before, now an error
- duql compile error 'mixes' for correlated term x + ^.y == z
- correlated sub-query where outer reference and inner fields are in the same expression
- why did duql start rejecting ^. expressions that read the sub-query's own fields?
- wrong result silently read x from enclosing row, now error mixes