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

fix(rbo,rules,QA): ExistsFilter::transform merges statistics to enable QA for EXISTS expressions.

This commit is contained in:
drrtuy
2025-09-01 15:13:17 +00:00
committed by Leonid Fedorov
parent b92e5ae155
commit 96fc875255
3 changed files with 13 additions and 3 deletions

View File

@@ -1182,10 +1182,15 @@ execplan::SCSEP CalpontSelectExecutionPlan::cloneForTableWORecursiveSelectsGbObH
// Deep copy of column map
for (const auto& entry : fColumnMap)
{
// WIP only relevant RCs must be copied
if (entry.second)
auto tableAlias = entry.second->singleTable();
// TODO We insert multiple times if there are multiple SCs for the same RC.
if (tableAlias && targetTableAlias.weakerEq(*tableAlias))
{
newColumnMap.insert({entry.first, SRCP(entry.second->clone())});
auto it = fColumnMap.find(entry.first);
if (it == fColumnMap.end())
{
newColumnMap.insert({entry.first, SRCP(entry.second->clone())});
}
}
}