ClickHouse/tests/queries/0_stateless/01872_functions_to_subcolumns.reference

48 lines
663 B
Plaintext
Raw Normal View History

2021-05-21 23:22:22 +00:00
0 0 1
0 1 0
2021-05-21 18:48:19 +00:00
SELECT
2021-05-21 23:22:22 +00:00
isNull(id),
2021-05-21 18:48:19 +00:00
`n.null`,
2021-05-21 23:22:22 +00:00
NOT `n.null`
FROM t_func_to_subcolumns
3 0 1 0
0 1 0 \N
SELECT
`arr.size0`,
`arr.size0` = 0,
`arr.size0` != 0,
empty(n)
FROM t_func_to_subcolumns
['foo','bar'] [1,2]
[] []
SELECT
2021-05-21 18:48:19 +00:00
`m.keys`,
`m.values`
FROM t_func_to_subcolumns
2021-05-21 23:22:22 +00:00
1
SELECT sum(NOT `n.null`)
FROM t_func_to_subcolumns
2
SELECT count(id)
FROM t_func_to_subcolumns
2021-05-21 18:48:19 +00:00
1 0 0
2 1 0
3 0 0
SELECT
id,
`n.null`,
isNull(right.n)
FROM t_func_to_subcolumns AS left
2021-05-22 00:29:01 +00:00
ALL FULL OUTER JOIN
2021-05-21 18:48:19 +00:00
(
SELECT
1 AS id,
\'qqq\' AS n
UNION ALL
SELECT
3 AS id,
\'www\'
) AS right USING (id)
2021-05-21 23:22:22 +00:00
0 10
0 20