From 02b7e33379af8dcb664003a43d452d0e91b57774 Mon Sep 17 00:00:00 2001 From: mariadb-KristinaPavlova Date: Thu, 17 Jul 2025 12:44:10 +0300 Subject: [PATCH] add max row size as configuration --- dbcon/ddlpackageproc/altertableprocessor.cpp | 8 ++++++-- oam/etc/Columnstore.xml | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dbcon/ddlpackageproc/altertableprocessor.cpp b/dbcon/ddlpackageproc/altertableprocessor.cpp index 3c337afd8..01ad0466c 100644 --- a/dbcon/ddlpackageproc/altertableprocessor.cpp +++ b/dbcon/ddlpackageproc/altertableprocessor.cpp @@ -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; } diff --git a/oam/etc/Columnstore.xml b/oam/etc/Columnstore.xml index 23795f805..82b6fe6bc 100644 --- a/oam/etc/Columnstore.xml +++ b/oam/etc/Columnstore.xml @@ -70,6 +70,8 @@ the entire subdirectories "joins" & "aggregates" and recreates it to make sure no files are left behind. --> /tmp/columnstore_tmp_files + + 500 um