2019-07-25 16:26:48 +00:00
|
|
|
DROP TABLE IF EXISTS test;
|
|
|
|
CREATE TABLE test (num UInt64, str String) ENGINE = MergeTree ORDER BY num;
|
|
|
|
INSERT INTO test (num) VALUES (1), (2), (10), (15), (23);
|
2021-01-06 13:20:01 +00:00
|
|
|
SELECT count(*) FROM test WHERE bitmapContains(bitmapBuild([1, 5, 7, 9]), toUInt8(num));
|
|
|
|
SELECT count(*) FROM test WHERE bitmapContains(bitmapBuild([1, 5, 7, 9]), toUInt16(num));
|
2019-07-25 16:26:48 +00:00
|
|
|
SELECT count(*) FROM test WHERE bitmapContains(bitmapBuild([1, 5, 7, 9]), toUInt32(num));
|
2021-01-06 13:20:01 +00:00
|
|
|
SELECT count(*) FROM test WHERE bitmapContains(bitmapBuild([1, 5, 7, 9]), toUInt64(num));
|
2019-07-25 16:26:48 +00:00
|
|
|
DROP TABLE test;
|