You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-5021 Add prototype support for the AUX column in CREATE/DROP
DDL commands, single and multi-value INSERTs, cpimport, and DELETE.
This commit is contained in:
@ -89,6 +89,7 @@ DropTableProcessor::DDLResult DropTableProcessor::processPackage(
|
||||
CalpontSystemCatalog::RIDList tableColRidList;
|
||||
CalpontSystemCatalog::DictOIDList dictOIDList;
|
||||
execplan::CalpontSystemCatalog::ROPair roPair;
|
||||
CalpontSystemCatalog::OID tableAUXColOid;
|
||||
std::string errorMsg;
|
||||
ByteStream bytestream;
|
||||
uint64_t uniqueId = 0;
|
||||
@ -145,6 +146,7 @@ DropTableProcessor::DDLResult DropTableProcessor::processPackage(
|
||||
try
|
||||
{
|
||||
roPair = systemCatalogPtr->tableRID(tableName);
|
||||
tableAUXColOid = systemCatalogPtr->tableAUXColumnOID(tableName);
|
||||
}
|
||||
catch (IDBExcept& ie)
|
||||
{
|
||||
@ -580,6 +582,18 @@ DropTableProcessor::DDLResult DropTableProcessor::processPackage(
|
||||
return result;
|
||||
}
|
||||
|
||||
// MCOL-5021 Valid AUX column OID for a table is > 3000
|
||||
// Tables that were created before this feature was added will have
|
||||
// tableAUXColOid = 0
|
||||
if (tableAUXColOid > 3000)
|
||||
{
|
||||
oidList.push_back(tableAUXColOid);
|
||||
CalpontSystemCatalog::ROPair auxRoPair;
|
||||
auxRoPair.rid = 0;
|
||||
auxRoPair.objnum = tableAUXColOid;
|
||||
tableColRidList.push_back(auxRoPair);
|
||||
}
|
||||
|
||||
// Save the oids to a file
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user