*: update the row count display of probe side of IndexJoin and Apply#11624
Conversation
|
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. DetailsReviewer can indicate their review by submitting an approval review. |
| > **注意:** | ||
| > | ||
| > 在 v6.4.0 之前的版本中,对于 `IndexJoin` 和 `Apply` 算子的 Probe 端所有子节点的 `estRows`,显示的行数的意义与之后的版本有所不同。 | ||
| > 在之前的版本中,这些行数代表对于 Build 端子节点的每一行,Probe 端预计会处理的行数,而不是 Probe 端预计会处理的总行数。由于 `EXPLAIN ANALYZE` 中展示的实际行数(`actRows` 列)表示的是总行数,因此会有含义上的不一致。 |
There was a problem hiding this comment.
在 v6.4 起的版本中,estRows 的数字代表“Probe 端预计会处理的总行数” 吗?
There was a problem hiding this comment.
不太理解 由于 `EXPLAIN ANALYZE` 中展示的实际行数(`actRows` 列)表示的是总行数,因此会有含义上的不一致。 这一句。
- 下面示例没有 EXPLAIN ANALYZE 的返回结果,对 actRows 没有解释;
- 是什么的总行数呢?与什么的 含义上有什么不同呢?
| > 在之前的版本中,这些行数代表对于 Build 端子节点的每一行,Probe 端预计会处理的行数,而不是 Probe 端预计会处理的总行数。由于 `EXPLAIN ANALYZE` 中展示的实际行数(`actRows` 列)表示的是总行数,因此会有含义上的不一致。 | |
| > 在 v6.4.0 之前,`estRows` 表示对于 Build 端子节点的每一行,Probe 端预计会处理的行数。自 v6.4.0 起,`estRows` 表示 Probe 端预计会处理的**总行数**。由于 `EXPLAIN ANALYZE` 中展示的实际行数(`actRows` 列)表示的是总行数,v6.4.0 起这些算子 `estRows` 的含义与 `actRows` 列的含义保持一致。 |
There was a problem hiding this comment.
对这两种算子的 probe 子树,行数有两种可能的表达方式,一种是单次 probe 的行数,一种是总行数。
EXPLAIN ANALYZE 在 actRows 列显示的实际行数总是总行数,而所有估算行数总是单次 probe 的行数,因此这次把估算行数也改成总行数,让他们保持一致。
There was a problem hiding this comment.
因为其它情况都总是表示的总行数,不太需要额外解释;只有这两个算子的这种情况,在展示估算行数的时候,以前显示的不是总行数,所以额外解释了一下。
There was a problem hiding this comment.
这里我稍微改了下,其它地方除了下面加了个空格,都直接 apply suggestion 了。
PTAL~
|
已更新,PTAL~ @TomShawn |
comment 都更新了,请再看下吧。 |
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
|
已更新,请再看下吧~ @TomShawn |
|
/remove-status LGT1 |
|
/merge |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: a7d1fb7 |
What is changed, added or deleted? (Required)
Which TiDB version(s) do your changes apply to? (Required)
Tips for choosing the affected version(s):
By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.
For details, see tips for choosing the affected versions (in Chinese).
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?