1
0
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:
David Hall
2018-10-09 17:06:01 -05:00
parent 1a7fca7fbc
commit e1d8211f27
19 changed files with 2275 additions and 10 deletions

View File

@ -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;