Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent take_optimizable from discarding arbitrary plan node
`take_optimizable` started from inspecting top level plan node (it should be final aggregation) and then descended trying to find matching partial aggregation. When doing so, it would ignore any single-source nodes it passes by. As a result, `AggregateStatistics` could change the plan in an undesired manner.
- Loading branch information