2022-07-12 00:14:41 +00:00
|
|
|
SELECT
|
|
|
|
CounterID AS k,
|
|
|
|
quantileBFloat16(0.5)(ResolutionWidth)
|
|
|
|
FROM remote('127.0.0.{1,2}', test, hits)
|
|
|
|
GROUP BY k
|
|
|
|
ORDER BY
|
|
|
|
count() DESC,
|
|
|
|
CounterID ASC
|
|
|
|
LIMIT 10
|
|
|
|
SETTINGS group_by_use_nulls = 1;
|
2023-02-03 18:02:50 +00:00
|
|
|
|
2023-02-13 18:38:07 +00:00
|
|
|
SELECT
|
|
|
|
CounterID AS k,
|
|
|
|
quantileBFloat16(0.5)(ResolutionWidth)
|
|
|
|
FROM test.hits
|
|
|
|
GROUP BY k
|
|
|
|
ORDER BY
|
|
|
|
count() DESC,
|
|
|
|
CounterID ASC
|
|
|
|
LIMIT 10
|
|
|
|
SETTINGS group_by_use_nulls = 1 FORMAT Null;
|
|
|
|
|
2023-02-03 18:02:50 +00:00
|
|
|
-- { echoOn }
|
2024-07-12 12:49:26 +00:00
|
|
|
set enable_analyzer = 1;
|
2023-02-03 18:02:50 +00:00
|
|
|
|
|
|
|
SELECT
|
|
|
|
CounterID AS k,
|
|
|
|
quantileBFloat16(0.5)(ResolutionWidth)
|
|
|
|
FROM remote('127.0.0.{1,2}', test, hits)
|
|
|
|
GROUP BY k
|
|
|
|
ORDER BY
|
|
|
|
count() DESC,
|
|
|
|
CounterID ASC
|
|
|
|
LIMIT 10
|
|
|
|
SETTINGS group_by_use_nulls = 1;
|