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
a7e46d2b
Commit
a7e46d2b
authored
Jun 02, 2023
by
Yuchen Pei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-22534 fixing some ci complaint
parent
d285eadf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
mysql-test/main/subselect_decorrelate_in.test
mysql-test/main/subselect_decorrelate_in.test
+7
-0
sql/item_subselect.cc
sql/item_subselect.cc
+1
-1
No files found.
mysql-test/main/subselect_decorrelate_in.test
View file @
a7e46d2b
...
...
@@ -2,6 +2,9 @@
--
echo
# MDEV-22534 Trivial correlation detection/removal for IN subqueries
--
echo
#
# The test uses optimizer trace:
--
source
include
/
not_embedded
.
inc
--
echo
# Basic example
set
optimizer_switch
=
'materialization=on,firstmatch=off'
;
set
optimizer_trace
=
1
;
...
...
@@ -380,7 +383,11 @@ select * from t1 where a1 in
(
select
a2
from
t2
where
(
select
b1
+
count
(
*
)
from
t2
where
match
(
b2
)
against
(
'mariadb'
))
=
a2
);
# with ps-protocol the count(0) which is an Item_aggregate_ref is in
# the runtime arena causing skipping the decorrelation
--
disable_ps_protocol
eval
explain
$query
;
--
enable_ps_protocol
select
json_extract
(
trace
,
'$**.join_optimization.steps[*].transformation.to'
)
from
information_schema
.
OPTIMIZER_TRACE
;
eval
$query
;
...
...
sql/item_subselect.cc
View file @
a7e46d2b
...
...
@@ -3317,7 +3317,7 @@ bool Item_exists_subselect::exists2in_and_is_not_nulls(uint offset,
}
}
else
{
for
(
size_
t
i
=
offset
;
i
<
left_exp
->
cols
();
i
++
)
for
(
uin
t
i
=
offset
;
i
<
left_exp
->
cols
();
i
++
)
{
if
(
left_exp
->
element_index
(
i
)
->
maybe_null
())
{
...
...
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