From c404c0f2f3b6e986c51258c2f47056701da298d8 Mon Sep 17 00:00:00 2001 From: Yarik Briukhovetskyi <114298166+yariks5s@users.noreply.github.com> Date: Fri, 27 Sep 2024 13:43:13 +0200 Subject: [PATCH] Update toStartOfInterval.cpp --- src/Functions/toStartOfInterval.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Functions/toStartOfInterval.cpp b/src/Functions/toStartOfInterval.cpp index 1b48bde73d8..87b0c210b12 100644 --- a/src/Functions/toStartOfInterval.cpp +++ b/src/Functions/toStartOfInterval.cpp @@ -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);