summaryrefslogtreecommitdiff
path: root/sql/item_sum.h
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2023-01-28 18:22:55 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2023-01-28 18:22:55 +0100
commita977054ee0bd1601a5252ec02459bac0241d9bfc (patch)
treefa5d780bbdcd977294e519e6890fa2ea48436f8c /sql/item_sum.h
parent765291d63e0c2a10c513a354e9ecb2e905570775 (diff)
parentc73985f2ce8a391582787f3e310a011c1a712bec (diff)
downloadmariadb-git-a977054ee0bd1601a5252ec02459bac0241d9bfc.tar.gz
Merge branch '10.3' into 10.4
Diffstat (limited to 'sql/item_sum.h')
-rw-r--r--sql/item_sum.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sql/item_sum.h b/sql/item_sum.h
index 724581fc6ec..38a59ccae82 100644
--- a/sql/item_sum.h
+++ b/sql/item_sum.h
@@ -366,7 +366,14 @@ public:
int8 aggr_level; /* nesting level of the aggregating subquery */
int8 max_arg_level; /* max level of unbound column references */
int8 max_sum_func_level;/* max level of aggregation for embedded functions */
- bool quick_group; /* If incremental update of fields */
+
+ /*
+ true (the default value) means this aggregate function can be computed
+ with TemporaryTableWithPartialSums algorithm (see end_update()).
+ false means this aggregate function needs OrderedGroupBy algorithm (see
+ end_write_group()).
+ */
+ bool quick_group;
/*
This list is used by the check for mixing non aggregated fields and
sum functions in the ONLY_FULL_GROUP_BY_MODE. We save all outer fields