mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-14816 Assertion join->best_read < double(1.797...e+308L)
failed in bool greedy_search
This commit is contained in:
committed by
Sergei Golubchik
parent
f96b1a4e39
commit
fbed4ca4f1
@ -406,8 +406,77 @@ insert into t1 values (1, 10, '15:01:53'), (2, 20, '00:00:00');
|
||||
delete from t1;
|
||||
select * from t1 where t = '00:00:00' and i > 0 and row_end <> '2012-12-12 00:00:00';
|
||||
pk i t
|
||||
### MDEV-14816 Assertion `join->best_read < double(1.797...e+308L)' failed in bool greedy_search
|
||||
create or replace table t1 (f1 int) with system versioning;
|
||||
create or replace table t2 (f2 int) with system versioning;
|
||||
create or replace table t3 (f3 int);
|
||||
create or replace table t4 (f4 int);
|
||||
insert into t1 values (1), (2), (3), (4);
|
||||
insert into t2 values (1), (2), (3);
|
||||
insert into t3 values (1), (2);
|
||||
insert into t4 values (1);
|
||||
select * from
|
||||
t1 as t1a
|
||||
left join t2 as t2a left join (t3 as t3a inner join t1) on t2a.f2 = t3a.f3 on t1a.f1 = t2a.f2
|
||||
left join (t2 join t3 inner join t4) on t2a.f2 = t1a.f1;
|
||||
f1 f2 f3 f1 f2 f3 f4
|
||||
1 1 1 1 1 1 1
|
||||
2 2 2 1 1 1 1
|
||||
1 1 1 2 1 1 1
|
||||
2 2 2 2 1 1 1
|
||||
1 1 1 3 1 1 1
|
||||
2 2 2 3 1 1 1
|
||||
1 1 1 4 1 1 1
|
||||
2 2 2 4 1 1 1
|
||||
1 1 1 1 1 2 1
|
||||
2 2 2 1 1 2 1
|
||||
1 1 1 2 1 2 1
|
||||
2 2 2 2 1 2 1
|
||||
1 1 1 3 1 2 1
|
||||
2 2 2 3 1 2 1
|
||||
1 1 1 4 1 2 1
|
||||
2 2 2 4 1 2 1
|
||||
1 1 1 1 2 1 1
|
||||
2 2 2 1 2 1 1
|
||||
1 1 1 2 2 1 1
|
||||
2 2 2 2 2 1 1
|
||||
1 1 1 3 2 1 1
|
||||
2 2 2 3 2 1 1
|
||||
1 1 1 4 2 1 1
|
||||
2 2 2 4 2 1 1
|
||||
1 1 1 1 2 2 1
|
||||
2 2 2 1 2 2 1
|
||||
1 1 1 2 2 2 1
|
||||
2 2 2 2 2 2 1
|
||||
1 1 1 3 2 2 1
|
||||
2 2 2 3 2 2 1
|
||||
1 1 1 4 2 2 1
|
||||
2 2 2 4 2 2 1
|
||||
1 1 1 1 3 1 1
|
||||
2 2 2 1 3 1 1
|
||||
1 1 1 2 3 1 1
|
||||
2 2 2 2 3 1 1
|
||||
1 1 1 3 3 1 1
|
||||
2 2 2 3 3 1 1
|
||||
1 1 1 4 3 1 1
|
||||
2 2 2 4 3 1 1
|
||||
1 1 1 1 3 2 1
|
||||
2 2 2 1 3 2 1
|
||||
1 1 1 2 3 2 1
|
||||
2 2 2 2 3 2 1
|
||||
1 1 1 3 3 2 1
|
||||
2 2 2 3 3 2 1
|
||||
1 1 1 4 3 2 1
|
||||
2 2 2 4 3 2 1
|
||||
3 3 NULL NULL 1 1 1
|
||||
3 3 NULL NULL 1 2 1
|
||||
3 3 NULL NULL 2 1 1
|
||||
3 3 NULL NULL 2 2 1
|
||||
3 3 NULL NULL 3 1 1
|
||||
3 3 NULL NULL 3 2 1
|
||||
4 NULL NULL NULL NULL NULL NULL
|
||||
drop view v1;
|
||||
drop table t1, t2;
|
||||
drop table t1, t2, t3, t4;
|
||||
call verify_vtq_dummy(34);
|
||||
No A B C D
|
||||
1 1 1 1 1
|
||||
|
Reference in New Issue
Block a user