1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-01 06:21:41 +03:00

MCOL-641 Addition now works for DECIMAL columns with precision > 18.

This commit is contained in:
drrtuy
2020-01-26 11:07:45 +03:00
committed by Roman Nozdrin
parent 54c152d6c8
commit 98213c0094
11 changed files with 175 additions and 14 deletions

View File

@ -49,6 +49,7 @@ ReturnedColumn::ReturnedColumn(): fReturnAll (false),
fColPosition(-1),
fHasAggregate(false),
fInputIndex(-1),
fInputOffset(-1),
fOutputIndex(-1),
fExpressionId ((uint32_t) - 1)
{
@ -69,6 +70,7 @@ ReturnedColumn::ReturnedColumn(const string& sql):
fHasAggregate(false),
fData(sql),
fInputIndex(-1),
fInputOffset(-1),
fOutputIndex(-1),
fExpressionId ((uint32_t) - 1)
{
@ -88,6 +90,7 @@ ReturnedColumn::ReturnedColumn(const uint32_t sessionID, const bool returnAll):
fColPosition(-1),
fHasAggregate(false),
fInputIndex(-1),
fInputOffset(-1),
fOutputIndex(-1),
fExpressionId ((uint32_t) - 1)
{
@ -109,6 +112,7 @@ ReturnedColumn::ReturnedColumn(const ReturnedColumn& rhs, const uint32_t session
fHasAggregate(rhs.fHasAggregate),
fData(rhs.fData),
fInputIndex(rhs.fInputIndex),
fInputOffset(rhs.fInputOffset),
fOutputIndex(rhs.fOutputIndex),
fExpressionId (rhs.fExpressionId)
{
@ -141,6 +145,7 @@ void ReturnedColumn::serialize(messageqcpp::ByteStream& b) const
b << (uint64_t)fColSource;
b << (int64_t)fColPosition;
b << (uint32_t)fInputIndex;
b << (uint32_t)fInputOffset;
b << (uint32_t)fOutputIndex;
b << (int32_t)fSequence;
b << (uint8_t)fReturnAll;
@ -163,6 +168,7 @@ void ReturnedColumn::unserialize(messageqcpp::ByteStream& b)
b >> (uint64_t&)fColSource;
b >> (int64_t&)fColPosition;
b >> (uint32_t&)fInputIndex;
b >> (uint32_t&)fInputOffset;
b >> (uint32_t&)fOutputIndex;
b >> (int32_t&)fSequence;
b >> (uint8_t&)fReturnAll;