show create table app.events_local FORMAT Vertical;
SHOW CREATE TABLE app.events_local
FORMAT Vertical
Query id: f68db6be-889d-4c83-9ec0-5e68b0ca31a9
Row 1:
──────
statement: CREATE TABLE app.events_local
(
`id` Int64,
`title` String,
`description` String,
`content` String,
`date` Date
)
ENGINE = ReplicatedMergeTree('/clickhouse/tables/{cluster}/{shard}/app/events_local', '{replica}')
PARTITION BY date
ORDER BY id
SETTINGS index_granularity = 8192
1 row in set. Elapsed: 0.002 sec.
show create table app.events_distributed FORMAT Vertical
SHOW CREATE TABLE app.events_distributed
FORMAT Vertical
Query id: fc860c99-43de-4e77-a504-ab6520bca8e8
Row 1:
──────
statement: CREATE TABLE app.events_distributed
(
`id` Int64,
`title` String,
`description` String,
`content` String,
`date` Date
)
ENGINE = Distributed('{cluster}', 'app', 'events_local', rand())
1 row in set. Elapsed: 0.003 sec.