add tests for - toStartOfInterval* functions

This commit is contained in:
bharatnc 2020-09-04 13:22:20 -07:00
parent cf110f4eb0
commit 0fd9288374
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,7 @@
2017-12-31 00:00:00
2017-12-01
2017-10-01
2017-12-31 05:10:00
2017-12-31 01:15:00
2017-12-31 01:00:00
2017-12-31 00:01:00

View File

@ -0,0 +1,20 @@
SELECT toStartOfDay(toDateTime('2017-12-31 00:00:00', 'UTC'), '') -- {serverError 43}
SELECT toStartOfDay(toDateTime('2017-12-31 03:45:00', 'UTC'), 'UTC') -- success
SELECT toStartOfMonth(toDateTime('2017-12-31 00:00:00', 'UTC'), '') -- {serverError 43}
SELECT toStartOfMonth(toDateTime('2017-12-31 00:00:00', 'UTC'), 'UTC') -- success
SELECT toStartOfQuarter(toDateTime('2017-12-31 00:00:00', 'UTC'), '') -- {serverError 43}
SELECT toStartOfQuarter(toDateTime('2017-12-31 00:00:00', 'UTC'), 'UTC') -- success
SELECT toStartOfTenMinutes(toDateTime('2017-12-31 00:00:00', 'UTC'), '') -- {serverError 43}
SELECT toStartOfTenMinutes(toDateTime('2017-12-31 05:12:30', 'UTC'), 'UTC') -- success
SELECT toStartOfFifteenMinutes(toDateTime('2017-12-31 00:00:00', 'UTC'), '') -- {serverError 43}
SELECT toStartOfFifteenMinutes(toDateTime('2017-12-31 01:17:00', 'UTC'), 'UTC') -- success
SELECT toStartOfHour(toDateTime('2017-12-31 00:00:00', 'UTC'), '') -- {serverError 43}
SELECT toStartOfHour(toDateTime('2017-12-31 01:59:00', 'UTC'), 'UTC') -- success
SELECT toStartOfMinute(toDateTime('2017-12-31 00:00:00', 'UTC'), '') -- {serverError 43}
SELECT toStartOfMinute(toDateTime('2017-12-31 00:01:30', 'UTC'), 'UTC') -- success