ClickHouse/tests/queries/1_stateful/00154_avro.sql

14 lines
462 B
MySQL
Raw Normal View History

2021-09-12 12:35:27 +00:00
-- Tags: no-unbundled, no-fasttest
2020-01-23 02:39:58 +00:00
DROP TABLE IF EXISTS test.avro;
2020-05-01 18:26:52 +00:00
SET max_threads = 1, max_block_size = 8192, min_insert_block_size_rows = 8192, min_insert_block_size_bytes = 1048576; -- lower memory usage
2020-01-23 02:39:58 +00:00
CREATE TABLE test.avro AS test.hits ENGINE = File(Avro);
2020-05-01 20:13:18 +00:00
INSERT INTO test.avro SELECT * FROM test.hits LIMIT 10000;
2020-01-23 02:39:58 +00:00
2020-05-01 20:13:18 +00:00
SELECT sum(cityHash64(*)) FROM (SELECT * FROM test.hits LIMIT 10000);
2020-01-23 02:39:58 +00:00
SELECT sum(cityHash64(*)) FROM test.avro;
DROP TABLE test.avro;