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-4173 This patch adds support for wide-DECIMAL INNER, OUTER, SEMI, functional JOINs
based on top of TypelessData
This commit is contained in:
@ -170,6 +170,14 @@ ByteStream& ByteStream::operator<<(const uint8_t b)
|
||||
return *this;
|
||||
}
|
||||
|
||||
ByteStream& ByteStream::operator<<(const bool b)
|
||||
{
|
||||
add(b);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
ByteStream& ByteStream::operator<<(const int16_t d)
|
||||
{
|
||||
if (fBuf == 0 || (fCurInPtr - fBuf + 2U > fMaxLen + ISSOverhead))
|
||||
@ -296,6 +304,14 @@ ByteStream& ByteStream::operator>>(uint8_t& b)
|
||||
return *this;
|
||||
}
|
||||
|
||||
ByteStream& ByteStream::operator>>(bool& b)
|
||||
{
|
||||
peek(b);
|
||||
fCurOutPtr++;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
ByteStream& ByteStream::operator>>(int16_t& d)
|
||||
{
|
||||
peek(d);
|
||||
@ -382,6 +398,15 @@ void ByteStream::peek(uint8_t& b) const
|
||||
b = *((int8_t*)fCurOutPtr);
|
||||
}
|
||||
|
||||
void ByteStream::peek(bool& b) const
|
||||
{
|
||||
if (length() < 1)
|
||||
throw underflow_error("ByteStream::peek(bool): not enough data in stream to fill datatype");
|
||||
|
||||
b = *((bool*)fCurOutPtr);
|
||||
}
|
||||
|
||||
|
||||
void ByteStream::peek(int16_t& d) const
|
||||
{
|
||||
if (length() < 2)
|
||||
|
Reference in New Issue
Block a user