Update toStartOfInterval.cpp

This commit is contained in:
Yarik Briukhovetskyi 2024-09-27 13:43:13 +02:00 committed by GitHub
parent 43177adf2b
commit c404c0f2f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);