Skip to content

Commit

Permalink
stats, sql: fix format and update wording (#18192) (#18303)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Jul 19, 2024
1 parent 383522a commit 59c2a77
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 40 deletions.
2 changes: 1 addition & 1 deletion extended-statistics.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Other TiDB nodes will read this change and delete the object in their memory cac
### Export and import extended statistics
The way of exporting or importing extended statistics is the same as exporting or importing basic statistics. See [Introduction to Statistics - Import and export statistics](/statistics.md#import-and-export-statistics) for details.
The way of exporting or importing extended statistics is the same as exporting or importing basic statistics. See [Introduction to Statistics - Import and export statistics](/statistics.md#export-and-import-statistics) for details.
## Usage examples for correlation-type extended statistics
Expand Down
6 changes: 3 additions & 3 deletions sql-statements/sql-statement-show-stats-histograms.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ Currently, the `SHOW STATS_HISTOGRAMS` statement returns the following columns:

| Column name | Description |
| -------- | ------------- |
| Db_name | Database name |
| `Db_name` | Database name |
| `Table_name` | The table name |
| `Partition_name` | The partition name |
| `Column_name` | The column name |
| `Column_name` | The column name (when `is_index` is `0`) or the index name (when `is_index` is `1`) |
| `Is_index` | Whether it is an index column or not |
| `Update_time` | The update time |
| `Distinct_count` | The distinct count |
| `Null_count` | NULL count |
| `Avg_col_size` | The average col size |
| `Correlation` | Correlation |
| `Correlation` | Pearson correlation coefficient between this column and the integer primary key column, indicating the degree of association between the two columns |
| `Load_status` | Load status, such as `allEvicted` and `allLoaded` |
| `Total_mem_usage` | The total memory usage |
| `Hist_mem_usage` | The historical memory usage |
Expand Down
Loading

0 comments on commit 59c2a77

Please sign in to comment.