1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-10-31 18:30:33 +03:00

feat(rbo,rules,QA): support expressions in RCs

This commit is contained in:
drrtuy
2025-07-28 12:42:26 +00:00
parent b07ee73fb3
commit 134235b2d2
10 changed files with 120 additions and 75 deletions

View File

@@ -521,24 +521,10 @@ void FunctionColumn::setSimpleColumnList()
fFunctionParms[i]->walk(getSimpleCols, &fSimpleColumnList);
}
bool FunctionColumn::singleTable(CalpontSystemCatalog::TableAliasName& tan)
std::optional<CalpontSystemCatalog::TableAliasName> FunctionColumn::singleTable()
{
tan.clear();
setSimpleColumnList();
for (uint i = 0; i < fSimpleColumnList.size(); i++)
{
CalpontSystemCatalog::TableAliasName stan(
fSimpleColumnList[i]->schemaName(), fSimpleColumnList[i]->tableName(),
fSimpleColumnList[i]->tableAlias(), fSimpleColumnList[i]->viewName());
if (tan.table.empty())
tan = stan;
else if (stan != tan)
return false;
}
return true;
return sameTableCheck(fSimpleColumnList);
}
} // namespace execplan