1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-4680 FROM subquery containing nested joins returns an error.

Main theme of the patch is to fix joins processing in the plugin
code. We now use SELECT_LEX::top_join_list and process the nested
joins recursively, instead of SELECT_LEX::table_list struct which
we earlier used to build the join filters. The earlier approach
did not process certain nested join ON expressions, causing certain
queries to incorrectly error out such as that described in MCOL-4680.

In addition, some legacy code is also removed.
This commit is contained in:
Gagan Goel
2021-04-23 05:18:26 -04:00
parent 71c16fcb56
commit 22c7fb7c01
6 changed files with 273 additions and 272 deletions

View File

@ -53,7 +53,7 @@ public:
parent select.
*/
void transform();
uint32_t processOuterJoin(gp_walk_info& gwi);
uint32_t processJoin(gp_walk_info& gwi, std::stack<execplan::ParseTree*>&);
private:
SELECT_LEX fSelect;