diff options
author | Monty <monty@mariadb.org> | 2017-09-09 16:20:55 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2017-12-03 13:58:35 +0200 |
commit | da26d16dd1c07b34f46ba4b00527ebf76810d57d (patch) | |
tree | 387112d3d377201a9465b24e9dfa68d5f9340f31 /storage/spider/spd_db_mysql.cc | |
parent | 6f5a7e9227252512ecf2178b6d56c46318aef7d7 (diff) | |
download | mariadb-git-da26d16dd1c07b34f46ba4b00527ebf76810d57d.tar.gz |
Add direct aggregates
Spider patches 026 (MDEV-7723), 031 (MDEV-7727) and 058 (MDEV-12532)
This allows the storage engine to internally compute sum and count
operations.
- Enhance sum items to be able to store the sum value directly.
- return_record_by_parent() is enabled in spider as
HANDLER_HAS_DIRECT_AGGREGATE is defined
- Added spd_environ.h to spider. This is loaded first to ensure that all
MariaDB specific defines that are used by include files are properly
defined.
- This code is tested by the existing spider tests direct_aggregate.test
and direct_aggregate_part.test and also partition.test
Diffstat (limited to 'storage/spider/spd_db_mysql.cc')
-rw-r--r-- | storage/spider/spd_db_mysql.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/spider/spd_db_mysql.cc b/storage/spider/spd_db_mysql.cc index 4e2a41e9fa6..6dee59a10a5 100644 --- a/storage/spider/spd_db_mysql.cc +++ b/storage/spider/spd_db_mysql.cc @@ -16,6 +16,7 @@ #define MYSQL_SERVER 1 #include <my_global.h> #include "mysql_version.h" +#include "spd_environ.h" #if MYSQL_VERSION_ID < 50500 #include "mysql_priv.h" #include <mysql/plugin.h> |