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

MCOL-641 This commit cleans up Row methods and adds couple UT for Row.

This commit is contained in:
Roman Nozdrin
2020-02-20 22:28:38 +00:00
parent b07db9a8f4
commit de85e21c38
9 changed files with 196 additions and 97 deletions

View File

@ -477,11 +477,11 @@ void FuncExp::evaluate(rowgroup::Row& row, std::vector<execplan::SRCP>& expressi
{
// WIP make this a separate function w and w/o overflow check
if (expression[i]->resultType().colDataType == execplan::CalpontSystemCatalog::DECIMAL)
row.setBinaryField(reinterpret_cast<uint8_t*>(&val.__v.__s128),
row.setBinaryField_offset(reinterpret_cast<uint8_t*>(&val.__v.__s128),
expression[i]->resultType().colWidth,
row.getOffset(expression[i]->outputIndex()));
else
row.setBinaryField(reinterpret_cast<uint8_t*>(&val.__v.__u128),
row.setBinaryField_offset(reinterpret_cast<uint8_t*>(&val.__v.__u128),
expression[i]->resultType().colWidth,
row.getOffset(expression[i]->outputIndex()));
}