You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-911 getAggCols needs to look into the objects
This commit is contained in:
committed by
Andrew Hutchings
parent
de457bfe4b
commit
c4269871fe
@ -55,15 +55,29 @@ void getAggCols(execplan::ParseTree* n, void* obj)
|
||||
SimpleFilter *sf = dynamic_cast<SimpleFilter*>(tn);
|
||||
ConstantFilter *cf = dynamic_cast<ConstantFilter*>(tn);
|
||||
if (sc)
|
||||
{
|
||||
list->push_back(sc);
|
||||
}
|
||||
else if (fc)
|
||||
{
|
||||
fc->hasAggregate();
|
||||
list->insert(list->end(), fc->aggColumnList().begin(), fc->aggColumnList().end());
|
||||
}
|
||||
else if (ac)
|
||||
{
|
||||
ac->hasAggregate();
|
||||
list->insert(list->end(), ac->aggColumnList().begin(), ac->aggColumnList().end());
|
||||
}
|
||||
else if (sf)
|
||||
{
|
||||
sf->hasAggregate();
|
||||
list->insert(list->end(), sf->aggColumnList().begin(), sf->aggColumnList().end());
|
||||
}
|
||||
else if (cf)
|
||||
{
|
||||
cf->hasAggregate();
|
||||
list->insert(list->end(), cf->aggColumnList().begin(), cf->aggColumnList().end());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user