S
два поля начало и конец операции
Как можно вывести данные количество операций в каждую секунду
17:00:00 = 20
17:00:01 = 23
17:00:02 = 2
Size: a a a
S
ИМ
pk
DC
select sum(toUInt64(1)) cnt, arrayJoin(timeSlots(b, toUInt32(e-b), 1)) t
from (select toDateTime('2001-01-01 00:00:00') b, toDateTime('2001-01-01 00:00:10') e union all
select toDateTime('2001-01-01 00:00:05') b, toDateTime('2001-01-01 00:00:10') union all
select toDateTime('2001-01-01 00:00:12') b, toDateTime('2001-01-01 00:00:15'))
group by t
order by t with fill
┌─cnt─┬───────────────────t─┐
│ 1 │ 2001-01-01 00:00:00 │
│ 1 │ 2001-01-01 00:00:01 │
│ 1 │ 2001-01-01 00:00:02 │
│ 1 │ 2001-01-01 00:00:03 │
│ 1 │ 2001-01-01 00:00:04 │
│ 2 │ 2001-01-01 00:00:05 │
│ 2 │ 2001-01-01 00:00:06 │
│ 2 │ 2001-01-01 00:00:07 │
│ 2 │ 2001-01-01 00:00:08 │
│ 2 │ 2001-01-01 00:00:09 │
│ 2 │ 2001-01-01 00:00:10 │
│ 0 │ 2001-01-01 00:00:11 │
│ 1 │ 2001-01-01 00:00:12 │
│ 1 │ 2001-01-01 00:00:13 │
│ 1 │ 2001-01-01 00:00:14 │
│ 1 │ 2001-01-01 00:00:15 │
└─────┴─────────────────────┘
NM
FORMAT JSON
?D
NM
DC
FORMAT JSON
?NM
Code: 115, e.displayText() = DB::Exception: Unknown setting format (version 20.4.4.18 (official build))
http://localhost:8123/?format=JSON&query=SHOW TABLES
VI
system.mutations
в статусе is_done 0, данных не то что бы много, но где-то гб 50-70DC
Code: 115, e.displayText() = DB::Exception: Unknown setting format (version 20.4.4.18 (official build))
http://localhost:8123/?format=JSON&query=SHOW TABLES
DC
system.mutations
в статусе is_done 0, данных не то что бы много, но где-то гб 50-70system.mutations
есть поле с ошибкой, что там? Какой версии КХ?AK
f
f
f
И
f
f
И