You've already forked mariadb-columnstore-engine
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user