You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Review #2550 for code improvements: nested subqueries get the statement's list handed down #2679
This is not a bug report. It is an invitation to look at #2550 again, because it treats a symptom of the shared subquery list described in #2666. The goal is to understand the change and decide whether anything should be improved. The notes below come from a quick read of the diff, not from a full analysis.
The concern:
One more hand-over of the statement's subquery list. All subqueries of a statement are collected into one list, and each queriesidx points into it. A nested subquery compiled on its own cannot find its siblings, so Fix multi-level nested scalar subquery evaluation #2550 walks the compiled tree and hands each level the outer list (shareQueriesfn in compileQueries, src/40select.js). Fix UNION with nested SELECT #2518 did the same for FROM subselects, at run time.
Activity
mathiasrw commentedon Nov 26, 2026
Will be covered by #2666.