Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
qw4990 committed Nov 29, 2022
1 parent 40059a9 commit 6dc1374
Show file tree
Hide file tree
Showing 2 changed files with 163 additions and 167 deletions.
39 changes: 19 additions & 20 deletions planner/core/testdata/integration_suite_out.json
Original file line number Diff line number Diff line change
Expand Up @@ -2051,21 +2051,22 @@
{
"SQL": "explain format = 'verbose' select * from t where b = 6 order by a limit 1",
"Plan": [
"TopN_9 0.00 36.63 root test.t.a, offset:0, count:1",
"└─IndexLookUp_20 0.00 31.83 root ",
" ├─TopN_19(Build) 0.00 206.70 cop[tikv] test.t.a, offset:0, count:1",
" │ └─IndexRangeScan_17 0.00 203.50 cop[tikv] table:t, index:idx_b(b) range:[6,6], keep order:false",
" └─TableRowIDScan_18(Probe) 0.00 186.61 cop[tikv] table:t keep order:false"
"Limit_11 0.00 98.74 root offset:0, count:1",
"└─TableReader_24 0.00 98.74 root data:Limit_23",
" └─Limit_23 0.00 1386.04 cop[tikv] offset:0, count:1",
" └─Selection_22 0.00 1386.04 cop[tikv] eq(test.t.b, 6)",
" └─TableFullScan_21 5.00 1136.54 cop[tikv] table:t keep order:true"
],
"Warnings": null
},
{
"SQL": "explain format = 'verbose' select * from t where b = 6 limit 1",
"Plan": [
"IndexLookUp_17 0.00 18.97 root limit embedded(offset:0, count:1)",
"├─Limit_16(Build) 0.00 203.50 cop[tikv] offset:0, count:1",
"│ └─IndexRangeScan_14 0.00 203.50 cop[tikv] table:t, index:idx_b(b) range:[6,6], keep order:false",
"└─TableRowIDScan_15(Probe) 0.00 186.61 cop[tikv] table:t keep order:false"
"Limit_8 0.00 98.74 root offset:0, count:1",
"└─TableReader_13 0.00 98.74 root data:Limit_12",
" └─Limit_12 0.00 1386.04 cop[tikv] offset:0, count:1",
" └─Selection_11 0.00 1386.04 cop[tikv] eq(test.t.b, 6)",
" └─TableFullScan_10 5.00 1136.54 cop[tikv] table:t keep order:false"
],
"Warnings": null
},
Expand All @@ -2088,8 +2089,8 @@
{
"SQL": "explain format = 'verbose' select * from t where b = 6 order by a limit 1",
"Plan": [
"TopN_9 0.00 36.63 root test.t.a, offset:0, count:1",
"└─IndexLookUp_16 0.00 31.83 root ",
"TopN_9 0.00 1956.63 root test.t.a, offset:0, count:1",
"└─IndexLookUp_16 0.00 1951.83 root ",
" ├─TopN_15(Build) 0.00 206.70 cop[tikv] test.t.a, offset:0, count:1",
" │ └─IndexRangeScan_13 0.00 203.50 cop[tikv] table:t, index:idx_b(b) range:[6,6], keep order:false",
" └─TableRowIDScan_14(Probe) 0.00 186.61 cop[tikv] table:t keep order:false"
Expand All @@ -2101,7 +2102,7 @@
{
"SQL": "explain format = 'verbose' select * from t where b = 6 limit 1",
"Plan": [
"IndexLookUp_13 0.00 18.97 root limit embedded(offset:0, count:1)",
"IndexLookUp_13 0.00 1170.97 root limit embedded(offset:0, count:1)",
"├─Limit_12(Build) 0.00 203.50 cop[tikv] offset:0, count:1",
"│ └─IndexRangeScan_10 0.00 203.50 cop[tikv] table:t, index:idx_b(b) range:[6,6], keep order:false",
"└─TableRowIDScan_11(Probe) 0.00 186.61 cop[tikv] table:t keep order:false"
Expand Down Expand Up @@ -2527,12 +2528,10 @@
{
"SQL": "explain format = 'verbose' select * from t3 order by b limit 1",
"Plan": [
"Limit_12 1.00 19.17 root offset:0, count:1",
"└─Projection_23 1.00 19.17 root test.t3.a, test.t3.b",
" └─IndexLookUp_22 1.00 18.97 root ",
" ├─Limit_21(Build) 1.00 203.50 cop[tikv] offset:0, count:1",
" │ └─IndexFullScan_19 1.00 203.50 cop[tikv] table:t3, index:c(b) keep order:true",
" └─TableRowIDScan_20(Probe) 1.00 186.61 cop[tikv] table:t3 keep order:false"
"TopN_7 1.00 53.10 root test.t3.b, offset:0, count:1",
"└─TableReader_16 1.00 49.90 root data:TopN_15",
" └─TopN_15 1.00 685.12 cop[tikv] test.t3.b, offset:0, count:1",
" └─TableFullScan_14 3.00 681.92 cop[tikv] table:t3 keep order:false"
]
},
{
Expand All @@ -2554,8 +2553,8 @@
{
"SQL": "explain format = 'verbose' select /*+ use_index(t3, c) */ count(a) from t3 where b = 0",
"Plan": [
"StreamAgg_10 1.00 81.63 root funcs:count(test.t3.a)->Column#4",
"└─IndexLookUp_17 0.00 31.73 root ",
"StreamAgg_10 1.00 2001.63 root funcs:count(test.t3.a)->Column#4",
"└─IndexLookUp_17 0.00 1951.73 root ",
" ├─IndexRangeScan_15(Build) 0.00 203.50 cop[tikv] table:t3, index:c(b) range:[0,0], keep order:false",
" └─TableRowIDScan_16(Probe) 0.00 227.31 cop[tikv] table:t3 keep order:false"
]
Expand Down
Loading

0 comments on commit 6dc1374

Please sign in to comment.