Files
datastore/tests/performance/estimate_compression_ratio_t64.xml

11 lines
536 B
XML

<test>
<create_query>CREATE TABLE t_t64_perf (x UInt32) ENGINE = MergeTree ORDER BY tuple() SETTINGS min_bytes_for_wide_part = 0, max_compress_block_size = 65536</create_query>
<fill_query>INSERT INTO t_t64_perf SELECT number FROM numbers(10000000)</fill_query>
<query>SELECT estimateCompressionRatio('T64', 65536)(x) FROM t_t64_perf FORMAT Null</query>
<query>SELECT estimateCompressionRatio('T64', 1048576)(x) FROM t_t64_perf FORMAT Null</query>
<drop_query>DROP TABLE IF EXISTS t_t64_perf</drop_query>
</test>