From f1285dd79e96d096ba6accd15cbe0b0ca4b77bf0 Mon Sep 17 00:00:00 2001 From: jmrojas2332 Date: Tue, 28 Jan 2020 17:43:40 +0000 Subject: [PATCH] MCOL 2139 Fix subquery not being filtered when using view --- dbcon/mysql/ha_mcs_execplan.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dbcon/mysql/ha_mcs_execplan.cpp b/dbcon/mysql/ha_mcs_execplan.cpp index 993a6cf59..ce8f1ed8c 100755 --- a/dbcon/mysql/ha_mcs_execplan.cpp +++ b/dbcon/mysql/ha_mcs_execplan.cpp @@ -5661,6 +5661,11 @@ void gp_walk(const Item* item, void* arg) { boost::shared_ptr scsp(sc->clone()); gwip->scsp = scsp; + + if (col->type() == Item::FIELD_ITEM) + { + gwip->columnMap.insert(CalpontSelectExecutionPlan::ColumnMap::value_type(string(((Item_field*)item)->field_name.str), scsp)); + } } bool cando = true;