Skip to content

fetch partition does not support macro in ZK path #18805

@den-crane

Description

@den-crane

CREATE TABLE test (i Int64, s String)
ENGINE = ReplicatedMergeTree ('/clickhouse/{cluster}/tables/test','{replica}') ORDER BY i;

insert into test select 1, '';

CREATE TABLE restore (i Int64, s String)
ENGINE = ReplicatedMergeTree ('/clickhouse/{cluster}/tables/restore','{replica}') ORDER BY i;

alter table restore fetch partition tuple() from '/clickhouse/{cluster}/tables/test';

DB::Exception: No node, path: /clickhouse/{cluster}/tables/test/replicas.

Expected: macro {cluster} to be substituted the same way as with CREATE TABLE

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions