1000000000
hits_100m_single
table_name
hits_100m_single
numbers_threshold_value
5000000
10000000
SELECT number FROM numbers({numbers_threshold_value}) GROUP BY number FORMAT Null
SELECT number FROM numbers_mt({numbers_threshold_value}) GROUP BY number FORMAT Null
SELECT number FROM numbers_mt({numbers_threshold_value}) GROUP BY number FORMAT Null
WITH number % 524289 AS k, toUInt64(k) AS k1, k1 + 1 AS k2 SELECT k1, k2, count() FROM numbers({numbers_threshold_value}) GROUP BY k1, k2 FORMAT Null
SELECT number FROM numbers_mt({numbers_threshold_value}) GROUP BY number FORMAT Null SETTINGS group_by_two_level_threshold = 1e12, group_by_two_level_threshold_bytes = 1e12
SELECT WatchID FROM {table_name} GROUP BY WatchID FORMAT Null
SELECT ClientIP AS x, x - 1, x - 2, x - 3, count() AS c FROM {table_name} GROUP BY x, x - 1, x - 2, x - 3 ORDER BY c DESC LIMIT 10
SELECT WatchID, ClientIP, count() AS c, sum(Refresh), avg(ResolutionWidth) FROM {table_name} WHERE SearchPhrase != '' GROUP BY WatchID, ClientIP ORDER BY c DESC LIMIT 10
SELECT min(MobilePhoneModel) FROM {table_name} WHERE MobilePhoneModel != '' GROUP BY intHash32(UserID) % 1000000 FORMAT Null