Fix test.

This commit is contained in:
Nikolai Kochetov 2020-11-12 19:04:35 +03:00
parent 1fec1de199
commit e031e805c4
2 changed files with 8 additions and 10 deletions

View File

@ -1,4 +1,4 @@
2020-11-12 20.12.1.1
2020-11-13 20.12.1.1
2020-11-12 20.12.1.1
2020-11-13 20.12.1.1
2020-11-12
2020-11-13
2020-11-12
2020-11-13

View File

@ -1,19 +1,17 @@
WITH arrayJoin(range(2)) AS delta
SELECT
toDate(time) + toIntervalDay(delta) AS dt,
version()
toDate(time) + toIntervalDay(delta) AS dt
FROM
(
SELECT NOW() AS time
SELECT toDateTime('2020.11.12 19:02:04') AS time
)
ORDER BY dt ASC;
WITH arrayJoin([0, 1]) AS delta
SELECT
toDate(time) + toIntervalDay(delta) AS dt,
version()
toDate(time) + toIntervalDay(delta) AS dt
FROM
(
SELECT NOW() AS time
SELECT toDateTime('2020.11.12 19:02:04') AS time
)
ORDER BY dt ASC;