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-31 09:52:28 +0300
commit5b678d9ea4aa3b5ed4c030a9bb5e7d15c3ff8804 (patch)
tree12d45cfa283f2f1516c81d52c94107dd1aa0717a
parent76d2846a71a155ee2861fd52e6635e35490a9dd1 (diff)
downloadmariadb-git-5b678d9ea4aa3b5ed4c030a9bb5e7d15c3ff8804.tar.gz
MDEV-25251: main.derived_split_innodb fails on ICC release binarybb-10.5-mdev25251-v2
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