mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
36 lines
667 B
SQL
36 lines
667 B
SQL
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;
|
|
|
|
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;
|
|
|
|
-- { echoOn }
|
|
set allow_experimental_analyzer = 1;
|
|
|
|
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;
|