跳到主要内容
跳到主要内容

system.query_condition_cache

在 ClickHouse Cloud 中查询

此系统表中的数据在 ClickHouse Cloud 中的每个节点上本地保存。因此,要获得所有数据的完整视图,需要使用 clusterAllReplicas 函数。有关进一步的详细信息,请参见 这里

显示 查询条件缓存 的内容。

列:

  • table_uuid (String) — 表的 UUID。
  • part_name (String) — 分片的名称。
  • condition (String) — 哈希筛选条件。只有当设置 query_condition_cache_store_conditions_as_plaintext = true 时才会设置。
  • condition_hash (UInt64) — 筛选条件的哈希值。
  • entry_size (UInt64) — 条目的字节大小。
  • matching_marks (String) — 匹配标记。

示例

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.