mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 02:52:13 +00:00
19 lines
572 B
SQL
19 lines
572 B
SQL
DROP TABLE IF EXISTS t_sparse_02235;
|
|
|
|
CREATE TABLE t_sparse_02235 (a UInt8) ENGINE = MergeTree ORDER BY tuple()
|
|
SETTINGS ratio_of_defaults_for_sparse_serialization = 0.9;
|
|
|
|
SYSTEM STOP MERGES t_sparse_02235;
|
|
|
|
INSERT INTO t_sparse_02235 SELECT 1 FROM numbers(1000);
|
|
INSERT INTO t_sparse_02235 SELECT 0 FROM numbers(1000);
|
|
|
|
SELECT name, column, serialization_kind FROM system.parts_columns
|
|
WHERE database = currentDatabase() AND table = 't_sparse_02235'
|
|
ORDER BY name, column;
|
|
|
|
SET check_query_single_value_result = 0;
|
|
CHECK TABLE t_sparse_02235;
|
|
|
|
DROP TABLE t_sparse_02235;
|