system.data_skipping_indices

包含有关所有表中现有数据跳过索引的信息.

列信息:

  • database (String) — 数据库名称.
  • table (String) — 数据表名称.
  • name (String) — 索引名称.
  • type (String) — 索引类型.
  • expr (String) — 索引计算表达式.
  • granularity (UInt64) — 块中颗粒的数量.
  • data_compressed_bytes (UInt64) — 压缩数据的大小, 以字节为单位.
  • data_uncompressed_bytes (UInt64) — 解压缩数据的大小, 以字节为单位.
  • marks_bytes (UInt64) — 标记的大小, 以字节为单位.

示例

  1. SELECT * FROM system.data_skipping_indices LIMIT 2 FORMAT Vertical;
  1. Row 1:
  2. ──────
  3. database: default
  4. table: user_actions
  5. name: clicks_idx
  6. type: minmax
  7. expr: clicks
  8. granularity: 1
  9. data_compressed_bytes: 58
  10. data_uncompressed_bytes: 6
  11. marks: 48
  12. Row 2:
  13. ──────
  14. database: default
  15. table: users
  16. name: contacts_null_idx
  17. type: minmax
  18. expr: assumeNotNull(contacts_null)
  19. granularity: 1
  20. data_compressed_bytes: 58
  21. data_uncompressed_bytes: 6
  22. marks: 48