mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Add regression test for #5192 fix
This commit is contained in:
parent
aef0e2c0a3
commit
67b8f0c789
@ -0,0 +1,5 @@
|
||||
2015-12-01 0 0
|
||||
2015-12-02 1 1
|
||||
2015-12-03 0 2
|
||||
2015-12-04 0 3
|
||||
2015-12-05 0 4
|
20
dbms/tests/queries/0_stateless/00974_full_outer_join.sql
Normal file
20
dbms/tests/queries/0_stateless/00974_full_outer_join.sql
Normal file
@ -0,0 +1,20 @@
|
||||
SELECT
|
||||
q0.dt,
|
||||
q0.cnt,
|
||||
q0.cnt2
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
toDate(addDays(toDate('2015-12-01'), number)) AS dt,
|
||||
sum(number) AS cnt
|
||||
FROM numbers(2)
|
||||
GROUP BY dt
|
||||
) AS q0
|
||||
ALL FULL OUTER JOIN
|
||||
(
|
||||
SELECT
|
||||
toDate(addDays(toDate('2015-12-01'), number)) AS dt,
|
||||
sum(number) AS cnt2
|
||||
FROM numbers(5)
|
||||
GROUP BY dt
|
||||
) AS q1 ON q0.dt = q1.dt
|
Loading…
Reference in New Issue
Block a user