From da26d16dd1c07b34f46ba4b00527ebf76810d57d Mon Sep 17 00:00:00 2001 From: Monty Date: Sat, 9 Sep 2017 16:20:55 +0300 Subject: 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 --- sql/handler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/handler.h') diff --git a/sql/handler.h b/sql/handler.h index 97f46db5c44..43a28c1d473 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -3499,7 +3499,7 @@ public: return 0; } virtual void set_part_info(partition_info *part_info) {return;} - virtual void return_record_by_parent() {return;} + virtual void return_record_by_parent() { return; } virtual ulong index_flags(uint idx, uint part, bool all_parts) const =0; -- cgit v1.2.1