mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 12:22:12 +00:00
Update column.md
This commit is contained in:
parent
eca543051f
commit
d7be766581
@ -212,6 +212,9 @@ SET mutations_sync = 2;
|
|||||||
CREATE TABLE tmp (x Int64) ENGINE = MergeTree() ORDER BY tuple() PARTITION BY tuple();
|
CREATE TABLE tmp (x Int64) ENGINE = MergeTree() ORDER BY tuple() PARTITION BY tuple();
|
||||||
INSERT INTO tmp SELECT * FROM system.numbers LIMIT 10;
|
INSERT INTO tmp SELECT * FROM system.numbers LIMIT 10;
|
||||||
ALTER TABLE tmp ADD COLUMN s String MATERIALIZED toString(x);
|
ALTER TABLE tmp ADD COLUMN s String MATERIALIZED toString(x);
|
||||||
|
|
||||||
|
ALTER TABLE tmp MATERIALIZE COLUMN s;
|
||||||
|
|
||||||
SELECT groupArray(x), groupArray(s) FROM tmp;
|
SELECT groupArray(x), groupArray(s) FROM tmp;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user