pub fn has_scalar_subquery(ast: &Ast) -> boolExpand description
True if ast contains any scalar-flagged correlated subquery (anywhere in its
WHERE tree or a nested/related subquery). A cheap gate so a caller can skip the
resolve_scalars clone when there is nothing to fold — the peer of the planner’s
has_flippable_exists.