ClickHouse/tests/queries/0_stateless/03093_bug_gcd_codec.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
642 B
MySQL
Raw Normal View History

2024-04-22 18:16:43 +00:00
-- Tags: long
CREATE TABLE test_gcd(test_col UInt32 CODEC(GCD, LZ4))
ENGINE = MergeTree
ORDER BY tuple()
SETTINGS index_granularity = 8192, index_granularity_bytes = 1024;
2024-04-25 15:27:23 +00:00
INSERT INTO test_gcd SELECT floor(randUniform(1, 3)) FROM numbers(150000);
2024-04-22 18:16:43 +00:00
OPTIMIZE TABLE test_gcd FINAL;
CREATE TABLE test_gcd2(test_col UInt32 CODEC(GCD, LZ4))
ENGINE = MergeTree
ORDER BY tuple()
SETTINGS index_granularity = 8192, index_granularity_bytes = 1024, min_bytes_for_wide_part = 0, max_compress_block_size = 1024, min_compress_block_size = 1024;
2024-04-25 15:27:23 +00:00
INSERT INTO test_gcd2 SELECT floor(randUniform(1, 3)) FROM numbers(150000);
2024-04-22 18:16:43 +00:00
OPTIMIZE TABLE test_gcd2 FINAL;