1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-265 Add support for TIMESTAMP data type

This commit is contained in:
Gagan Goel
2019-03-17 14:14:03 -04:00
parent 8a7ccd7d93
commit e89d1ac3cf
167 changed files with 4346 additions and 250 deletions

View File

@ -203,6 +203,26 @@ int64_t Func_least::getDatetimeIntVal(rowgroup::Row& row,
return leastStr;
}
int64_t Func_least::getTimestampIntVal(rowgroup::Row& row,
FunctionParm& fp,
bool& isNull,
execplan::CalpontSystemCatalog::ColType& op_ct)
{
int64_t str = fp[0]->data()->getTimestampIntVal(row, isNull);
int64_t leastStr = str;
for (uint32_t i = 1; i < fp.size(); i++)
{
int64_t str1 = fp[i]->data()->getTimestampIntVal(row, isNull);
if ( leastStr > str1 )
leastStr = str1;
}
return leastStr;
}
int64_t Func_least::getTimeIntVal(rowgroup::Row& row,
FunctionParm& fp,
bool& isNull,