mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
2378491c04
This is required to support queries (like `foo IS NULL`) to external databases (i.e. MySQL). This patch had been submitted separately, due to: - avoid mixing patches - run CI (and update tests references)
48 lines
663 B
Plaintext
48 lines
663 B
Plaintext
0 0 1
|
|
0 1 0
|
|
SELECT
|
|
id IS NULL,
|
|
`n.null`,
|
|
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
|
|
`m.keys`,
|
|
`m.values`
|
|
FROM t_func_to_subcolumns
|
|
1
|
|
SELECT sum(NOT `n.null`)
|
|
FROM t_func_to_subcolumns
|
|
2
|
|
SELECT count(id)
|
|
FROM t_func_to_subcolumns
|
|
1 0 0
|
|
2 1 0
|
|
3 0 0
|
|
SELECT
|
|
id,
|
|
`n.null`,
|
|
right.n IS NULL
|
|
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)
|
|
0 10
|
|
0 20
|