ClickHouse/tests/queries/0_stateless/01915_for_each_crakjie.sql
2022-06-29 01:16:30 +02:00

12 lines
205 B
SQL

WITH arrayJoin(['a', 'b']) AS z
SELECT
z,
sumMergeForEach(x) AS x
FROM
(
SELECT sumStateForEach([1., 1.1, 1.1300175]) AS x
FROM remote('127.0.0.{1,2}', system.one)
)
GROUP BY z
ORDER BY z;