Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
c6eadc40
Commit
c6eadc40
authored
Sep 11, 2024
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix main.order_by_join_limit on x86-debian-12: Mask the cost numbers.
parent
4a09e743
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
10 deletions
+27
-10
mysql-test/include/optimizer_trace_no_costs.inc
mysql-test/include/optimizer_trace_no_costs.inc
+11
-0
mysql-test/main/order_by_limit_join.result
mysql-test/main/order_by_limit_join.result
+10
-10
mysql-test/main/order_by_limit_join.test
mysql-test/main/order_by_limit_join.test
+6
-0
No files found.
mysql-test/include/optimizer_trace_no_costs.inc
0 → 100644
View file @
c6eadc40
# Mask the cost value from any field that looks like
# "xxx_cost" : double_number
# Print the
# "xxx_cost" : "REPLACED"
# instead
--
replace_regex
/
(
_cost
": )[0-9.e-]+/
\1
"
REPLACED
"/
#--replace_regex /(_cost"
:
)[
0
-
9.
e
-
]
+/
"REPLACED"
/
#--replace_regex /[0-9]+/BBB/
#--replace_regex /("r_engine_stats":) {[^}]*}/\1 REPLACED/
mysql-test/main/order_by_limit_join.result
View file @
c6eadc40
...
...
@@ -108,9 +108,9 @@ JS
}
],
"can_skip_filesort": true,
"full_join_cost":
46064.98442
,
"full_join_cost":
"REPLACED"
,
"risk_ratio": 10,
"shortcut_join_cost":
97.28224614
,
"shortcut_join_cost":
"REPLACED"
,
"shortcut_cost_with_risk": 972.8224614,
"use_shortcut_cost": true
}
...
...
@@ -160,9 +160,9 @@ JS
"test_if_skip_sort_order_early":
[],
"can_skip_filesort": false,
"full_join_cost":
46064.98442
,
"full_join_cost":
"REPLACED"
,
"risk_ratio": 10,
"shortcut_join_cost":
2097.281246
,
"shortcut_join_cost":
"REPLACED"
,
"shortcut_cost_with_risk": 20972.81246,
"use_shortcut_cost": true
}
...
...
@@ -244,9 +244,9 @@ JS
}
],
"can_skip_filesort": false,
"full_join_cost":
46064.98442
,
"full_join_cost":
"REPLACED"
,
"risk_ratio": 10,
"shortcut_join_cost":
24059.12698
,
"shortcut_join_cost":
"REPLACED"
,
"shortcut_cost_with_risk": 240591.2698,
"use_shortcut_cost": false
}
...
...
@@ -363,9 +363,9 @@ JS
}
],
"can_skip_filesort": true,
"full_join_cost":
47079.71684
,
"full_join_cost":
"REPLACED"
,
"risk_ratio": 10,
"shortcut_join_cost":
98.29697856
,
"shortcut_join_cost":
"REPLACED"
,
"shortcut_cost_with_risk": 982.9697856,
"use_shortcut_cost": true
}
...
...
@@ -448,9 +448,9 @@ JS
}
],
"can_skip_filesort": true,
"full_join_cost":
46064.98442
,
"full_join_cost":
"REPLACED"
,
"risk_ratio": 10,
"shortcut_join_cost":
97.28224614
,
"shortcut_join_cost":
"REPLACED"
,
"shortcut_cost_with_risk": 972.8224614,
"use_shortcut_cost": true
}
...
...
mysql-test/main/order_by_limit_join.test
View file @
c6eadc40
...
...
@@ -68,6 +68,7 @@ set optimizer_join_limit_pref_ratio=10;
eval
$query
;
set
@
trace
=
(
select
trace
from
information_schema
.
optimizer_trace
);
--
source
include
/
optimizer_trace_no_costs
.
inc
select
json_detailed
(
json_extract
(
@
trace
,
'$**.join_limit_shortcut_choice'
))
as
JS
;
--
echo
#
...
...
@@ -95,6 +96,7 @@ set optimizer_join_limit_pref_ratio=10;
eval
$query
;
set
@
trace
=
(
select
trace
from
information_schema
.
optimizer_trace
);
--
source
include
/
optimizer_trace_no_costs
.
inc
select
json_detailed
(
json_extract
(
@
trace
,
'$**.join_limit_shortcut_choice'
))
as
JS
;
--
echo
#
...
...
@@ -121,6 +123,7 @@ set optimizer_join_limit_pref_ratio=10;
eval
$query
;
set
@
trace
=
(
select
trace
from
information_schema
.
optimizer_trace
);
--
source
include
/
optimizer_trace_no_costs
.
inc
select
json_detailed
(
json_extract
(
@
trace
,
'$**.join_limit_shortcut_choice'
))
as
JS
;
--
echo
#
...
...
@@ -140,6 +143,7 @@ limit 10;
set
@
trace
=
(
select
trace
from
information_schema
.
optimizer_trace
);
--
echo
# This will show nothing as limit shortcut code figures that
--
echo
# it's not possible to use t1 to construct shortcuts:
--
source
include
/
optimizer_trace_no_costs
.
inc
select
json_detailed
(
json_extract
(
@
trace
,
'$**.join_limit_shortcut_choice'
))
as
JS
;
--
echo
#
...
...
@@ -169,6 +173,7 @@ set optimizer_join_limit_pref_ratio=10;
eval
$query
;
set
@
trace
=
(
select
trace
from
information_schema
.
optimizer_trace
);
--
source
include
/
optimizer_trace_no_costs
.
inc
select
json_detailed
(
json_extract
(
@
trace
,
'$**.join_limit_shortcut_choice'
))
as
JS
;
--
echo
#
...
...
@@ -197,6 +202,7 @@ set optimizer_join_limit_pref_ratio=10;
eval
$query
;
set
@
trace
=
(
select
trace
from
information_schema
.
optimizer_trace
);
--
source
include
/
optimizer_trace_no_costs
.
inc
select
json_detailed
(
json_extract
(
@
trace
,
'$**.join_limit_shortcut_choice'
))
as
JS
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment