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
68542cae
Commit
68542cae
authored
Oct 18, 2023
by
Oleg Smirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-32475 Add logging of test_if_skip_sort_order to optimizer trace
parent
680f732f
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
165 additions
and
134 deletions
+165
-134
mysql-test/main/opt_trace.result
mysql-test/main/opt_trace.result
+159
-134
sql/sql_select.cc
sql/sql_select.cc
+6
-0
No files found.
mysql-test/main/opt_trace.result
View file @
68542cae
This diff is collapsed.
Click to expand it.
sql/sql_select.cc
View file @
68542cae
...
...
@@ -23608,8 +23608,12 @@ test_if_skip_sort_order(JOIN_TAB *tab,ORDER *order,ha_rows select_limit,
bool
orig_cond_saved
=
false
;
int
best_key
=
-
1
;
bool
changed_key
=
false
;
THD
*
thd
=
tab
->
join
->
thd
;
DBUG_ENTER
(
"test_if_skip_sort_order"
);
Json_writer_object
trace_wrapper
(
thd
);
Json_writer_array
trace_arr
(
thd
,
"test_if_skip_sort_order"
);
/* Check that we are always called with first non-const table */
DBUG_ASSERT
(
tab
==
tab
->
join
->
join_tab
+
tab
->
join
->
const_tables
);
...
...
@@ -23618,6 +23622,8 @@ test_if_skip_sort_order(JOIN_TAB *tab,ORDER *order,ha_rows select_limit,
tab
->
type
==
JT_CONST
||
tab
->
type
==
JT_SYSTEM
)
{
Json_writer_object
trace_skip
(
thd
);
trace_skip
.
add
(
"skipped"
,
"single row access method"
);
DBUG_RETURN
(
1
);
}
...
...
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