1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

Merge pull request #879 from dhall-MariaDB/MCOL-3503

MCOL-3503 add MODA aggregate function
This commit is contained in:
Andrew Hutchings
2019-10-07 08:04:10 +01:00
committed by GitHub
11 changed files with 1045 additions and 9 deletions

4
dbcon/mysql/ha_calpont_execplan.cpp Normal file → Executable file
View File

@ -4951,6 +4951,10 @@ ReturnedColumn* buildAggregateColumn(Item* item, gp_walk_info& gwi)
mcsv1sdk::mcsv1Context& context = udafc->getContext();
context.setName(isp->func_name());
// Get the return type as defined by CREATE AGGREGATE FUNCTION
// Most functions don't care, but some may.
context.setMariaDBReturnType((mcsv1sdk::enum_mariadb_return_type)isp->field_type());
// Set up the return type defaults for the call to init()
context.setResultType(udafc->resultType().colDataType);
context.setColWidth(udafc->resultType().colWidth);