mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 03:52:15 +00:00
10 lines
315 B
MySQL
10 lines
315 B
MySQL
|
DROP TABLE IF EXISTS test.avro;
|
||
|
|
||
|
CREATE TABLE test.avro AS test.hits ENGINE = File(Avro);
|
||
|
INSERT INTO test.avro SELECT * FROM test.hits WHERE intHash64(WatchID) % 100 = 0;
|
||
|
|
||
|
SELECT sum(cityHash64(*)) FROM test.hits WHERE intHash64(WatchID) % 100 = 0;
|
||
|
SELECT sum(cityHash64(*)) FROM test.avro;
|
||
|
|
||
|
DROP TABLE test.avro;
|