fix test results

This commit is contained in:
chertus 2019-01-24 21:34:31 +03:00
parent ccd9bd0877
commit 8a11f753be
7 changed files with 32 additions and 32 deletions

View File

@ -1,10 +1,10 @@
0 0 0
1 1 0
1 0 0
2 2 1
3 3 0
3 0 0
4 4 2
5 5 0
5 0 0
6 6 3
7 7 0
7 0 0
8 8 4
9 9 0
9 0 0

View File

@ -1,9 +1,9 @@
SELECT * FROM
SELECT a.*, b.* FROM
(
SELECT number AS k FROM system.numbers LIMIT 10
)
) AS a
ANY LEFT JOIN
(
SELECT number * 2 AS k, number AS joined FROM system.numbers LIMIT 10
)
) AS b
USING k;

View File

@ -1,5 +1,5 @@
0 0
2 1
4 2
6 3
8 4
0 0 0
2 2 1
4 4 2
6 6 3
8 8 4

View File

@ -1,9 +1,9 @@
SELECT * FROM
SELECT a.*, b.* FROM
(
SELECT number AS k FROM system.numbers LIMIT 10
)
) AS a
ANY INNER JOIN
(
SELECT number * 2 AS k, number AS joined FROM system.numbers LIMIT 10
)
) AS b
USING k;

View File

@ -1,10 +1,10 @@
0 0
0 1
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
0 0 0
0 1 1
1 2 2
1 3 3
2 4 4
2 0 5
3 0 6
3 0 7
4 0 8
4 0 9

View File

@ -1,9 +1,9 @@
SELECT * FROM
SELECT a.*, b.* FROM
(
SELECT number AS k FROM system.numbers LIMIT 10
)
) AS a
ALL INNER JOIN
(
SELECT intDiv(number, 2) AS k, number AS joined FROM system.numbers LIMIT 10
)
) AS b
USING k;

View File

@ -1,9 +1,9 @@
SELECT * FROM
SELECT a.*, b.* FROM
(
SELECT reinterpretAsString(number + reinterpretAsUInt8('A')) AS k FROM system.numbers LIMIT 10
)
) AS a
ALL LEFT JOIN
(
SELECT reinterpretAsString(intDiv(number, 2) + reinterpretAsUInt8('A')) AS k, number AS joined FROM system.numbers LIMIT 10
)
) AS b
USING k;