1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

Merge pull request #1825 from tntnatbry/MCOL-4617

MCOL-4617 Move in-to-exists predicate creation and injection into the engine.
This commit is contained in:
Roman Nozdrin
2021-05-07 13:33:02 +03:00
committed by GitHub
6 changed files with 1373 additions and 186 deletions

View File

@ -841,13 +841,6 @@ create_columnstore_select_handler(THD* thd, SELECT_LEX* select_lex)
if (isPS)
{
sel->prep_where= conds ? conds->copy_andor_structure(thd) : 0;
if (in_subselect_rewrite(sel))
{
unsupported_feature = true;
handler->err_msg.assign("create_columnstore_select_handler(): \
Internal error occured in in_subselect_rewrite()");
}
}
select_lex->update_used_tables();
@ -867,15 +860,6 @@ create_columnstore_select_handler(THD* thd, SELECT_LEX* select_lex)
#endif
join->conds = conds;
}
// MCOL-3747 IN-TO-EXISTS rewrite inside MDB didn't add
// an equi-JOIN condition.
if (!unsupported_feature && !isPS && in_subselect_rewrite(select_lex))
{
unsupported_feature = true;
handler->err_msg.assign("create_columnstore_select_handler(): \
Internal error occured in in_subselect_rewrite()");
}
}
// We shouldn't raise error now so set an error to raise it later in init_SH.