You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-3423 Don't move decimal for LONG DOUBLE. Clear long double extra bits after copy, not before.
This commit is contained in:
@ -264,13 +264,15 @@ void WF_sum_avg<T>::operator()(int64_t b, int64_t e, int64_t c)
|
||||
continue;
|
||||
|
||||
T valIn;
|
||||
getValue(colIn, valIn);
|
||||
CDT cdt;
|
||||
getValue(colIn, valIn, &cdt);
|
||||
// checkSumLimit(fSum, valIn);
|
||||
|
||||
if ((!fDistinct) || (fSet.find(valIn) == fSet.end()))
|
||||
{
|
||||
long double val = valIn;
|
||||
if (scale)
|
||||
if (scale &&
|
||||
cdt != CalpontSystemCatalog::LONGDOUBLE)
|
||||
{
|
||||
val /= pow(10.0, scale);
|
||||
}
|
||||
|
Reference in New Issue
Block a user