Nikita Fomichev 2024-04-09 23:32:21 +02:00
parent 9dd541474a
commit 321f3d8ce4
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1 @@
1 Ksenia

View File

@ -0,0 +1,13 @@
-- https://github.com/ClickHouse/ClickHouse/issues/59101
SET allow_experimental_analyzer = 1;
CREATE TABLE users (name String, age Int16) ENGINE=Memory;
INSERT INTO users VALUES ('John', 33);
INSERT INTO users VALUES ('Ksenia', 48);
INSERT INTO users VALUES ('Alice', 50);
SELECT
multiIf((age > 30) or (true), '1', '2') AS a,
max(name)
FROM users
GROUP BY a;