AS delta, rb, mu
FROM (
SELECT event_time, formatReadableSize(read_bytes) AS rb, formatReadableSize(memory_usage) AS mu
FROM clusterAllReplicas('sosisa', 'system', 'query_log')
WHERE
event_date = today()
AND event_time >= now() - INTERVAL 1 HOUR
AND ProfileEvents.Values[indexOf(ProfileEvents.Names, 'SelectQuery')] = '1'
AND user = 'kotique'
ORDER BY event_time ASC
LIMIT 25
)
не всегда считает runningDifference (местами он просто 0 как будто разные блоки)?
optimize_read_in_order=0?
Обсуждают сегодня