You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
Add support for DateTime data type in ROUND()
This commit is contained in:
@ -628,5 +628,14 @@ string Func_round::getStrVal(Row& row,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int64_t Func_round::getDatetimeIntVal(Row& row,
|
||||||
|
FunctionParm& parm,
|
||||||
|
bool& isNull,
|
||||||
|
CalpontSystemCatalog::ColType& op_ct)
|
||||||
|
{
|
||||||
|
return parm[0]->data()->getIntVal(row, isNull);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace funcexp
|
} // namespace funcexp
|
||||||
// vim:ts=4 sw=4:
|
// vim:ts=4 sw=4:
|
||||||
|
@ -197,6 +197,11 @@ public:
|
|||||||
FunctionParm& fp,
|
FunctionParm& fp,
|
||||||
bool& isNull,
|
bool& isNull,
|
||||||
execplan::CalpontSystemCatalog::ColType& op_ct);
|
execplan::CalpontSystemCatalog::ColType& op_ct);
|
||||||
|
|
||||||
|
int64_t getDatetimeIntVal(rowgroup::Row& row,
|
||||||
|
FunctionParm& fp,
|
||||||
|
bool& isNull,
|
||||||
|
execplan::CalpontSystemCatalog::ColType& op_ct);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user