You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-641 Replaced NULL binary constants.
DataConvert::decimalToString, toString, writeIntPart, writeFractionalPart are not templates anymore.
This commit is contained in:
@ -53,6 +53,7 @@
|
||||
#include "vlarray.h"
|
||||
|
||||
#include "collation.h"
|
||||
#include "widedecimalutils.h"
|
||||
|
||||
//..comment out NDEBUG to enable assertions, uncomment NDEBUG to disable
|
||||
//#define NDEBUG
|
||||
@ -222,19 +223,8 @@ inline string getStringNullValue()
|
||||
return joblist::CPNULLSTRMARK;
|
||||
}
|
||||
|
||||
inline uint64_t getBinaryNullValue()
|
||||
{
|
||||
return joblist::BINARYNULL;
|
||||
}
|
||||
|
||||
inline uint64_t getBinaryEmptyValue()
|
||||
{
|
||||
return joblist::BINARYEMPTYROW;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
namespace rowgroup
|
||||
{
|
||||
const std::string typeStr("");
|
||||
@ -1176,14 +1166,11 @@ void RowAggregation::makeAggFieldsNull(Row& row)
|
||||
}
|
||||
else
|
||||
{
|
||||
// WIP This is only 1st part of the value
|
||||
uint64_t nullValue = getBinaryNullValue();
|
||||
uint64_t emptyValue = getBinaryEmptyValue();
|
||||
int128_t nullValue = 0;
|
||||
utils::setWideDecimalNullValue(nullValue);
|
||||
uint32_t offset = row.getOffset(colOut);
|
||||
row.setBinaryField_offset(&nullValue, sizeof(nullValue),
|
||||
offset);
|
||||
row.setBinaryField_offset(&emptyValue, sizeof(nullValue),
|
||||
offset+sizeof(nullValue));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user