mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
28 lines
402 B
Plaintext
28 lines
402 B
Plaintext
|
3 0 1 ['foo','bar'] [1,2]
|
||
|
1 1 0 [] []
|
||
|
SELECT
|
||
|
`arr.size0`,
|
||
|
`n.null`,
|
||
|
NOT `n.null`,
|
||
|
`m.keys`,
|
||
|
`m.values`
|
||
|
FROM t_func_to_subcolumns
|
||
|
1 0 0
|
||
|
2 1 0
|
||
|
3 0 0
|
||
|
SELECT
|
||
|
id,
|
||
|
`n.null`,
|
||
|
isNull(right.n)
|
||
|
FROM t_func_to_subcolumns AS left
|
||
|
ALL FULL OUTER JOIN
|
||
|
(
|
||
|
SELECT
|
||
|
1 AS id,
|
||
|
\'qqq\' AS n
|
||
|
UNION ALL
|
||
|
SELECT
|
||
|
3 AS id,
|
||
|
\'www\'
|
||
|
) AS right USING (id)
|