2023-03-10 08:45:42 +00:00
|
|
|
SELECT
|
|
|
|
bitmapHasAny(bitmapBuild([toUInt8(1)]), (
|
|
|
|
SELECT groupBitmapState(toUInt8(1))
|
|
|
|
)) has1,
|
|
|
|
bitmapHasAny(bitmapBuild([toUInt64(1)]), (
|
|
|
|
SELECT groupBitmapState(toUInt64(2))
|
|
|
|
)) has2;
|
|
|
|
|
|
|
|
SELECT '--------------';
|
|
|
|
|
|
|
|
SELECT *
|
|
|
|
FROM
|
|
|
|
(
|
|
|
|
SELECT
|
|
|
|
bitmapHasAny(bitmapBuild([toUInt8(1)]), (
|
|
|
|
SELECT groupBitmapState(toUInt8(1))
|
|
|
|
)) has1,
|
|
|
|
bitmapHasAny(bitmapBuild([toUInt64(1)]), (
|
|
|
|
SELECT groupBitmapState(toUInt64(2))
|
|
|
|
)) has2
|
2023-04-24 16:20:18 +00:00
|
|
|
) SETTINGS allow_experimental_analyzer = 0; -- { serverError 43 }
|
2023-03-10 08:45:42 +00:00
|
|
|
|
|
|
|
SELECT '--------------';
|
|
|
|
|
|
|
|
SELECT *
|
|
|
|
FROM
|
|
|
|
(
|
|
|
|
SELECT
|
|
|
|
bitmapHasAny(bitmapBuild([toUInt8(1)]), (
|
|
|
|
SELECT groupBitmapState(toUInt8(1))
|
|
|
|
)) has1,
|
|
|
|
bitmapHasAny(bitmapBuild([toUInt64(1)]), (
|
|
|
|
SELECT groupBitmapState(toUInt64(2))
|
|
|
|
)) has2
|
|
|
|
) SETTINGS allow_experimental_analyzer = 1;
|
|
|
|
|