mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
Update 00154_avro.sql
This commit is contained in:
parent
c15fe728fd
commit
ddefb89d86
@ -3,9 +3,9 @@ DROP TABLE IF EXISTS test.avro;
|
|||||||
SET max_threads = 1, max_block_size = 8192, min_insert_block_size_rows = 8192, min_insert_block_size_bytes = 1048576; -- lower memory usage
|
SET max_threads = 1, 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);
|
CREATE TABLE test.avro AS test.hits ENGINE = File(Avro);
|
||||||
INSERT INTO test.avro SELECT * FROM test.hits WHERE intHash64(WatchID) % 100 = 0;
|
INSERT INTO test.avro SELECT * FROM test.hits LIMIT 10000;
|
||||||
|
|
||||||
SELECT sum(cityHash64(*)) FROM test.hits WHERE intHash64(WatchID) % 100 = 0;
|
SELECT sum(cityHash64(*)) FROM (SELECT * FROM test.hits LIMIT 10000);
|
||||||
SELECT sum(cityHash64(*)) FROM test.avro;
|
SELECT sum(cityHash64(*)) FROM test.avro;
|
||||||
|
|
||||||
DROP TABLE test.avro;
|
DROP TABLE test.avro;
|
||||||
|
Loading…
Reference in New Issue
Block a user