Hugh's Blog

clickhouse-copier 使用

clickhouse-copier 是官方的数据迁移工具,主要用在多个集群之间的数据迁移,当然单个集群也适用。 本地使用 Docker 搭建测试集群:clickhouse-cluster-e ...

ClickHouse 笔记

ClickHouse 是一款开源的 OLAP 列存储数据库,下面是一些使用笔记,做个记录。 常用语句 -- 创建表 create table temp (`EventDate` DateTime, `UserId` UInt32) engine = MergeTree() partition by toYYYYMM(EventDate) order by EventDate; -- 创建分布式复制表 create table temp (`EventDate` DateTime, `UserId` UInt32) ...