1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-24 14:20:59 +03:00

MCOL-1822 Intermediate checkin. DISTINCT not working.

This commit is contained in:
David Hall
2019-02-25 14:54:46 -06:00
parent ab931e7c51
commit a2aa4b8479
67 changed files with 2391 additions and 1018 deletions

View File

@@ -121,6 +121,26 @@ double Func_greatest::getDoubleVal(rowgroup::Row& row,
return (double) greatestStr;
}
long double Func_greatest::getLongDoubleVal(rowgroup::Row& row,
FunctionParm& fp,
bool& isNull,
execplan::CalpontSystemCatalog::ColType& op_ct)
{
long double str = fp[0]->data()->getLongDoubleVal(row, isNull);
long double greatestStr = str;
for (uint32_t i = 1; i < fp.size(); i++)
{
long double str1 = fp[i]->data()->getLongDoubleVal(row, isNull);
if ( greatestStr < str1 )
greatestStr = str1;
}
return greatestStr;
}
std::string Func_greatest::getStrVal(rowgroup::Row& row,
FunctionParm& fp,
bool& isNull,