You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tk.MustExec("create table aaa(id int, value int);")
1474
+
tk.MustExec("create table bbb(id int, value int);")
1475
+
tk.MustExec("insert into aaa values(1,2),(2,3)")
1476
+
tk.MustExec("insert into bbb values(1,2),(2,3),(3,4)")
1477
+
// set tidb_executor_concurrency to 1 to let the issue happens with high probability.
1478
+
tk.MustExec("set tidb_executor_concurrency=1;")
1479
+
// this is a random issue, so run it 100 times to increase the probability of the issue.
1480
+
fori:=0; i<100; i++ {
1481
+
tk.MustQuery("with cte as (select * from aaa) select id, (select id from (select * from aaa where aaa.id != bbb.id union all select * from cte union all select * from cte) d limit 1),"+
1482
+
"(select max(value) from (select * from cte union all select * from cte union all select * from aaa where aaa.id > bbb.id)) from bbb;")
0 commit comments