You've already forked mariadb-columnstore-engine
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user