From 8ea209c08412a202433a725ca9648067c32d7d9e Mon Sep 17 00:00:00 2001 From: Denny Crane Date: Tue, 9 Nov 2021 17:34:28 -0400 Subject: [PATCH] Update column.md --- docs/en/sql-reference/statements/alter/column.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/en/sql-reference/statements/alter/column.md b/docs/en/sql-reference/statements/alter/column.md index 4eb251b88cd..95c4cb6898c 100644 --- a/docs/en/sql-reference/statements/alter/column.md +++ b/docs/en/sql-reference/statements/alter/column.md @@ -212,6 +212,9 @@ SET mutations_sync = 2; CREATE TABLE tmp (x Int64) ENGINE = MergeTree() ORDER BY tuple() PARTITION BY tuple(); INSERT INTO tmp SELECT * FROM system.numbers LIMIT 10; ALTER TABLE tmp ADD COLUMN s String MATERIALIZED toString(x); + +ALTER TABLE tmp MATERIALIZE COLUMN s; + SELECT groupArray(x), groupArray(s) FROM tmp; ```