Skip to main content
Skip to main content
Edit this page

system.query_condition_cache

Querying in ClickHouse Cloud

The data in this system table is held locally on each node in ClickHouse Cloud. Obtaining a complete view of all data, therefore, requires the clusterAllReplicas function. See here for further details.

Shows the content of the query condition cache.

Columns:

  • table_uuid (String) — The table UUID.
  • part_name (String) — The part name.
  • condition (String) — The hashed filter condition. Only set if setting query_condition_cache_store_conditions_as_plaintext = true.
  • condition_hash (UInt64) — The hash of the filter condition.
  • entry_size (UInt64) — The size of the entry in bytes.
  • matching_marks (String) — Matching marks.

Example

SELECT * FROM system.query_condition_cache FORMAT Vertical;
Row 1:
──────
table_uuid:     28270a24-ea27-49f6-99cd-97b9bee976ac
part_name:      all_1_1_0
condition:      or(equals(b, 10000_UInt16), equals(c, 10000_UInt16))
condition_hash: 5456494897146899690 -- 5.46 quintillion
entry_size:     40
matching_marks: 111111110000000000000000000000000000000000000000000000000111111110000000000000000

1 row in set. Elapsed: 0.004 sec.