1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-02 06:13:16 +03:00

chore(rbo,QA): fixed recursive application of the rule.

This commit is contained in:
drrtuy
2025-08-19 17:10:18 +00:00
parent 2fccfb5ffb
commit 5368a45e05
2 changed files with 6 additions and 21 deletions

View File

@@ -98,16 +98,6 @@ bool Rule::walk(execplan::CalpontSelectExecutionPlan& csep, optimizer::RBOptimiz
execplan::CalpontSelectExecutionPlan* current = planStack.top();
planStack.pop();
// Walk nested derived
for (auto& table : current->derivedTableList())
{
auto* csepPtr = dynamic_cast<execplan::CalpontSelectExecutionPlan*>(table.get());
if (csepPtr)
{
planStack.push(csepPtr);
}
}
// Walk nested UNION UNITS
for (auto& unionUnit : current->unionVec())
{
@@ -118,7 +108,7 @@ bool Rule::walk(execplan::CalpontSelectExecutionPlan& csep, optimizer::RBOptimiz
}
}
// Walk nested subselect in filters, e.g. SEMI-JOIN
// Walk nested subselect in filters, e.g. SEMI-JOIN and also derived tables
for (auto& subselect : current->subSelectList())
{
auto* subselectPtr = dynamic_cast<execplan::CalpontSelectExecutionPlan*>(subselect.get());