ClickHouse/tests/queries/0_stateless/02701_fail_on_invalid_having.sql
2023-03-29 00:15:20 +02:00

2 lines
149 B
SQL

SELECT a, sum(b) FROM (SELECT 1 AS a, 1 AS b, 0 AS c) GROUP BY a HAVING c SETTINGS allow_experimental_analyzer=1 -- { serverError NOT_AN_AGGREGATE }