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 This commit introduces GTest Suite into CS.
Binary NULL magic now consists of a series of BINARYEMPTYROW-s + BINARYNULL in the end. ByteStream now has hexbyte alias. Added ColumnCommand::getEmptyRowValue to support 16 byte EMPTY values.
This commit is contained in:
@ -225,7 +225,12 @@ inline string getStringNullValue()
|
||||
inline uint64_t getBinaryNullValue()
|
||||
{
|
||||
return joblist::BINARYNULL;
|
||||
}
|
||||
}
|
||||
|
||||
inline uint64_t getBinaryEmptyValue()
|
||||
{
|
||||
return joblist::BINARYEMPTYROW;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1173,10 +1178,11 @@ void RowAggregation::makeAggFieldsNull(Row& row)
|
||||
{
|
||||
// WIP This is only 1st part of the value
|
||||
uint64_t nullValue = getBinaryNullValue();
|
||||
uint64_t emptyValue = getBinaryEmptyValue();
|
||||
uint32_t offset = row.getOffset(colOut);
|
||||
row.setBinaryField_offset(&nullValue, sizeof(nullValue),
|
||||
offset);
|
||||
row.setBinaryField_offset(&nullValue, sizeof(nullValue),
|
||||
row.setBinaryField_offset(&emptyValue, sizeof(nullValue),
|
||||
offset+sizeof(nullValue));
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user