[ { "Name": "TestClusterIndexCBOPointGet", "Cases": [ { "SQL": "select * from t1 where a = 1 and b = 1 and c = 1", "Plan": [ "Selection 0.11 root eq(test.t1.c, 1)", "└─Point_Get 1.00 root table:t1, clustered index:PRIMARY(a, b) " ], "Res": [ "1 1 1" ] }, { "SQL": "select * from t2 where t2.a = '111' and t2.b = 1", "Plan": [ "Selection 0.33 root eq(test.t2.b, 1)", "└─Point_Get 1.00 root table:t2, clustered index:PRIMARY(a) " ], "Res": [ "111 1" ] }, { "SQL": "select * from t1 join t2 on t1.a = t2.b where t1.a = 1", "Plan": [ "HashJoin 1.00 root CARTESIAN inner join", "├─Point_Get(Build) 1.00 root table:t2, index:b(b) ", "└─TableReader(Probe) 1.00 root data:TableRangeScan", " └─TableRangeScan 1.00 cop[tikv] table:t1 range:[1,1], keep order:false" ], "Res": [ "1 1 1 111 1" ] }, { "SQL": "select * from t1 where (a,b) in ((1,1),(2,2)) and c = 2", "Plan": [ "Selection 0.56 root eq(test.t1.c, 2)", "└─Batch_Point_Get 2.00 root table:t1, clustered index:PRIMARY(a, b) keep order:false, desc:false" ], "Res": [ "2 2 2" ] }, { "SQL": "select * from t2 where a in ('111','222') and b = 2", "Plan": [ "Selection 0.67 root eq(test.t2.b, 2)", "└─Batch_Point_Get 2.00 root table:t2, clustered index:PRIMARY(a) keep order:false, desc:false" ], "Res": [ "222 2" ] }, { "SQL": "select * from t2 where a in ('111','222') union all select a,c from t1 where (a,b) in ((1,1),(2,2))", "Plan": [ "Union 3.67 root ", "├─Batch_Point_Get 2.00 root table:t2, clustered index:PRIMARY(a) keep order:false, desc:false", "└─Projection 1.67 root cast(test.t1.a, varchar(20) BINARY CHARACTER SET utf8mb4 COLLATE utf8mb4_bin)->Column#6, test.t1.c", " └─Batch_Point_Get 2.00 root table:t1, clustered index:PRIMARY(a, b) keep order:false, desc:false" ], "Res": [ "1 1", "111 1", "2 2", "222 2" ] } ] } ]