Skip to content

Instantly share code, notes, and snippets.

@DeanThompson
DeanThompson / migrate_clickhouse.py
Last active August 21, 2020 15:49
Simple Python script to migrate data from one ClickHouse cluster to another.
import collections
import datetime
import functools
import logging
import time
from clickhouse_driver import Client
source_conn = Client(host='source-host', user='user', password='password')
target_conn = Client(host='target-host', user='user', password='password')