メインコンテンツへスキップ
メインコンテンツへスキップ

system.data_skipping_indices

すべてのテーブルに存在するデータスキップインデックスに関する情報を保持しています。

カラム:

  • database (String) — データベース名。
  • table (String) — テーブル名。
  • name (String) — インデックス名。
  • type (String) — インデックスの型。
  • type_full (String) — CREATE 文に記載されたインデックス型の式。
  • expr (String) — インデックス計算用の式。
  • creation (Enum8('Explicit' = 0, 'Implicit' = 1)) — インデックスが暗黙的に作成されたかどうか(add_minmax_index_for_numeric_columns などによるものか)。
  • granularity (UInt64) — ブロック内のグラニュール数。
  • data_compressed_bytes (UInt64) — 圧縮データのサイズ(バイト単位)。
  • data_uncompressed_bytes (UInt64) — 非圧縮データのサイズ(バイト単位)。
  • marks_bytes (UInt64) — マークのサイズ(バイト単位)。

SELECT * FROM system.data_skipping_indices LIMIT 2 FORMAT Vertical;
Row 1:
──────
database:                default
table:                   user_actions
name:                    clicks_idx
type:                    minmax
type_full:               minmax
expr:                    clicks
creation:                Explicit
granularity:             1
data_compressed_bytes:   58
data_uncompressed_bytes: 6
marks_bytes:             48

Row 2:
──────
database:                default
table:                   users
name:                    contacts_null_idx
type:                    minmax
type_full:               minmax
expr:                    assumeNotNull(contacts_null)
creation:                Explicit
granularity:             1
data_compressed_bytes:   58
data_uncompressed_bytes: 6
marks_bytes:             48