mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
commit
0619fd93e0
@ -2345,23 +2345,23 @@ WITH commit_days AS
|
|||||||
)
|
)
|
||||||
SELECT
|
SELECT
|
||||||
author,
|
author,
|
||||||
arrayMax(arrayMap(x -> length(x), arraySplit(x -> (x = 0), groupArray(consecutive_day)))) AS max_consecutive_days
|
arrayMax(arrayMap(x -> length(x), arraySplit(x -> (x = 0), groupArray(consecutive_day)))) - 1 AS max_consecutive_days
|
||||||
FROM commit_days
|
FROM commit_days
|
||||||
GROUP BY author
|
GROUP BY author
|
||||||
ORDER BY max_consecutive_days DESC
|
ORDER BY max_consecutive_days DESC
|
||||||
LIMIT 10
|
LIMIT 10
|
||||||
|
|
||||||
┌─author───────────┬─max_consecutive_days─┐
|
┌─author───────────┬─max_consecutive_days─┐
|
||||||
│ kssenii │ 33 │
|
│ kssenii │ 32 │
|
||||||
│ Alexey Milovidov │ 31 │
|
│ Alexey Milovidov │ 30 │
|
||||||
│ alesapin │ 27 │
|
│ alesapin │ 26 │
|
||||||
│ Azat Khuzhin │ 24 │
|
│ Azat Khuzhin │ 23 │
|
||||||
│ Nikolai Kochetov │ 16 │
|
│ Nikolai Kochetov │ 15 │
|
||||||
│ Igor Nikonov │ 12 │
|
│ feng lv │ 11 │
|
||||||
│ feng lv │ 12 │
|
│ alexey-milovidov │ 11 │
|
||||||
│ alexey-milovidov │ 12 │
|
│ Igor Nikonov │ 11 │
|
||||||
│ Maksim Kita │ 12 │
|
│ Maksim Kita │ 11 │
|
||||||
│ Nikita Vasilev │ 12 │
|
│ Nikita Vasilev │ 11 │
|
||||||
└──────────────────┴──────────────────────┘
|
└──────────────────┴──────────────────────┘
|
||||||
|
|
||||||
10 rows in set. Elapsed: 0.025 sec. Processed 62.78 thousand rows, 395.47 KB (2.54 million rows/s., 16.02 MB/s.)
|
10 rows in set. Elapsed: 0.025 sec. Processed 62.78 thousand rows, 395.47 KB (2.54 million rows/s., 16.02 MB/s.)
|
||||||
|
Loading…
Reference in New Issue
Block a user