From dbfda047014ab1b3e4cd81e46c5ce623387d61fe Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 13 Mar 2024 05:18:51 +0100 Subject: [PATCH] Continue --- src/Functions/FunctionsConversion.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Functions/FunctionsConversion.cpp b/src/Functions/FunctionsConversion.cpp index 846b6c31062..33ef12b9d23 100644 --- a/src/Functions/FunctionsConversion.cpp +++ b/src/Functions/FunctionsConversion.cpp @@ -366,6 +366,12 @@ struct ConvertImpl return DateTimeTransformImpl, false>::execute( arguments, result_type, input_rows_count); } + else if constexpr (std::is_same_v && std::is_same_v + && std::is_same_v) + { + return DateTimeTransformImpl, false>::execute( + arguments, result_type, input_rows_count, TransformDateTime64(assert_cast(*named_from.type).getScale())); + } /** Special case of converting Int8, Int16, (U)Int32 or (U)Int64 (and also, for convenience, * Float32, Float64) to Date. If the * number is less than 65536, then it is treated as DayNum, and if it's greater or equals to 65536, @@ -682,11 +688,6 @@ struct ConvertImpl }; -template -struct ConvertImpl - : DateTimeTransformImpl, false> {}; - - template struct ToDateTimeTransform64 {