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

fix(QA,joblist): SimpleFilter::setSimpleColumnListExtended() now populates the correct SimpleColumn list.

This commit is contained in:
drrtuy
2025-09-10 17:43:18 +00:00
parent 0d609ec485
commit 2506d3fe1e
4 changed files with 12 additions and 31 deletions

View File

@@ -138,39 +138,26 @@ AggregateColumn::AggregateColumn(const AggregateColumn& rhs, const uint32_t sess
* Methods
*/
void AggregateColumn::setSimpleColumnList()
{
fSimpleColumnList.clear();
return setSimpleColumnList_(false);
}
void AggregateColumn::setSimpleColumnListExtended()
{
fSimpleColumnListExtended.clear();
return setSimpleColumnList_(true);
return setSimpleColumnListExtended_();
}
void AggregateColumn::setSimpleColumnList_(const bool extractSCsfromAggCol)
void AggregateColumn::setSimpleColumnListExtended_()
{
for (const auto& parm : aggParms())
{
if (!parm)
continue;
auto aggParmsAsSCVec = (extractSCsfromAggCol) ? getSCsFromRCForExtended(parm) : getSCsFromRC(parm);
auto aggParmsAsSCVec = getSCsFromRCForExtended(parm);
for (auto* sc : aggParmsAsSCVec)
{
if (sc)
{
if (extractSCsfromAggCol)
{
fSimpleColumnListExtended.push_back(sc);
}
else
{
fSimpleColumnList.push_back(sc);
}
fSimpleColumnListExtended.push_back(sc);
}
}
}