ClickHouse/tests/queries/0_stateless/02677_analyzer_bitmap_has_any.sql
2023-04-24 16:22:12 +00:00

37 lines
896 B
SQL

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
) SETTINGS allow_experimental_analyzer = 0; -- { serverError 43 }
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;