ClickHouse/tests/queries/0_stateless/01924_argmax_bitmap_state.sql
2021-06-23 22:25:30 +03:00

9 lines
191 B
SQL

SELECT bitmapMax(argMax(x, y))
FROM remote('127.0.0.{2,3}', view(
SELECT
groupBitmapState(toUInt32(number)) AS x,
number AS y
FROM numbers(10)
GROUP BY number
));