mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Added a test from Bindu Madhavi
This commit is contained in:
parent
3015f38a29
commit
c152df4ed5
9
dbms/tests/queries/0_stateless/01067_join_null.reference
Normal file
9
dbms/tests/queries/0_stateless/01067_join_null.reference
Normal file
@ -0,0 +1,9 @@
|
||||
1
|
||||
\N
|
||||
\N
|
||||
\N
|
||||
\N
|
||||
---
|
||||
---
|
||||
\N
|
||||
\N
|
42
dbms/tests/queries/0_stateless/01067_join_null.sql
Normal file
42
dbms/tests/queries/0_stateless/01067_join_null.sql
Normal file
@ -0,0 +1,42 @@
|
||||
SELECT id
|
||||
FROM
|
||||
(
|
||||
SELECT 1 AS id
|
||||
UNION ALL
|
||||
SELECT NULL
|
||||
UNION ALL
|
||||
SELECT NULL
|
||||
)
|
||||
ALL FULL OUTER JOIN
|
||||
(
|
||||
SELECT 1 AS id
|
||||
UNION ALL
|
||||
SELECT NULL
|
||||
UNION ALL
|
||||
SELECT NULL
|
||||
) USING (id)
|
||||
ORDER BY id;
|
||||
|
||||
SELECT '---';
|
||||
|
||||
SELECT *
|
||||
FROM
|
||||
(
|
||||
SELECT NULL AS x
|
||||
)
|
||||
INNER JOIN
|
||||
(
|
||||
SELECT NULL AS x
|
||||
) USING (x);
|
||||
|
||||
SELECT '---';
|
||||
|
||||
SELECT *
|
||||
FROM
|
||||
(
|
||||
SELECT NULL AS x
|
||||
)
|
||||
FULL OUTER JOIN
|
||||
(
|
||||
SELECT NULL AS x
|
||||
) USING (x);
|
Loading…
Reference in New Issue
Block a user