mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 16:50:48 +00:00
rename test files and fix tests - add ; at the end
This commit is contained in:
parent
0fd9288374
commit
8fd00ff77b
@ -67,7 +67,7 @@ public:
|
||||
ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH);
|
||||
|
||||
/// For DateTime, if time zone is specified, attach it to type.
|
||||
/// Else if the time zone is specified but empty, throw an exception.
|
||||
/// If the time zone is specified but empty, throw an exception.
|
||||
if constexpr (std::is_same_v<ToDataType, DataTypeDateTime>)
|
||||
{
|
||||
std::string time_zone = extractTimeZoneNameFromFunctionArguments(arguments, 1, 0);
|
||||
|
@ -1,20 +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 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 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 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 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 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 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
|
||||
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