ClickHouse/tests/queries/0_stateless/01915_for_each_crakjie.sql

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

12 lines
205 B
MySQL
Raw Normal View History

2021-06-15 04:22:57 +00:00
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;