You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-1759 Add corr(), covar_pop(), covar_samp(), regr_sxx(), regr_sxy(), regr_syy() functions as UDAF
This commit is contained in:
@ -104,7 +104,7 @@ mcsv1_UDAF::ReturnCode regr_intercept::nextValue(mcsv1Context* context, ColumnDa
|
||||
|
||||
if (valx != 0 && scalex > 0)
|
||||
{
|
||||
valx /= pow(10.0, (double)scaley);
|
||||
valx /= pow(10.0, (double)scalex);
|
||||
}
|
||||
|
||||
data->sumx += valx;
|
||||
@ -183,7 +183,7 @@ mcsv1_UDAF::ReturnCode regr_intercept::dropValue(mcsv1Context* context, ColumnDa
|
||||
|
||||
if (valx != 0 && scalex > 0)
|
||||
{
|
||||
valx /= pow(10.0, (double)scaley);
|
||||
valx /= pow(10.0, (double)scalex);
|
||||
}
|
||||
|
||||
data->sumx -= valx;
|
||||
|
Reference in New Issue
Block a user