MDEV-19185: Pushdown constant function defined with subquery
The bug occurs because of the wrong pushdown of constant function defined with subquery from HAVING into WHERE. Subqueries can't be pushed into WHERE. To fix it with_subquery() call is added to check if the function contains subquery.
Showing
Please register or sign in to comment