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-641 Add support for functions (Part 1).
This commit is contained in:
committed by
Roman Nozdrin
parent
554c6da8e8
commit
cfe35b5c7f
@ -66,7 +66,11 @@ IDB_Decimal Func_abs::getDecimalVal(Row& row,
|
||||
CalpontSystemCatalog::ColType&)
|
||||
{
|
||||
IDB_Decimal d = parm[0]->data()->getDecimalVal(row, isNull);
|
||||
d.value = llabs(d.value);
|
||||
|
||||
if (parm[0]->data()->resultType().colWidth == datatypes::MAXDECIMALWIDTH)
|
||||
d.s128Value = (d.s128Value < 0) ? -d.s128Value : d.s128Value;
|
||||
else
|
||||
d.value = llabs(d.value);
|
||||
return d;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user