我试图在clickhouse中创建一个带有map数据类型的表,但是它给出了这个错误。
query: CREATE TABLE table_map (a Map(String, UInt64)) ENGINE=Memory;
Received exception from server (version 21.3.4):
Code: 44. DB::Exception: Received from localhost:9000. DB::Exception: Cannot create table with column 'a' which type is 'Map(String,UInt64)' because experimental Map type is not allowed. Set 'allow_experimental_map_type = 1' setting to enable.如何打开此功能?我想不出来。
发布于 2021-04-07 04:39:56
您可以在默认配置文件中启用它
cat /etc/clickhouse/users.d/allow_experimental_map_type.xml
<?xml version="1.0"?>
<yandex>
<profiles>
<default>
<allow_experimental_map_type>1</allow_experimental_map_type>
</default>
</profiles>
</yandex>https://stackoverflow.com/questions/66950262
复制相似问题