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

feat(cbo,rules,QA): clean SC iface usage in various places

This commit is contained in:
drrtuy
2025-07-29 18:53:50 +00:00
parent 8f4e9228b2
commit bd219cc4af
3 changed files with 15 additions and 62 deletions

View File

@@ -529,7 +529,8 @@ void SimpleColumn::setDerivedTable()
std::optional<CalpontSystemCatalog::TableAliasName> SimpleColumn::singleTable()
{
return {CalpontSystemCatalog::TableAliasName(fSchemaName, fTableName, fTableAlias, fViewName)};
return {
CalpontSystemCatalog::TableAliasName(fSchemaName, fTableName, fTableAlias, fViewName, fisColumnStore)};
}
// @todo move to inline
@@ -759,21 +760,21 @@ void SimpleColumn::setSimpleColumnList()
}
}
std::optional<CalpontSystemCatalog::TableAliasName> sameTableCheck(std::vector<SimpleColumn*> simpleColumnList)
std::optional<CalpontSystemCatalog::TableAliasName> sameTableCheck(
std::vector<SimpleColumn*> simpleColumnList)
{
std::optional<CalpontSystemCatalog::TableAliasName> tan;
for (SimpleColumn* simpleColumn : simpleColumnList)
{
CalpontSystemCatalog::TableAliasName stan(
simpleColumn->schemaName(), simpleColumn->tableName(),
simpleColumn->tableAlias(), simpleColumn->viewName());
CalpontSystemCatalog::TableAliasName stan(simpleColumn->schemaName(), simpleColumn->tableName(),
simpleColumn->tableAlias(), simpleColumn->viewName());
if (!tan.has_value())
tan = stan;
else if (stan != tan)
return std::nullopt;
}
return tan;
}