![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
clickhouse
文章平均质量分 67
net_wolf
这个作者很懒,什么都没留下…
展开
-
clickhouse的常用引擎
1)Distributed 引擎 这个引擎是为了实现分布式的查询的,另外一个功能就是插入的时候实现Shard(分片) 可以理解为一个特别的视图,用来支持分布查询和分片插入数据。 反应到配置中的就是remote_servers的定义部分,下面的例子定义了三个shard支持分布式查询: <!-- Configuration of clusters that could be used in Distributed tables. https://cli...原创 2021-11-24 14:40:43 · 2778 阅读 · 0 评论 -
clickhouse-server:20.5.4.40 修改用户配置允许替换null值为默认值
定义表格:CREATE TABLE test( `created_at` DateTime DEFAULT now(), `created_by` Nullable(Int64))ENGINE=TinyLog; 插入数据:insert into test ( created_at,created_by) values(null,null) 在 clickhouse-server:21.9.4.35 版本,上述语句可以正常执行,插入数据:03f1f51b76a原创 2021-11-03 16:36:22 · 755 阅读 · 0 评论