mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 12:14:18 +00:00
Update toStartOfInterval.cpp
This commit is contained in:
parent
43177adf2b
commit
c404c0f2f3
@ -227,7 +227,7 @@ public:
|
||||
|
||||
const DateLUTImpl * time_zone_tmp;
|
||||
|
||||
if (isDateTimeOrDateTime64(time_column.type))
|
||||
if (isDateTimeOrDateTime64(time_column.type) || isDateTimeOrDateTime64(result_type))
|
||||
{
|
||||
const size_t time_zone_arg_num = (overload == Overload::Default) ? 2 : 3;
|
||||
time_zone_tmp = &extractTimeZoneFromFunctionArguments(arguments, time_zone_arg_num, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user