Update settings.md

This commit is contained in:
gyuton 2021-03-19 16:29:16 +03:00 committed by GitHub
parent 8f1f9415f9
commit 2852574729
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1770,11 +1770,8 @@ SELECT uniq(shard_num) FROM system.clusters WHERE cluster = 'requested_cluster';
```sql
CREATE TABLE x AS system.numbers ENGINE = MergeTree ORDER BY number;
CREATE TABLE x_dist AS x ENGINE = Distributed('test_cluster_two_shards_localhost', currentDatabase(), x);
INSERT INTO x_dist SELECT * FROM numbers(5) SETTINGS insert_shard_id = 1;
SELECT * FROM x_dist ORDER BY number ASC;
```