From 0b32f95dac0a69dd740ac5c68e02782bd6d9c5f9 Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Wed, 2 May 2018 15:26:01 +0100 Subject: [PATCH] MCOL-1349 Fix outer joins in views Outer join handling inside views was broken due to the joins being processed twice. This patch brings back the code so that outer joins in views are only processed once. --- dbcon/mysql/ha_calpont_execplan.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbcon/mysql/ha_calpont_execplan.cpp b/dbcon/mysql/ha_calpont_execplan.cpp index 0f54d8bdb..9cc3a99c8 100755 --- a/dbcon/mysql/ha_calpont_execplan.cpp +++ b/dbcon/mysql/ha_calpont_execplan.cpp @@ -801,8 +801,8 @@ uint32_t buildOuterJoin(gp_walk_info& gwi, SELECT_LEX& select_lex) // View is already processed in view::transform // @bug5319. view is sometimes treated as derived table and // fromSub::transform does not build outer join filters. - //if (!table_ptr->derived && table_ptr->view) - // continue; + if (!table_ptr->derived && table_ptr->view) + continue; CalpontSystemCatalog:: TableAliasName tan = make_aliasview( (table_ptr->db ? table_ptr->db : ""),