added functional test for shard bitmap deserialization

This commit is contained in:
Zhichang Yu 2019-09-03 17:39:15 +08:00
parent 9e587fb139
commit fb5c11146a
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,6 @@
DROP TABLE IF EXISTS numbers500k;
CREATE VIEW numbers500k AS SELECT number FROM system.numbers LIMIT 500000;
SELECT count(*) FROM remote('127.0.0.{2,3}', currentDatabase(), numbers500k) WHERE bitmapContains((SELECT groupBitmapState(number) FROM numbers500k), toUInt32(number));
DROP TABLE numbers500k;