dbms: added test [#METR-16762].

This commit is contained in:
Alexey Milovidov 2015-06-09 23:56:40 +03:00
parent d1df9bd43b
commit b417ef015f
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,3 @@
1 0 999
2 0 999
3 0 999

View File

@ -0,0 +1,17 @@
SELECT
key1,
key2,
table_1
FROM
(
SELECT
arrayJoin([1, 2, 3]) AS key1,
0 AS key2,
999 AS table_1
) ALL INNER JOIN
(
SELECT
arrayJoin([1, 3, 2]) AS key1,
0 AS key2,
999 AS table_1
) USING key2, key1;