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

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