mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 11:32:03 +00:00
14 lines
472 B
SQL
14 lines
472 B
SQL
-- Tags: no-fasttest
|
|
|
|
DROP TABLE IF EXISTS test.avro;
|
|
|
|
SET max_threads = 1, max_insert_threads = 0, max_block_size = 8192, min_insert_block_size_rows = 8192, min_insert_block_size_bytes = 1048576; -- lower memory usage
|
|
|
|
CREATE TABLE test.avro AS test.hits ENGINE = File(Avro);
|
|
INSERT INTO test.avro SELECT * FROM test.hits LIMIT 10000;
|
|
|
|
SELECT sum(cityHash64(*)) FROM (SELECT * FROM test.hits LIMIT 10000);
|
|
SELECT sum(cityHash64(*)) FROM test.avro;
|
|
|
|
DROP TABLE test.avro;
|