1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

This patch complements the patch for mdev-10855.

It allows to push conditions into derived with window functions not
only in the cases when the window specifications of these window
functions use the same partition, but also in the cases when the window
functions use partitions that share only some fields. In these
cases only the conditions over the common fields are pushed.
This commit is contained in:
Igor Babaev
2017-08-19 15:02:29 -07:00
parent 4305c3ca57
commit d7b45e01b4
5 changed files with 356 additions and 5 deletions

View File

@ -1246,6 +1246,7 @@ public:
}
bool have_window_funcs() const { return (window_funcs.elements !=0); }
ORDER *find_common_window_func_partition_fields(THD *thd);
bool cond_pushdown_is_allowed() const
{ return !olap && !explicit_limit; }