THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
Discussion thread | |
---|---|
Vote thread | |
ISSUE | |
Release | TBD |
Motivation
Table statistics describe the data distribution characteristics of a table. Common statistics include the number of rows, table size, column statistics and more. They are very important for DBMS, especially when executing query plans and optimizing query performance.
...
- distinctCount: The number of distinct values.
- min: The minimum value of the column.
- max: The maximum value of the column.
- nullCount: The number of nulls.
- avgLen: Average column length.
- maxLen: Maximum column length.
Storage
snapshot
Add a new filed named stats
field `statistics` in snapshot to represent the stats file name which store the stats:
...
Code Block | ||||
---|---|---|---|---|
| ||||
public class Stats {
private final Long snapshotId;
private final @Nullable Long mergedRecordCount;
private final @Nullable Long mergedRecordSize;
private final @Nullable Map<String, ColStats> colStats;
} |
...