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

10 lines
315 B
MySQL
Raw Normal View History

2020-01-23 02:39:58 +00:00
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;