ClickHouse/tests/queries/1_stateful/00037_uniq_state_merge1.sql

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

3 lines
235 B
MySQL
Raw Normal View History

2024-02-15 03:56:14 +00:00
SET max_bytes_before_external_group_by = '1G';
SELECT k, any(u) AS u, uniqMerge(us) AS us FROM (SELECT domain(URL) AS k, uniq(UserID) AS u, uniqState(UserID) AS us FROM test.hits GROUP BY k) GROUP BY k ORDER BY u DESC, k ASC LIMIT 100