1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-05 16:15:50 +03:00

MCOL-1983 For MCOL-1676 the reset of fValOut to NULL happens too soon.

This commit is contained in:
David Hall
2018-12-13 15:49:11 -06:00
parent e8208d1690
commit cc70726a33

View File

@@ -708,12 +708,12 @@ void WF_udaf::operator()(int64_t b, int64_t e, int64_t c)
mcsv1sdk::mcsv1_UDAF::ReturnCode rc; mcsv1sdk::mcsv1_UDAF::ReturnCode rc;
uint64_t colOut = fFieldIndex[0]; uint64_t colOut = fFieldIndex[0];
bool isNull = false; bool isNull = false;
fValOut.reset();
if ((fFrameUnit == WF__FRAME_ROWS) || if ((fFrameUnit == WF__FRAME_ROWS) ||
(fPrev == -1) || (fPrev == -1) ||
(!fPeer->operator()(getPointer(fRowData->at(c)), getPointer(fRowData->at(fPrev))))) (!fPeer->operator()(getPointer(fRowData->at(c)), getPointer(fRowData->at(fPrev)))))
{ {
fValOut.reset();
// for unbounded - current row special handling // for unbounded - current row special handling
if (fPrev >= b && fPrev < c) if (fPrev >= b && fPrev < c)
b = c; b = c;