2022-08-28 13:53:52 +00:00
|
|
|
---
|
2022-08-28 13:58:27 +00:00
|
|
|
slug: /en/operations/system-tables/data_skipping_indices
|
2022-08-28 13:53:52 +00:00
|
|
|
---
|
2022-06-02 10:55:18 +00:00
|
|
|
# data_skipping_indices
|
2021-06-24 23:49:47 +00:00
|
|
|
|
|
|
|
Contains information about existing data skipping indices in all the tables.
|
|
|
|
|
|
|
|
Columns:
|
|
|
|
|
2023-04-19 15:55:29 +00:00
|
|
|
- `database` ([String](../../sql-reference/data-types/string.md)) — Database name.
|
|
|
|
- `table` ([String](../../sql-reference/data-types/string.md)) — Table name.
|
|
|
|
- `name` ([String](../../sql-reference/data-types/string.md)) — Index name.
|
|
|
|
- `type` ([String](../../sql-reference/data-types/string.md)) — Index type.
|
|
|
|
- `type_full` ([String](../../sql-reference/data-types/string.md)) — Index type expression from create statement.
|
|
|
|
- `expr` ([String](../../sql-reference/data-types/string.md)) — Expression for the index calculation.
|
|
|
|
- `granularity` ([UInt64](../../sql-reference/data-types/int-uint.md)) — The number of granules in the block.
|
|
|
|
- `data_compressed_bytes` ([UInt64](../../sql-reference/data-types/int-uint.md)) — The size of compressed data, in bytes.
|
|
|
|
- `data_uncompressed_bytes` ([UInt64](../../sql-reference/data-types/int-uint.md)) — The size of decompressed data, in bytes.
|
|
|
|
- `marks_bytes` ([UInt64](../../sql-reference/data-types/int-uint.md)) — The size of marks, in bytes.
|
2021-06-24 23:49:47 +00:00
|
|
|
|
|
|
|
**Example**
|
|
|
|
|
|
|
|
```sql
|
|
|
|
SELECT * FROM system.data_skipping_indices LIMIT 2 FORMAT Vertical;
|
|
|
|
```
|
|
|
|
|
|
|
|
```text
|
|
|
|
Row 1:
|
|
|
|
──────
|
|
|
|
database: default
|
|
|
|
table: user_actions
|
|
|
|
name: clicks_idx
|
|
|
|
type: minmax
|
2023-01-06 14:30:57 +00:00
|
|
|
type_full: minmax
|
2021-06-24 23:49:47 +00:00
|
|
|
expr: clicks
|
|
|
|
granularity: 1
|
2021-10-08 13:13:56 +00:00
|
|
|
data_compressed_bytes: 58
|
|
|
|
data_uncompressed_bytes: 6
|
|
|
|
marks: 48
|
2021-06-24 23:49:47 +00:00
|
|
|
|
|
|
|
Row 2:
|
|
|
|
──────
|
|
|
|
database: default
|
|
|
|
table: users
|
|
|
|
name: contacts_null_idx
|
|
|
|
type: minmax
|
2023-01-06 14:30:57 +00:00
|
|
|
type_full: minmax
|
2021-06-24 23:49:47 +00:00
|
|
|
expr: assumeNotNull(contacts_null)
|
|
|
|
granularity: 1
|
2021-10-08 13:13:56 +00:00
|
|
|
data_compressed_bytes: 58
|
|
|
|
data_uncompressed_bytes: 6
|
|
|
|
marks: 48
|
2021-06-24 23:49:47 +00:00
|
|
|
```
|