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
fix(sql): apply outer ORDER BY / OFFSET / DISTINCT over subquery bodies
A subquery/derived-table body that cannot absorb the outer query's
constraints (e.g. a k-NN search leaf under an outer ORDER BY / OFFSET /
DISTINCT, or a reorder-dependent LIMIT) previously dropped those
constraints silently, returning the body's raw rows.
Add SqlPlan::Subquery, lowered to a coordinator-resolved
QueryOp::PostProcess that gathers the body's rows and applies
filter -> offset -> sort -> distinct -> project -> limit exactly once
over the full result, then wire it through every plan visitor,
routing, RLS injection, authorization, schema-derivation, and
materialization site that matches on SqlPlan/QueryOp/PhysicalPlan.
0 commit comments