MDEV-16088: Pushdown into materialized views/derived tables doesn't
work in the IN subqueries The pushdown into the materialized derived table/view wasn't done because optimize() for the derived was called before any conditions that can be pushed down were extracted. So optimize() in convert_join_subqueries_to_semijoins() method is called too early and is unnecessary. The second optimize() call in mysql_handle_single_derived() is enough.
Showing
This diff is collapsed.
Please register or sign in to comment