MDEV-25251: main.derived_split_innodb fails on ICC release binary

The code compares two query plans with identical costs, the plan
with lateral is the same as one without. Introduce a small difference
to cost numbers to prefer non-lateral plan in this case.
This commit is contained in:
Sergei Petrunia 2021-03-28 23:45:04 +03:00
parent 76d2846a71
commit 5b678d9ea4

View File

@ -996,7 +996,7 @@ SplM_plan_info * JOIN_TAB::choose_best_splitting(double record_count,
}
if (spl_plan)
{
if(record_count * spl_plan->cost < spl_opt_info->unsplit_cost)
if(record_count * spl_plan->cost < spl_opt_info->unsplit_cost - 0.01)
{
/*
The best plan that employs splitting is cheaper than