DC
SET max_block_size = 4:)
Size: a a a
DC
SET max_block_size = 4:)
AK
DC
❌
┌─table───┬─count()─┐
│ entry │ 1337 │
│ tracker │ 16114 │
└─────────┴─────────┘
table─┬────────elapsed─┬────────────progress─┬─partition_id─┬──rows_read─┐5k - оно и было 300, временно повысили
│ breq │ 2537.076723308 │ 0.48642302713432006 │ 20200830 │ 1565522842 │
└───────┴────────────────┴─────────────────────┴──────────────┴────────────┘
-
DC
┌─table───┬─count()─┐
│ entry │ 1337 │
│ tracker │ 16114 │
└─────────┴─────────┘
table─┬────────elapsed─┬────────────progress─┬─partition_id─┬──rows_read─┐5k - оно и было 300, временно повысили
│ breq │ 2537.076723308 │ 0.48642302713432006 │ 20200830 │ 1565522842 │
└───────┴────────────────┴─────────────────────┴──────────────┴────────────┘
-
┌─table───┬─count()─┐
│ entry │ 1337 │
│ tracker │ 16114 │
└─────────┴─────────┘
A
SELECT
number AS x,
neighbor(x, 1) AS y
FROM numbers(10)
ORDER BY x ASC
FORMAT TSV
0 1
1 2
2 3
3 0
4 5
5 6
6 7
7 0
8 9
9 0
SELECT
number AS x,
neighbor(x, 1, x + 1) AS y
FROM numbers(10)
ORDER BY x ASC
FORMAT TSV
0 1
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
DC
SELECT
number AS x,
neighbor(x, 1, x + 1) AS y
FROM numbers(10)
ORDER BY x ASC
FORMAT TSV
0 1
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
A
SELECT
number AS x,
neighbor(x, 1, x + 1) AS y
FROM numbers(10)
ORDER BY x ASC
┌─x─┬─y─┐
│ 0 │ 1 │
│ 1 │ 2 │
│ 2 │ 3 │
│ 3 │ 4 │
└───┴───┘
┌─x─┬─y─┐
│ 4 │ 5 │
│ 5 │ 6 │
│ 6 │ 7 │
│ 7 │ 8 │
└───┴───┘
┌─x─┬──y─┐
│ 8 │ 9 │
│ 9 │ 10 │
└───┴────┘
❌
┌─table───┬─count()─┐
│ entry │ 1337 │
│ tracker │ 16114 │
└─────────┴─────────┘
┌─table───┬─type────────┬─count()─┐
│ entry │ GET_PART │ 1143 │
│ tracker │ GET_PART │ 13961 │
│ entry │ MERGE_PARTS │ 220 │
│ tracker │ MERGE_PARTS │ 2445 │
└─────────┴─────────────┴─────────┘
❌
DC
set max_block_size=65536
create table A (A Int64) engine=MergeTree order by A;
insert into A select number from numbers(5);
insert into A select number from numbers(5,5);
select A, neighbor(A,-1) from (select A from A order by A)
┌─A─┬─neighbor(A, -1)─┐
│ 0 │ 0 │
│ 1 │ 0 │
│ 2 │ 1 │
│ 3 │ 2 │
│ 4 │ 3 │
└───┴─────────────────┘
┌─A─┬─neighbor(A, -1)─┐
│ 5 │ 0 │
│ 6 │ 5 │
│ 7 │ 6 │
│ 8 │ 7 │
│ 9 │ 8 │
└───┴─────────────────┘
DC
┌─table───┬─type────────┬─count()─┐
│ entry │ GET_PART │ 1143 │
│ tracker │ GET_PART │ 13961 │
│ entry │ MERGE_PARTS │ 220 │
│ tracker │ MERGE_PARTS │ 2445 │
└─────────┴─────────────┴─────────┘
❌
A
set max_block_size=65536
create table A (A Int64) engine=MergeTree order by A;
insert into A select number from numbers(5);
insert into A select number from numbers(5,5);
select A, neighbor(A,-1) from (select A from A order by A)
┌─A─┬─neighbor(A, -1)─┐
│ 0 │ 0 │
│ 1 │ 0 │
│ 2 │ 1 │
│ 3 │ 2 │
│ 4 │ 3 │
└───┴─────────────────┘
┌─A─┬─neighbor(A, -1)─┐
│ 5 │ 0 │
│ 6 │ 5 │
│ 7 │ 6 │
│ 8 │ 7 │
│ 9 │ 8 │
└───┴─────────────────┘
SELECT
A,
neighbor(A, -1, A - 1)
FROM
(
SELECT A
FROM A
ORDER BY A ASC
)
┌─A─┬─neighbor(A, -1, minus(A, 1))─┐
│ 0 │ -1 │
│ 1 │ 0 │
│ 2 │ 1 │
│ 3 │ 2 │
│ 4 │ 3 │
└───┴──────────────────────────────┘
┌─A─┬─neighbor(A, -1, minus(A, 1))─┐
│ 5 │ 4 │
│ 6 │ 5 │
│ 7 │ 6 │
│ 8 │ 7 │
│ 9 │ 8 │
└───┴──────────────────────────────┘
DC
❌
DC
SELECT
A,
neighbor(A, -1, A - 1)
FROM
(
SELECT A
FROM A
ORDER BY A ASC
)
┌─A─┬─neighbor(A, -1, minus(A, 1))─┐
│ 0 │ -1 │
│ 1 │ 0 │
│ 2 │ 1 │
│ 3 │ 2 │
│ 4 │ 3 │
└───┴──────────────────────────────┘
┌─A─┬─neighbor(A, -1, minus(A, 1))─┐
│ 5 │ 4 │
│ 6 │ 5 │
│ 7 │ 6 │
│ 8 │ 7 │
│ 9 │ 8 │
└───┴──────────────────────────────┘
DC
❌
SELECT postpone_reason
FROM replication_queue
WHERE postpone_reason != ''
Ok.
0 rows in set. Elapsed: 0.030 sec. Processed 18.14 thousand rows, 4.09 MB (613.95 thousand rows/s., 138.35 MB/s.)
DC
SELECT postpone_reason
FROM replication_queue
WHERE postpone_reason != ''
Ok.
0 rows in set. Elapsed: 0.030 sec. Processed 18.14 thousand rows, 4.09 MB (613.95 thousand rows/s., 138.35 MB/s.)
replication_queue
limit 100 ?