pingcap / pingcap/tidb

The cost trace should not print the plan ID

Open
#61,203 0 comments 0 reactions 0 assignees View on GitHub
sig/planner type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement

The cost trace should not print the plan ID. Too many plan IDs will affect my test cases.

```
explain format = 'cost_trace' select * from t limit 1;
id estRows estCost costFormula task access object operator info
Limit_7 1.00 12.97 ((((((scan(1*logrowsize(16)*tikv_scan_factor(40.7)))*1.00)) + (net(1*rowsize(8)*tidb_kv_net_factor(3.96))))/15.00)*1.00) root offset:0, count:1
└─IndexReader_12 1.00 12.97 (((((scan(1*logrowsize(16)*tikv_scan_factor(40.7)))*1.00)) + (net(1*rowsize(8)*tidb_kv_net_factor(3.96))))/15.00)*1.00 root index:Limit_11
└─Limit_11 1.00 162.80 ((scan(1*logrowsize(16)*tikv_scan_factor(40.7)))*1.00) cop[tikv] offset:0, count:1
└─IndexFullScan_10 1.00 162.80 (scan(1*logrowsize(16)*tikv_scan_factor(40.7)))*1.00 cop[tikv] table:t, index:a(a) keep order:false, stats:pseudo
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.