Add regression test for #5192 fix

This commit is contained in:
Bakhtiyor Ruziev 2019-07-24 14:29:06 +03:00
parent aef0e2c0a3
commit 67b8f0c789
2 changed files with 25 additions and 0 deletions

View File

@ -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

View 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