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
6daccd4e
Commit
6daccd4e
authored
Jun 25, 2023
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved test from group_min_max.test to group_min_max_not_embedded.test
parent
3c7fd3c8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
48 deletions
+53
-48
mysql-test/main/group_min_max.result
mysql-test/main/group_min_max.result
+0
-24
mysql-test/main/group_min_max.test
mysql-test/main/group_min_max.test
+0
-24
mysql-test/main/group_min_max_notembedded.result
mysql-test/main/group_min_max_notembedded.result
+24
-0
mysql-test/main/group_min_max_notembedded.test
mysql-test/main/group_min_max_notembedded.test
+29
-0
No files found.
mysql-test/main/group_min_max.result
View file @
6daccd4e
...
...
@@ -4204,30 +4204,6 @@ a b s1
2 2 t2:t2a-null;min_t3_b:t3b-null
3 3 t2:1;min_t3_b:3
drop table t1,t2,t3;
#
# MDEV-31380: Assertion `s->table->opt_range_condition_rows <= s->found_records' failed
# (assertion in 10.6+, DBL_MAX costs in 10.5)
#
CREATE TABLE t1 (a INT, b INT, PRIMARY KEY(a), KEY(b)) ENGINE=InnoDB;
INSERT INTO t1 SELECT seq, seq FROM seq_1_to_100;
SET
@tmp=@@optimizer_use_condition_selectivity,
optimizer_use_condition_selectivity = 1,
@tmp2=@@optimizer_trace,
optimizer_trace=1;
SELECT DISTINCT * FROM t1 WHERE a IN (1, 2);
a b
1 1
2 2
select
CAST(json_value(json_extract(trace, '$**.chosen_access_method.cost'), '$[0]')
as DOUBLE) < 1.0e100
from information_schema.optimizer_trace;
CAST(json_value(json_extract(trace, '$**.chosen_access_method.cost'), '$[0]')
as DOUBLE) < 1.0e100
1
set optimizer_use_condition_selectivity = @tmp, optimizer_trace=@tmp2;
drop table t1;
#
# End of 10.5 tests
#
...
...
mysql-test/main/group_min_max.test
View file @
6daccd4e
...
...
@@ -1860,30 +1860,6 @@ from t1;
drop
table
t1
,
t2
,
t3
;
--
echo
#
--
echo
# MDEV-31380: Assertion `s->table->opt_range_condition_rows <= s->found_records' failed
--
echo
# (assertion in 10.6+, DBL_MAX costs in 10.5)
--
echo
#
CREATE
TABLE
t1
(
a
INT
,
b
INT
,
PRIMARY
KEY
(
a
),
KEY
(
b
))
ENGINE
=
InnoDB
;
INSERT
INTO
t1
SELECT
seq
,
seq
FROM
seq_1_to_100
;
SET
@
tmp
=@@
optimizer_use_condition_selectivity
,
optimizer_use_condition_selectivity
=
1
,
@
tmp2
=@@
optimizer_trace
,
optimizer_trace
=
1
;
SELECT
DISTINCT
*
FROM
t1
WHERE
a
IN
(
1
,
2
);
select
CAST
(
json_value
(
json_extract
(
trace
,
'$**.chosen_access_method.cost'
),
'$[0]'
)
as
DOUBLE
)
<
1.0e100
from
information_schema
.
optimizer_trace
;
set
optimizer_use_condition_selectivity
=
@
tmp
,
optimizer_trace
=@
tmp2
;
drop
table
t1
;
--
echo
#
--
echo
# End of 10.5 tests
--
echo
#
...
...
mysql-test/main/group_min_max_notembedded.result
0 → 100644
View file @
6daccd4e
#
# MDEV-31380: Assertion `s->table->opt_range_condition_rows <= s->found_records' failed
# (assertion in 10.6+, DBL_MAX costs in 10.5)
#
CREATE TABLE t1 (a INT, b INT, PRIMARY KEY(a), KEY(b)) ENGINE=InnoDB;
INSERT INTO t1 SELECT seq, seq FROM seq_1_to_100;
SET
@tmp=@@optimizer_use_condition_selectivity,
optimizer_use_condition_selectivity = 1,
@tmp2=@@optimizer_trace,
optimizer_trace=1;
SELECT DISTINCT * FROM t1 WHERE a IN (1, 2);
a b
1 1
2 2
select
CAST(json_value(json_extract(trace, '$**.chosen_access_method.cost'), '$[0]')
as DOUBLE) < 1.0e100
from information_schema.optimizer_trace;
CAST(json_value(json_extract(trace, '$**.chosen_access_method.cost'), '$[0]')
as DOUBLE) < 1.0e100
1
set optimizer_use_condition_selectivity = @tmp, optimizer_trace=@tmp2;
drop table t1;
mysql-test/main/group_min_max_notembedded.test
0 → 100644
View file @
6daccd4e
--
source
include
/
no_valgrind_without_big
.
inc
--
source
include
/
default_optimizer_switch
.
inc
--
source
include
/
have_sequence
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
not_embedded
.
inc
--
echo
#
--
echo
# MDEV-31380: Assertion `s->table->opt_range_condition_rows <= s->found_records' failed
--
echo
# (assertion in 10.6+, DBL_MAX costs in 10.5)
--
echo
#
CREATE
TABLE
t1
(
a
INT
,
b
INT
,
PRIMARY
KEY
(
a
),
KEY
(
b
))
ENGINE
=
InnoDB
;
INSERT
INTO
t1
SELECT
seq
,
seq
FROM
seq_1_to_100
;
SET
@
tmp
=@@
optimizer_use_condition_selectivity
,
optimizer_use_condition_selectivity
=
1
,
@
tmp2
=@@
optimizer_trace
,
optimizer_trace
=
1
;
SELECT
DISTINCT
*
FROM
t1
WHERE
a
IN
(
1
,
2
);
select
CAST
(
json_value
(
json_extract
(
trace
,
'$**.chosen_access_method.cost'
),
'$[0]'
)
as
DOUBLE
)
<
1.0e100
from
information_schema
.
optimizer_trace
;
set
optimizer_use_condition_selectivity
=
@
tmp
,
optimizer_trace
=@
tmp2
;
drop
table
t1
;
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