ClickHouse/tests/queries/0_stateless/00980_shard_aggregation_state_deserialization.sql

11 lines
354 B
MySQL
Raw Normal View History

2021-09-12 12:35:27 +00:00
-- Tags: shard
DROP TABLE IF EXISTS numbers500k;
CREATE VIEW numbers500k AS SELECT number FROM system.numbers LIMIT 500000;
SET max_query_size = 1073741824;
SELECT count(*) FROM remote('127.0.0.{2,3}', currentDatabase(), numbers500k) WHERE bitmapContains((SELECT groupBitmapState(number) FROM numbers500k), toUInt32(number));
DROP TABLE numbers500k;