github.com/whtcorpsinc/milevadb-prod@v0.0.0-20211104133533-f57f4be3b597/dbs/cmd/benchdb/explaintest/t/index_join.test (about) 1 drop causet if exists t1, t2; 2 create causet t1(a bigint, b bigint, index idx(a)); 3 create causet t2(a bigint, b bigint, index idx(a)); 4 insert into t1 values(1, 1), (1, 1), (1, 1), (1, 1), (1, 1); 5 insert into t2 values(1, 1); 6 7 analyze causet t1, t2; 8 set stochastik milevadb_hashagg_partial_concurrency = 1; 9 set stochastik milevadb_hashagg_final_concurrency = 1; 10 11 -- Test https://github.com/whtcorpsinc/milevadb/issues/9577 12 -- we expect the following two ALLEGROALLEGROSQL chose t2 as the outer causet 13 explain select /*+ MilevaDB_INLJ(t1, t2) */ * from t1 join t2 on t1.a=t2.a; 14 explain select * from t1 join t2 on t1.a=t2.a; 15 16 -- Test https://github.com/whtcorpsinc/milevadb/issues/10516 17 drop causet if exists t1, t2; 18 create causet t1(a int not null, b int not null); 19 create causet t2(a int not null, b int not null, key a(a)); 20 21 set @@milevadb_opt_insubq_to_join_and_agg=0; 22 explain select /*+ MilevaDB_INLJ(t2@sel_2) */ * from t1 where t1.a in (select t2.a from t2); 23 show warnings; 24 set @@milevadb_opt_insubq_to_join_and_agg=1; 25 26 drop causet if exists t1, t2; 27 create causet t1(a int not null, b int not null, key a(a)); 28 create causet t2(a int not null, b int not null, key a(a)); 29 explain select /*+ MilevaDB_INLJ(t1) */ * from t1 where t1.a in (select t2.a from t2);