This commit is contained in:
Anton Popov 2021-12-01 21:21:38 +03:00
parent f0691e21b1
commit bb12e064af
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
id Default
u Sparse
s Sparse
20 11
182 155
id Default
t Sparse
20
182

View File

@ -8,9 +8,9 @@ SETTINGS ratio_of_defaults_for_sparse_serialization = 0.5;
INSERT INTO t_sparse_alter SELECT
number,
if (number % 10 = 0, number, 0),
if (number % 20 = 0, toString(number), '')
FROM numbers(200);
if (number % 11 = 0, number, 0),
if (number % 13 = 0, toString(number), '')
FROM numbers(2000);
SELECT column, serialization_kind FROM system.parts_columns WHERE database = currentDatabase() AND table = 't_sparse_alter' AND active ORDER BY name;