ClickHouse/tests/queries/0_stateless/02991_count_rewrite_analyzer.sql
2024-08-05 15:29:14 +00:00

8 lines
449 B
SQL

-- Regression test for https://github.com/ClickHouse/ClickHouse/issues/59919
SET enable_analyzer=1;
SELECT toTypeName(sum(toNullable('a') IN toNullable('a'))) AS x;
SELECT toTypeName(count(toNullable('a') IN toNullable('a'))) AS x;
SELECT toTypeName(sum(toFixedString('a', toLowCardinality(toNullable(1))) IN toFixedString('a', 1))) AS x;
SELECT toTypeName(count(toFixedString('a', toLowCardinality(toNullable(1))) IN toFixedString('a', 1))) AS x;