ClickHouseHow to create index for Map Type Column or one key of it?
Posted 东海陈光剑
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ClickHouseHow to create index for Map Type Column or one key of it?相关的知识,希望对你有一定的参考价值。
How to create index for Map Type Column or one key of it?
[version 21.8.10 revision 54449] #31801
You can create index for map keys, or for map values. Example:
CREATE TABLE test_table
(
id UInt64,
value Map(Int64, String),
index value_key_index mapKeys(value) TYPE bloom_filter GRANULARITY 4
) ENGINE=MergeTree ORDER BY id;
Link to documentation https://clickhouse.com/docs/en/engines/table-engines/mergetree-family/mergetree/#available-types-of-indices.
参考:https://github.com/ClickHouse/ClickHouse/issues/31801
以上是关于ClickHouseHow to create index for Map Type Column or one key of it?的主要内容,如果未能解决你的问题,请参考以下文章
golang Go中的基本RESTful API - https://medium.com/@etiennerouzeaud/how-to-create-a-basic-restful-api-i
How to create a OnCellDblClick for Delphi's TDBGrid
Jmeter连接Mysql出现Cannot create PoolableConnectionFactory (Could not create connection to database serv