You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
Merge pull request #1909 from dhall-MariaDB/MCOL-4643
MCOL-4643 reset valOut after processing UDAF
This commit is contained in:
@ -3029,6 +3029,8 @@ void RowAggregationUM::SetUDAFValue(static_any::any& valOut, int64_t colOut)
|
|||||||
// This handles the mismatch
|
// This handles the mismatch
|
||||||
SetUDAFAnyValue(valOut, colOut);
|
SetUDAFAnyValue(valOut, colOut);
|
||||||
}
|
}
|
||||||
|
// reset valOut to be ready for the next value
|
||||||
|
valOut.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
void RowAggregationUM::SetUDAFAnyValue(static_any::any& valOut, int64_t colOut)
|
void RowAggregationUM::SetUDAFAnyValue(static_any::any& valOut, int64_t colOut)
|
||||||
@ -3298,7 +3300,6 @@ void RowAggregationUM::calculateUDAFColumns()
|
|||||||
|
|
||||||
// Set the returned value into the output row
|
// Set the returned value into the output row
|
||||||
SetUDAFValue(valOut, colOut);
|
SetUDAFValue(valOut, colOut);
|
||||||
valOut.reset();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fRGContext.setUserData(NULL);
|
fRGContext.setUserData(NULL);
|
||||||
|
Reference in New Issue
Block a user