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-1040 Fix returnedColumn assumption
Code appears to assume a simple returned column is derrived when that may not always be the case.
This commit is contained in:
@ -112,7 +112,7 @@ ParseTree* replaceRefCol(ParseTree*& n, CalpontSelectExecutionPlan::ReturnedColu
|
|||||||
else if (rc)
|
else if (rc)
|
||||||
{
|
{
|
||||||
SimpleColumn* sc = dynamic_cast<SimpleColumn*>(rc);
|
SimpleColumn* sc = dynamic_cast<SimpleColumn*>(rc);
|
||||||
if (sc)
|
if (sc && (sc->colPosition() > -1))
|
||||||
{
|
{
|
||||||
ReturnedColumn* tmp = derivedColList[sc->colPosition()]->clone();
|
ReturnedColumn* tmp = derivedColList[sc->colPosition()]->clone();
|
||||||
delete sc;
|
delete sc;
|
||||||
|
Reference in New Issue
Block a user