summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2021-03-28 23:45:04 +0300
committerSergei Petrunia <psergey@askmonty.org>2021-03-28 23:45:04 +0300
commite4cebc5ef64cb2be5616f2b92de665a1c9a46fbf (patch)
tree30a7ca63c18c283fc56541a1052287b9347ff43c
parent8e2d69f7b8425c9cd9546cb45c16c492d5aa5b0a (diff)
downloadmariadb-git-bb-10.5-mdev25251.tar.gz
MDEV-25251: main.derived_split_innodb fails on ICC release binarybb-10.5-mdev25251
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.
-rw-r--r--sql/opt_split.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_split.cc b/sql/opt_split.cc
index 2aa65bdf03b..797401c9b42 100644
--- a/sql/opt_split.cc
+++ b/sql/opt_split.cc
@@ -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