1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-24 14:20:59 +03:00

MCOL-2091 Special UDAF reset code for multi-distinct queries

This commit is contained in:
David Hall
2019-04-11 15:44:46 -05:00
parent 28e743bf38
commit f1b908abeb
2 changed files with 48 additions and 18 deletions

View File

@@ -630,7 +630,7 @@ protected:
if (fAggMapPtr) fAggMapPtr->clear();
}
void resetUDAF(uint64_t funcColID);
void resetUDAF(RowUDAFFunctionCol* rowUDAF);
inline bool isNull(const RowGroup* pRowGroup, const Row& row, int64_t col);
inline void makeAggFieldsNull(Row& row);
@@ -710,6 +710,9 @@ protected:
static const static_any::any& doubleTypeId;
static const static_any::any& longdoubleTypeId;
static const static_any::any& strTypeId;
// For UDAF along with with multiple distinct columns
vector<SP_ROWAGG_FUNC_t>* fOrigFunctionCols = NULL;
};
//------------------------------------------------------------------------------