mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
add tests for - toStartOfInterval* functions
This commit is contained in:
parent
cf110f4eb0
commit
0fd9288374
@ -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
|
@ -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
|
Loading…
Reference in New Issue
Block a user