1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-07 03:22:57 +03:00

feat(optimizer): basic rewrite Union unit into Sub with union

This commit is contained in:
drrtuy
2025-06-11 21:52:23 +00:00
parent e8dc93b46d
commit 1baaf878d0
2 changed files with 70 additions and 22 deletions

View File

@@ -282,9 +282,13 @@ string CalpontSelectExecutionPlan::toString(const size_t ident) const
output << ">>Filters" << endlWithIndent(ident);
if (filters() != nullptr)
{
filters()->walk(ParseTree::print, output);
}
else
{
output << "empty filter tree" << endlWithIndent(ident);
}
// Group by columns
const CalpontSelectExecutionPlan::GroupByColumnList& gbc = groupByCols();
@@ -913,8 +917,8 @@ execplan::SCSEP CalpontSelectExecutionPlan::cloneWORecursiveSelects()
newPlan->returnedCols(newReturnedCols);
// Deep copy of filters
// if (fFilters)
// newPlan->filters(new ParseTree(*fFilters));
if (fFilters)
newPlan->filters(new ParseTree(*fFilters));
// Deep copy of filter token list
newPlan->filterTokenList(fFilterTokenList);