1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

chore(build): fixes to satisfy clang19 warnings

This commit is contained in:
Leonid Fedorov
2025-05-08 15:26:36 +00:00
committed by Leonid Fedorov
parent 9fd7f342a7
commit a0bee173f6
334 changed files with 3062 additions and 3323 deletions

View File

@ -36,7 +36,7 @@ using namespace execplan;
namespace funcexp
{
CalpontSystemCatalog::ColType Func_dayofweek::operationType(FunctionParm& fp,
CalpontSystemCatalog::ColType Func_dayofweek::operationType(FunctionParm& /*fp*/,
CalpontSystemCatalog::ColType& resultType)
{
return resultType;
@ -96,29 +96,29 @@ int64_t Func_dayofweek::getIntVal(rowgroup::Row& row, FunctionParm& parm, bool&
case CalpontSystemCatalog::CHAR:
case CalpontSystemCatalog::TEXT:
case CalpontSystemCatalog::VARCHAR:
{
const auto& valStr = parm[0]->data()->getStrVal(row, isNull);
if (valStr.isNull())
{
const auto& valStr = parm[0]->data()->getStrVal(row, isNull);
if (valStr.isNull())
{
isNull = true;
return -1;
}
val = dataconvert::DataConvert::stringToDatetime(valStr.safeString(""));
if (val == -1)
{
isNull = true;
return -1;
}
else
{
year = (uint32_t)((val >> 48) & 0xffff);
month = (uint32_t)((val >> 44) & 0xf);
day = (uint32_t)((val >> 38) & 0x3f);
}
isNull = true;
return -1;
}
break;
val = dataconvert::DataConvert::stringToDatetime(valStr.safeString(""));
if (val == -1)
{
isNull = true;
return -1;
}
else
{
year = (uint32_t)((val >> 48) & 0xffff);
month = (uint32_t)((val >> 44) & 0xf);
day = (uint32_t)((val >> 38) & 0x3f);
}
}
break;
case CalpontSystemCatalog::BIGINT:
case CalpontSystemCatalog::MEDINT: