Rindle docs and package mapSkip to main content

has_scalar_subquery

Function has_scalar_subquery 

Source
pub fn has_scalar_subquery(ast: &Ast) -> bool
Expand 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.