ClickHouse/tests/integration/test_cluster_copier/task_taxi_data.xml

43 lines
1.5 KiB
XML
Raw Normal View History

2021-04-20 13:31:24 +00:00
<?xml version="1.0"?>
<clickhouse>
2021-04-20 13:31:24 +00:00
<remote_servers>
<events>
<shard>
<internal_replication>false</internal_replication>
<replica>
<host>first</host>
<port>9000</port>
</replica>
</shard>
<shard>
<internal_replication>false</internal_replication>
<replica>
<host>second</host>
<port>9000</port>
</replica>
</shard>
<shard>
<internal_replication>false</internal_replication>
<replica>
<host>third</host>
<port>9000</port>
</replica>
</shard>
</events>
</remote_servers>
<max_workers>2</max_workers>
<tables>
<table_events>
<cluster_pull>events</cluster_pull>
<database_pull>dailyhistory</database_pull>
2021-04-22 18:04:32 +00:00
<table_pull>yellow_tripdata_staging</table_pull>
2021-04-20 13:31:24 +00:00
<cluster_push>events</cluster_push>
<database_push>monthlyhistory</database_push>
2021-04-22 18:04:32 +00:00
<table_push>yellow_tripdata_staging</table_push>
2021-04-20 13:31:24 +00:00
<engine>Engine=ReplacingMergeTree() PRIMARY KEY (tpep_pickup_datetime, id) ORDER BY (tpep_pickup_datetime, id) PARTITION BY (pickup_location_id, toYYYYMM(tpep_pickup_datetime))</engine>
2021-04-22 18:04:32 +00:00
<sharding_key>sipHash64(id) % 3</sharding_key>
2021-04-20 13:31:24 +00:00
</table_events>
</tables>
</clickhouse>