diff options
author | Igor Babaev <igor@askmonty.org> | 2017-08-12 19:58:16 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2017-08-12 19:58:55 -0700 |
commit | 61bbabb202ddada20dc39970734ce93b0709de0d (patch) | |
tree | e6469830381f43c94f17f832586c71008f1809d3 /sql/sql_select.h | |
parent | c9981fbee2436dcb893ff74e57a0f461a2020f92 (diff) | |
download | mariadb-git-61bbabb202ddada20dc39970734ce93b0709de0d.tar.gz |
Implemented condition pushdown into derived tables / views
with window functions (mdev-10855).
This patch just modified the function pushdown_cond_for_derived()
to support this feature.
Some test cases demonstrating this optimization were added to
derived_cond_pushdown.test.
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h index 6350cd73189..3592752698d 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -1409,6 +1409,11 @@ public: bool set_group_rpa; /** Exec time only: TRUE <=> current group has been sent */ bool group_sent; + /** + TRUE if the query contains an aggregate function but has no GROUP + BY clause. + */ + bool implicit_grouping; bool is_for_splittable_grouping_derived; bool with_two_phase_optimization; @@ -1701,11 +1706,6 @@ private: */ void optimize_distinct(); - /** - TRUE if the query contains an aggregate function but has no GROUP - BY clause. - */ - bool implicit_grouping; void cleanup_item_list(List<Item> &items) const; bool make_aggr_tables_info(); |