system.data_skipping_indices

Contains information about existing data skipping indices in all the tables.

Columns:

  • database (String) — Database name.
  • table (String) — Table name.
  • name (String) — Index name.
  • type (String) — Index type.
  • expr (String) — Expression for the index calculation.
  • granularity (UInt64) — The number of granules in the block.

Example

  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. Row 2:
  10. ──────
  11. database: default
  12. table: users
  13. name: contacts_null_idx
  14. type: minmax
  15. expr: assumeNotNull(contacts_null)
  16. granularity: 1