pingcap / pingcap/tidb

Some TiFlash operators in EXPLAIN ANALYZE don't have runtime stats

Open
#37,047 0 comments 0 reactions 0 assignees View on GitHub
component/tiflash sig/execution type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement

When execution `EXPLAIN ANALYZE ...`, we can get an execution plan with runtime stats such as `actRows` and `execution info`. If there is a Limit operator on root, some operators on TiFlash miss their runtime stats(`actRows:0, tiflash_task:{time:0s, loops:0, threads:0}`). Runtime stats of TiFlash operators are sent to TiDB by last block. When the Limit operator terminates the execution of TiFlash early, TiDB cannot receive runtime stats of TiFlash operators. Fixing the problem can help us diagnose slow queries.

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.