ClickHouse/dbms/tests/queries/0_stateless/00028_big_agg_aj_distributed.sql

7 lines
402 B
MySQL
Raw Normal View History

CREATE DATABASE IF NOT EXISTS test;
2014-03-28 19:59:23 +00:00
DROP TABLE IF EXISTS test.big_array;
CREATE TABLE test.big_array (x Array(UInt8)) ENGINE=TinyLog;
SET min_insert_block_size_rows = 0, min_insert_block_size_bytes = 0;
2014-03-28 19:59:23 +00:00
INSERT INTO test.big_array SELECT groupArray(number % 255) AS x FROM (SELECT * FROM system.numbers LIMIT 1000000);
SELECT sum(y) AS s FROM remote('127.0.0.{1,2}', test, big_array) ARRAY JOIN x AS y;