Commit 5b678d9e authored by Sergei Petrunia's avatar Sergei Petrunia

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.
parent 76d2846a
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment