You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
MCOL-265 Add support for TIMESTAMP data type
This commit is contained in:
@ -227,6 +227,26 @@ int64_t Func_greatest::getDatetimeIntVal(rowgroup::Row& row,
|
||||
return greatestStr;
|
||||
}
|
||||
|
||||
int64_t Func_greatest::getTimestampIntVal(rowgroup::Row& row,
|
||||
FunctionParm& fp,
|
||||
bool& isNull,
|
||||
execplan::CalpontSystemCatalog::ColType& ct)
|
||||
{
|
||||
int64_t str = fp[0]->data()->getTimestampIntVal(row, isNull);
|
||||
|
||||
int64_t greatestStr = str;
|
||||
|
||||
for (uint32_t i = 1; i < fp.size(); i++)
|
||||
{
|
||||
int64_t str1 = fp[i]->data()->getTimestampIntVal(row, isNull);
|
||||
|
||||
if ( greatestStr < str1 )
|
||||
greatestStr = str1;
|
||||
}
|
||||
|
||||
return greatestStr;
|
||||
}
|
||||
|
||||
int64_t Func_greatest::getTimeIntVal(rowgroup::Row& row,
|
||||
FunctionParm& fp,
|
||||
bool& isNull,
|
||||
|
Reference in New Issue
Block a user