1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-05 16:15:50 +03:00

add max row size as configuration

This commit is contained in:
mariadb-KristinaPavlova
2025-07-17 12:44:10 +03:00
parent a47dff1454
commit 02b7e33379
2 changed files with 8 additions and 2 deletions

View File

@@ -678,10 +678,14 @@ AlterTableProcessor::DDLResult AlterTableProcessor::processPackageInternal(
bool AlterTableProcessor::tableTooBig(ddlpackage::QualifiedName& fTableNam)
{
//check fi there are more thank 500 rows
//check fi there are more thank MAX BATCH SIZE rows
DMLTable tableProc;
tableProc.set_TableName(fTableNam.fName);
if(tableProc.get_RowList().size() > 500)
string maxRowSizeAlterString;
config::Config* config = config::Config::makeConfig();
maxRowSizeAlterString = config->getConfig("SystemConfig", "MaxRowSizeAlter");
uint64_t maxRowSizeAlter = config::Config::uFromText(maxRowSizeAlterString);
if(tableProc.get_RowList().size() > maxRowSizeAlter)
{
return true;
}