From 1fc64911b61b0a795a10752ee49aee2b548a9bfd Mon Sep 17 00:00:00 2001 From: qw4990 Date: Wed, 9 Nov 2022 18:23:05 +0800 Subject: [PATCH] fixup --- planner/core/testdata/analyze_suite_out.json | 8 ++++---- planner/core/testdata/integration_suite_out.json | 10 +++++----- planner/core/testdata/plan_suite_out.json | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/planner/core/testdata/analyze_suite_out.json b/planner/core/testdata/analyze_suite_out.json index e19c4bb0596b3..38fc33be76916 100644 --- a/planner/core/testdata/analyze_suite_out.json +++ b/planner/core/testdata/analyze_suite_out.json @@ -380,8 +380,8 @@ [ "Projection 10.00 root Column#22", "└─Apply 10.00 root CARTESIAN left outer semi join, other cond:eq(test.t.c, Column#21)", - " ├─TableReader(Build) 10.00 root data:TableFullScan", - " │ └─TableFullScan 10.00 cop[tikv] table:t keep order:false", + " ├─IndexReader(Build) 10.00 root index:IndexFullScan", + " │ └─IndexFullScan 10.00 cop[tikv] table:t, index:idx(c, b, a) keep order:false", " └─StreamAgg(Probe) 10.00 root funcs:count(1)->Column#21", " └─HashJoin 10.00 root inner join, equal:[eq(test.t.a, test.t.a)]", " ├─IndexReader(Build) 10.00 root index:Selection", @@ -394,8 +394,8 @@ [ "Projection 10.00 root Column#13", "└─Apply 10.00 root CARTESIAN left outer join", - " ├─TableReader(Build) 10.00 root data:TableFullScan", - " │ └─TableFullScan 10.00 cop[tikv] table:t keep order:false", + " ├─IndexReader(Build) 10.00 root index:IndexFullScan", + " │ └─IndexFullScan 10.00 cop[tikv] table:t, index:idx(c, b, a) keep order:false", " └─MaxOneRow(Probe) 10.00 root ", " └─Projection 1.00 root concat(cast(test.t.a, var_string(20)), ,, cast(test.t.b, var_string(20)))->Column#13", " └─IndexReader 1.00 root index:Selection", diff --git a/planner/core/testdata/integration_suite_out.json b/planner/core/testdata/integration_suite_out.json index c042cde23ab44..304d84c59486a 100644 --- a/planner/core/testdata/integration_suite_out.json +++ b/planner/core/testdata/integration_suite_out.json @@ -2620,15 +2620,15 @@ { "SQL": "explain format = 'verbose' select (2) in (select /*+ read_from_storage(tiflash[t1]) */ count(*) from t1) from (select t.b < (select /*+ read_from_storage(tiflash[t2]) */ t.b from t2 limit 1 ) from t3 t) t", "Plan": [ - "HashJoin_19 3.00 160879.40 root CARTESIAN left outer semi join", + "HashJoin_19 3.00 160874.64 root CARTESIAN left outer semi join", "├─Selection_38(Build) 0.80 31154.89 root eq(2, Column#18)", "│ └─StreamAgg_45 1.00 31104.99 root funcs:count(1)->Column#18", "│ └─TableReader_59 3.00 30955.29 root data:TableFullScan_58", "│ └─TableFullScan_58 3.00 464139.20 cop[tiflash] table:t1 keep order:false", - "└─Projection_20(Probe) 3.00 129653.38 root 1->Column#28", - " └─Apply_22 3.00 129653.08 root CARTESIAN left outer join", - " ├─TableReader_24(Build) 3.00 58.13 root data:TableFullScan_23", - " │ └─TableFullScan_23 3.00 681.92 cop[tikv] table:t keep order:false", + "└─Projection_20(Probe) 3.00 129648.62 root 1->Column#28", + " └─Apply_22 3.00 129648.32 root CARTESIAN left outer join", + " ├─IndexReader_26(Build) 3.00 53.37 root index:IndexFullScan_25", + " │ └─IndexFullScan_25 3.00 610.50 cop[tikv] table:t, index:c(b) keep order:false", " └─Projection_27(Probe) 3.00 43198.32 root 1->Column#26", " └─Limit_30 3.00 43198.22 root offset:0, count:1", " └─TableReader_37 3.00 43198.22 root data:ExchangeSender_36", diff --git a/planner/core/testdata/plan_suite_out.json b/planner/core/testdata/plan_suite_out.json index d1f44be61602b..43a23f6cf075f 100644 --- a/planner/core/testdata/plan_suite_out.json +++ b/planner/core/testdata/plan_suite_out.json @@ -959,7 +959,7 @@ }, { "SQL": "select sum(e), avg(e + c) from t where c = 1 group by c", - "Best": "IndexReader(Index(t.c_d_e)[[1,1]]->StreamAgg)->StreamAgg" + "Best": "IndexReader(Index(t.c_d_e)[[1,1]])->Projection->StreamAgg" }, { "SQL": "select sum(e), avg(e + c) from t where c = 1 group by e",