-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Macro 'uuid' and empty arguments of ReplicatedMergeTree are supported only for ON CLUSTER queries with Atomic database engine #552
Comments
add following lines to your config.yaml general:
restore_schema_on_cluster: ch_cluster or <clickhouse>
<default_replica_path>/clickhouse/tables/{shard}/{database}/{table}</default_replica_path>
</clickhouse> |
Thank you very much,I want to backup one by one,so restore_schema_on_cluster: ch_cluster no need,
info DROP TABLE IF EXISTS |
looks strange, CREATE TABLE CREATE TABLE zone_dynamic_ods.cluster_dynamic_ods__message_detail ON CLUSTER 'ch-cluster' UUID '0f9f216d-510b-4a3e-b7f9-84998e33a417' (`vin` String , `col` String `collect_type` String COMMENT '采集方式', `dt` String COMMENT '日期', `hh` String COMMENT '小时', `message_receive_time` DateTime64(3) COMMENT 'Kafka消息接收时间', `etl_update_time` DateTime64(3) COMMENT 'ETL处理时间', `update_time` DateTime DEFAULT now() COMMENT '更新时间') ENGINE = ReplicatedReplacingMergeTree('/clickhouse/tables/{uuid}/{shard}', '{replica}') PARTITION BY toYYYYMMDD(fromUnixTimestamp64Milli(ct)) ORDER BY (uuid, collect_type) TTL toDateTime(fromUnixTimestamp64Milli(ct)) + toIntervalDay(7) SETTINGS index_granularity = 8192 need time to reproduce localy |
could you share |
clickhouse version 22.8.1 |
looks weird
according to {uuid} shall rewrite in your case |
really weird could you remove and share result of following command
|
https://regex101.com/r/Ka9yps/1 but still strange why |
The text was updated successfully, but these errors were encountered: