mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
This commit is contained in:
parent
9dd541474a
commit
321f3d8ce4
@ -0,0 +1 @@
|
||||
1 Ksenia
|
@ -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;
|
Loading…
Reference in New Issue
Block a user