You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
MCOL-4801 Replace Row methods getStringLength() and getStringPointer() to getConstString()
This commit is contained in:
@@ -408,16 +408,19 @@ void AggregateColumn::evaluate(Row& row, bool& isNull)
|
||||
break;
|
||||
|
||||
default:
|
||||
if (row.equals(CPNULLSTRMARK, fInputIndex))
|
||||
{
|
||||
auto const str = row.getConstString(fInputIndex);
|
||||
if (str.eq(utils::ConstString(CPNULLSTRMARK)))
|
||||
isNull = true;
|
||||
else
|
||||
fResult.strVal = row.getStringField(fInputIndex);
|
||||
fResult.strVal = str.toString();
|
||||
|
||||
// stringColVal is padded with '\0' to colWidth so can't use str.length()
|
||||
if (strlen(fResult.strVal.c_str()) == 0)
|
||||
isNull = true;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (fResultType.colDataType == CalpontSystemCatalog::STRINT)
|
||||
|
Reference in New Issue
Block a user