mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
9 lines
537 B
SQL
9 lines
537 B
SQL
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);
|
|
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));
|
|
SELECT count(*) FROM test WHERE bitmapContains(bitmapBuild([1, 5, 7, 9]), toUInt32(num));
|
|
SELECT count(*) FROM test WHERE bitmapContains(bitmapBuild([1, 5, 7, 9]), toUInt64(num));
|
|
DROP TABLE test;
|