You've already forked mariadb-columnstore-engine
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user