Skip to content

Commit 5b678d9

Browse files
committed
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.
1 parent 76d2846 commit 5b678d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/opt_split.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ SplM_plan_info * JOIN_TAB::choose_best_splitting(double record_count,
996996
}
997997
if (spl_plan)
998998
{
999-
if(record_count * spl_plan->cost < spl_opt_info->unsplit_cost)
999+
if(record_count * spl_plan->cost < spl_opt_info->unsplit_cost - 0.01)
10001000
{
10011001
/*
10021002
The best plan that employs splitting is cheaper than

0 commit comments

Comments
 (0)