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:
@ -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; }
|
||||
|
Reference in New Issue
Block a user