Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fix type


Discussion thread


Vote thread
ISSUE
ReleaseTBD

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 statsfield `statistics`  in snapshot to represent the stats file name which store the stats:

...

Code Block
languagejava
titleStats.class
public class Stats {
    private final Long snapshotId;
    private final @Nullable Long mergedRecordCount;
    private final @Nullable Long mergedRecordSize;
    private final @Nullable Map<String, ColStats> colStats;
}

...