ClickHouse/tests/queries/0_stateless/01295_aggregation_bug_11413.sql
Nikolai Kochetov f68af0b666 Added test.
2020-06-03 22:43:05 +03:00

2 lines
118 B
SQL

SELECT 1 FROM remote('127.0.0.{1,2}', numbers(99)) GROUP BY materialize(1) HAVING count() > 0 AND argMax(1, tuple(0))