Skip to content

add ColumnarScanContext#417

Merged
yongman merged 1 commit into
pingcap:masterfrom
yongman:ym/add-columnar-scan-stats
Jun 17, 2026
Merged

add ColumnarScanContext#417
yongman merged 1 commit into
pingcap:masterfrom
yongman:ym/add-columnar-scan-stats

Conversation

@yongman

@yongman yongman commented Jun 15, 2026

Copy link
Copy Markdown
Member

What is changed and how it works?

Proposal: xxx

What's Changed:

Add ColumnarScanContext detail infos to ExecutorExecutionSummary when the query path is columnar.

How it Works:

ColumnarScanContext will be filled in tiflash compute node and transfer the summary to TiDB.

Related changes

  • PR to update pingcap/docs/pingcap/docs-cn:
  • Need to cherry-pick to the release branch
TiDB root@localhost:test> explain analyze select * from t;
+----------------------+---------+---------+--------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------+----------+------+
| id                   | estRows | actRows | task         | access object | execution info                                                                                                                                                                                                                                                                                                                                                                                                | operator info                             | memory   | disk |
+----------------------+---------+---------+--------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------+----------+------+
| TableReader_12       | 8204.00 | 8204    | root         | partition:all | time:78ms, loops:10, RU:6.38, cop_task: {num: 2, max: 0s, min: 0s, avg: 0s, p95: 0s, copr_cache_hit_ratio: 0.00}                                                                                                                                                                                                                                                                                              | MppVersion: 2, data:ExchangeSender_11     | 192.7 KB | N/A  |
| └─ExchangeSender_11  | 8204.00 | 8204    | mpp[tiflash] |               | tiflash_task:{time:69.7ms, loops:1, threads:1}                                                                                                                                                                                                                                                                                                                                                                | ExchangeType: PassThrough                 | N/A      | N/A  |
|   └─TableFullScan_10 | 8204.00 | 8204    | mpp[tiflash] | table:t       | tiflash_task:{time:57.7ms, loops:1, threads:1}, columnar_scan:{mvcc_input_rows:8204, mvcc_input_bytes:360976, mvcc_output_rows:8204, regions:1, read_tasks:1, physical_tables:3, columns:3, user_read_bytes:155876, read_block:8ms, serialize_block:4ms, init_reader:16ms, prefetch:4ms, deserialize_block:3ms, rough_check:{total:0, selected:0, skipped:0, unknown:0}, remote_segments:0, total_segments:4} | keep order:false, PartitionTableScan:true | N/A      | N/A  |
+----------------------+---------+---------+--------------+---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------+----------+------+

3 rows in set
Time: 0.091s

@pingcap-cla-assistant

pingcap-cla-assistant Bot commented Jun 15, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Signed-off-by: Ray Yan <yming0221@gmail.com>
@yongman yongman force-pushed the ym/add-columnar-scan-stats branch from 5dfd130 to 8223c38 Compare June 17, 2026 06:46
@yongman yongman marked this pull request as ready for review June 17, 2026 07:02
@yongman yongman merged commit 7c07124 into pingcap:master Jun 17, 2026
4 checks passed
@yongman yongman deleted the ym/add-columnar-scan-stats branch June 17, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants