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

Merge pull request #864 from drrtuy/set-optimizer-flags

MCOL-2178 CS now sets optimizer flags like it did in the fork-era.
This commit is contained in:
Gagan Goel
2019-09-17 00:10:39 -04:00
committed by GitHub
7 changed files with 42 additions and 29 deletions

View File

@ -7830,8 +7830,9 @@ int getSelectPlan(gp_walk_info& gwi, SELECT_LEX& select_lex,
hash join, giving less number of rows in the output result set than expected.
We therefore do not allow limit set to 1 here for such queries.
*/
if (gwi.subSelectType != CalpontSelectExecutionPlan::IN_SUBS &&
select_lex.master_unit()->global_parameters()->explicit_limit)
if (gwi.subSelectType != CalpontSelectExecutionPlan::IN_SUBS
&& gwi.subSelectType != CalpontSelectExecutionPlan::EXISTS_SUBS
&& select_lex.master_unit()->global_parameters()->explicit_limit)
{
if (select_lex.master_unit()->global_parameters()->offset_limit)
{