You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-3503 add MODA aggregate function
This commit is contained in:
4
dbcon/mysql/ha_calpont_execplan.cpp
Normal file → Executable file
4
dbcon/mysql/ha_calpont_execplan.cpp
Normal file → Executable file
@ -4950,6 +4950,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);
|
||||
|
Reference in New Issue
Block a user