pingcap / tidb

TiDB - the open-source, cloud-native, distributed SQL database designed for modern applications.
https://pingcap.com
Apache License 2.0
37.25k stars 5.84k forks source link

UCP: add explain for MetricSummaryTableExtractor #15384

Open crazycs520 opened 4 years ago

crazycs520 commented 4 years ago

Description

This is a sub-task of https://github.com/pingcap/tidb/issues/15378.

What need todo? Implement the explainInfo metheod of below extractor.

here is an example:

 >desc select * from `METRICS_SUMMARY` where metrics_name = "tidb_qps";
+----------------+----------+------+-----------------------+---------------+
| id             | estRows  | task | access object         | operator info |
+----------------+----------+------+-----------------------+---------------+
| MemTableScan_5 | 10000.00 | root | table:METRICS_SUMMARY |      xxx      |
+----------------+----------+------+-----------------------+---------------+

Score

Mentor(s)

Contact the mentors: #tidb-challenge-program channel in TiDB Community Slack Workspace

Recommended Skills

Learning Materials

jianyilyu commented 4 years ago

/assign