ClickHouse/tests/queries/0_stateless/03111_inner_join_group_by.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
352 B
MySQL
Raw Normal View History

-- https://github.com/ClickHouse/ClickHouse/issues/50705
2024-07-12 12:49:26 +00:00
set enable_analyzer=1;
SELECT
count(s0.number),
s1.half
FROM system.numbers AS s0
INNER JOIN
(
SELECT
number,
number / 2 AS half
FROM system.numbers
LIMIT 10
) AS s1 ON s0.number = s1.number
GROUP BY s0.number > 5
2024-07-12 12:49:26 +00:00
LIMIT 10 -- {serverError NOT_AN_AGGREGATE}