mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
58e5d7876b
Right now the query with {uuid} macro without ON CLUSTER fails: CREATE TABLE x UUID 'aaaaaaaa-1111-2222-3333-aaaaaaaaaaaa' (key Int) ENGINE = ReplicatedMergeTree('/tables/{database}/{uuid}', 'r1') ORDER BY tuple(); There is a workaround right now to use ATTACH instead of CREATE, but ATTACH is not CREATE. CREATE still useful for proper RESTORE without ON CLUSTER. So this patch allows this syntax, but only if UUID had been explicitly passed in the query. This looks safe. Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
5 lines
204 B
Plaintext
5 lines
204 B
Plaintext
aaaaaaaa-1111-2222-3333-aaaaaaaaaaaa
|
|
/tables/default/aaaaaaaa-1111-2222-3333-aaaaaaaaaaaa/replicas/r1
|
|
aaaaaaaa-1111-2222-3333-aaaaaaaaaaaa
|
|
/tables/default/aaaaaaaa-1111-2222-3333-aaaaaaaaaaaa/replicas/r1
|