ClickHouse/tests/queries/1_stateful/00067_union_all.sql

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

15 lines
294 B
MySQL
Raw Normal View History

SELECT * FROM
(
SELECT UserID AS id, 1 AS event
FROM remote('127.0.0.{1,2}', test, hits)
ORDER BY id DESC
LIMIT 10
UNION ALL
SELECT FUniqID AS id, 2 AS event
FROM remote('127.0.0.{1,2}', test, hits)
ORDER BY id DESC
LIMIT 10
)
2024-07-24 02:32:20 +00:00
ORDER BY id, event
SETTINGS max_rows_to_read = 40_000_000;