1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-07 03:22:57 +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;
}

View File

@@ -70,6 +70,8 @@
the entire subdirectories "joins" & "aggregates" and recreates it to make sure no
files are left behind. -->
<SystemTempFileDir>/tmp/columnstore_tmp_files</SystemTempFileDir>
<!-- Maximum row size of a table for which ALTER TABLE statements are allowed-->
<MaxRowSizeAlter>500</MaxRowSizeAlter>
</SystemConfig>
<SystemModuleConfig>
<ModuleType2>um</ModuleType2>