Skip to content

Commit

Permalink
statistics: mark NDV as deprecated and update variable scopes (#18318)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oreoxmt committed Aug 7, 2024
1 parent c95cf6f commit 730123a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sql-statements/sql-statement-show-stats-buckets.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ summary: TiDB 数据库中 SHOW STATS_BUCKETS 的使用概况。
| `Repeats` | 最大值的出现次数 |
| `Lower_bound` | 最小值 |
| `Upper_bound` | 最大值 |
| `Ndv` | 桶中不同值的数量。`tidb_analyze_version` = `1` 时,`Ndv` 总是 `0`,没有实际意义|
| `Ndv` | 桶中不同值的数量。该字段已废弃,其值由于不准确会始终显示为 `0`|

## 语法图

Expand Down
2 changes: 1 addition & 1 deletion system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ MPP 是 TiFlash 引擎提供的分布式计算框架,允许节点之间的数
### `tidb_analyze_distsql_scan_concurrency` <span class="version-mark">从 v7.6.0 版本开始引入</span>
- 作用域:GLOBAL
- 作用域:SESSION | GLOBAL
- 是否持久化到集群:是
- 是否受 Hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value) 控制:否
- 类型:整数型
Expand Down

0 comments on commit 730123a

Please sign in to comment.