Skip to content

Commit

Permalink
Update docs/design/2021-10-15-analyze-predicate-columns.md
Browse files Browse the repository at this point in the history
Co-authored-by: Yuanjia Zhang <qw4990@163.com>
  • Loading branch information
xuyifangreeneyes and qw4990 authored Nov 16, 2021
1 parent cbfd5f2 commit d3411e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/design/2021-10-15-analyze-predicate-columns.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ We want to support the `ANALYZE` option to only collect the statistics of predic
ANALYZE TABLE TableNameList (ALL COLUMNS | PREDICATE COLUMNS | COLUMNS ColumnNameList)? AnalyzeOptionListOpt
ANALYZE TABLE TableName (PARTITION PartitionNameList)? (PREDICATE COLUMNS | COLUMNS ColumnNameList)? AnalyzeOptionListOpt
```
1. FOR `ANALYZE ALL COLUMNS`, the statistics of all columns would be collected.
1. For `ANALYZE ALL COLUMNS`, the statistics of all columns would be collected.
1. For `ANALYZE PREDICATE COLUMNS`, the statistics of predicate columns and indexed columns would be collected. If there is no predicate columns in record, TiDB would collect the statistics of all columns and give a warning to the client.
2. For `ANALYZE COLUMNS ColumnNameList`, the statistics of the columns in `ColumnNameList` and indexed columns would be collected.
3. By default, the statistics of all columns would be collected.
Expand Down

0 comments on commit d3411e9

Please sign in to comment.