@@ -360,15 +360,15 @@ func TestIndexMergeJSONMemberOf2FlakyPart(t *testing.T) {
360360 tk .MustExec (`insert into t value(2,2,2, '{"b":[3,4,5,6]}');` )
361361 tk .MustExec (`set tidb_analyze_version=2;` )
362362 tk .MustExec (`analyze table t all columns;` )
363- tk .MustQuery ("explain select * from t use index (iad) where a = 1;" ).Check (testkit .Rows (
364- "TableReader_8 1.00 root data:Selection_7 " ,
365- "└─Selection_7 1.00 cop[tikv] eq(test.t.a, 1)" ,
366- " └─TableFullScan_6 2.00 cop[tikv] table:t keep order:false" ,
363+ tk .MustQuery ("explain format = 'brief' select * from t use index (iad) where a = 1;" ).Check (testkit .Rows (
364+ "TableReader 1.00 root data:Selection " ,
365+ "└─Selection 1.00 cop[tikv] eq(test.t.a, 1)" ,
366+ " └─TableFullScan 2.00 cop[tikv] table:t keep order:false" ,
367367 ))
368- tk .MustQuery ("explain select * from t use index (iad) where a = 1 and (2 member of (d->'$.b'));" ).Check (testkit .Rows (
369- "IndexMerge_8 1.00 root type: union" ,
370- "├─IndexRangeScan_6 (Build) 1.00 cop[tikv] table:t, index:iad(a, cast(json_extract(`d`, _utf8mb4'$.b') as signed array)) range:[1 2,1 2], keep order:false, stats:partial[d:unInitialized]" ,
371- "└─TableRowIDScan_7 (Probe) 1.00 cop[tikv] table:t keep order:false, stats:partial[d:unInitialized]" ,
368+ tk .MustQuery ("explain format = 'brief' select * from t use index (iad) where a = 1 and (2 member of (d->'$.b'));" ).Check (testkit .Rows (
369+ "IndexMerge 1.00 root type: union" ,
370+ "├─IndexRangeScan (Build) 1.00 cop[tikv] table:t, index:iad(a, cast(json_extract(`d`, _utf8mb4'$.b') as signed array)) range:[1 2,1 2], keep order:false, stats:partial[d:unInitialized]" ,
371+ "└─TableRowIDScan (Probe) 1.00 cop[tikv] table:t keep order:false, stats:partial[d:unInitialized]" ,
372372 ))
373373 })
374374}
@@ -527,7 +527,7 @@ FROM (SELECT DISTINCT balance.portfolio_code AS portfolioCode
527527 tk .MustQuery (`select * from t_issue52023 where a = 5` ).Check (testkit .Rows ())
528528 tk .MustQuery (`select * from t_issue52023 where a IN (5,55)` ).Check (testkit .Rows ())
529529 tk .MustQuery (`select * from t_issue52023 where a IN (0x5,55)` ).Check (testkit .Rows ("\u0005 " ))
530- tk .MustQuery (`explain select * from t_issue52023 where a = 0x5` ).Check (testkit .Rows ("Point_Get_1 1.00 root table:t_issue52023, partition:P4, clustered index:PRIMARY(a) " ))
530+ tk .MustQuery (`explain format='brief' select * from t_issue52023 where a = 0x5` ).Check (testkit .Rows ("Point_Get 1.00 root table:t_issue52023, partition:P4, clustered index:PRIMARY(a) " ))
531531 tk .MustQuery (`explain format='brief' select * from t_issue52023 where a = 5` ).Check (testkit .Rows ("" +
532532 "TableReader 1.00 root partition:all data:Selection" ,
533533 "└─Selection 1.00 cop[tikv] eq(cast(test.t_issue52023.a, double BINARY), 5)" ,
0 commit comments