You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-07 03:22:57 +03:00
MCOL-523 don't set empty object as default
This commit is contained in:
@@ -2404,8 +2404,19 @@ void TupleAggregateStep::prep1PhaseDistinctAggregate(
|
||||
vector<SP_ROWAGG_FUNC_t>::iterator it = functionVec2.begin();
|
||||
while (it != functionVec2.end())
|
||||
{
|
||||
SP_ROWAGG_FUNC_t funct;
|
||||
SP_ROWAGG_FUNC_t f = *it++;
|
||||
if ((f->fOutputColumnIndex == k) &&
|
||||
if (f->fAggFunction == ROWAGG_UDAF)
|
||||
{
|
||||
RowUDAFFunctionCol* udafFuncCol = dynamic_cast<RowUDAFFunctionCol*>(f.get());
|
||||
funct.reset(new RowUDAFFunctionCol(
|
||||
udafFuncCol->fUDAFContext,
|
||||
udafFuncCol->fInputColumnIndex,
|
||||
udafFuncCol->fOutputColumnIndex,
|
||||
udafFuncCol->fAuxColumnIndex));
|
||||
functionSub2.push_back(funct);
|
||||
}
|
||||
else if ((f->fOutputColumnIndex == k) &&
|
||||
(f->fAggFunction == ROWAGG_COUNT_ASTERISK ||
|
||||
f->fAggFunction == ROWAGG_COUNT_COL_NAME ||
|
||||
f->fAggFunction == ROWAGG_SUM ||
|
||||
@@ -2419,7 +2430,7 @@ void TupleAggregateStep::prep1PhaseDistinctAggregate(
|
||||
f->fAggFunction == ROWAGG_CONSTANT ||
|
||||
f->fAggFunction == ROWAGG_GROUP_CONCAT))
|
||||
{
|
||||
SP_ROWAGG_FUNC_t funct(new RowAggFunctionCol(
|
||||
funct.reset(new RowAggFunctionCol(
|
||||
f->fAggFunction,
|
||||
f->fStatsFunction,
|
||||
f->fInputColumnIndex,
|
||||
|
Reference in New Issue
Block a user