pub(crate) fn find_agg_node_within_select(
plan: &LogicalPlan,
already_projected: bool,
) -> Option<&Aggregate>Expand description
Recursively searches children of LogicalPlan to find an Aggregate node if exists prior to encountering a Join, TableScan, or a nested subquery (derived table factor). If an Aggregate or node is not found prior to this or at all before reaching the end of the tree, None is returned.