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

Merge pull request #2052 from drrtuy/MCOL-4815

MCOL-4815 ColumnCommand was replaced with a set of derived classes sp…
This commit is contained in:
Roman Nozdrin
2021-07-21 17:36:35 +03:00
committed by GitHub
8 changed files with 786 additions and 348 deletions

View File

@ -133,37 +133,19 @@ ColumnCommandJL::~ColumnCommandJL()
{
}
// The other leg is in PP, its name is ColumnCommand::makeCommand.
void ColumnCommandJL::createCommand(ByteStream& bs) const
{
bs << (uint8_t) COLUMN_COMMAND;
colType.serialize(bs);
bs << (uint8_t) isScan;
// cout << "sending lbid " << lbid << endl;
bs << traceFlags;
bs << filterString;
#if 0
cout << "filter string: ";
for (uint32_t i = 0; i < filterString.length(); ++i)
cout << (int) filterString.buf()[i] << " ";
cout << endl;
#endif
bs << (uint8_t) colType.colDataType;
bs << (uint8_t) colType.colWidth;
bs << (uint8_t) colType.scale;
bs << (uint8_t) colType.compressionType;
bs << (uint32_t) colType.charsetNumber;
bs << BOP;
bs << filterCount;
serializeInlineVector(bs, fLastLbid);
//bs << (uint64_t)fLastLbid;
CommandJL::createCommand(bs);
/* XXXPAT: for debugging only, we can get rid of this one */
// bs << colType.columnOID;
// cout << "filter Count is " << filterCount << " ----" << endl;
}
void ColumnCommandJL::runCommand(ByteStream& bs) const