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

clang format apply

This commit is contained in:
Leonid Fedorov
2022-02-11 12:24:40 +00:00
parent 509f005be7
commit 7c808317dc
1367 changed files with 394342 additions and 413129 deletions

View File

@@ -26,41 +26,35 @@ using namespace rowgroup;
namespace funcexp
{
CalpontSystemCatalog::ColType Func_space::operationType(FunctionParm& fp, CalpontSystemCatalog::ColType& resultType)
CalpontSystemCatalog::ColType Func_space::operationType(FunctionParm& fp,
CalpontSystemCatalog::ColType& resultType)
{
return resultType;
return resultType;
}
std::string Func_space::getStrVal(rowgroup::Row& row,
FunctionParm& fp,
bool& isNull,
std::string Func_space::getStrVal(rowgroup::Row& row, FunctionParm& fp, bool& isNull,
execplan::CalpontSystemCatalog::ColType& op_ct)
{
CalpontSystemCatalog::ColDataType ct = fp[0]->data()->resultType().colDataType;
CalpontSystemCatalog::ColDataType ct = fp[0]->data()->resultType().colDataType;
// Int representation of temporal types can be a very large value,
// so exit early if this is the case
if (ct == CalpontSystemCatalog::DATE || ct == CalpontSystemCatalog::DATETIME ||
ct == CalpontSystemCatalog::TIMESTAMP || ct == CalpontSystemCatalog::TIME)
{
isNull = true;
return "";
}
// Int representation of temporal types can be a very large value,
// so exit early if this is the case
if (ct == CalpontSystemCatalog::DATE ||
ct == CalpontSystemCatalog::DATETIME ||
ct == CalpontSystemCatalog::TIMESTAMP ||
ct == CalpontSystemCatalog::TIME)
{
isNull = true;
return "";
}
int64_t count = fp[0]->data()->getIntVal(row, isNull);
int64_t count = fp[0]->data()->getIntVal(row, isNull);
if (isNull || count < 1)
return "";
if (isNull || count < 1)
return "";
string result(count, ' ');
string result(count, ' ');
return result;
return result;
}
} // namespace funcexp
} // namespace funcexp
// vim:ts=4 sw=4: