diff --git a/src/Functions/FunctionsConversion.h b/src/Functions/FunctionsConversion.h index 58b25d16a74..d65d0604547 100644 --- a/src/Functions/FunctionsConversion.h +++ b/src/Functions/FunctionsConversion.h @@ -1772,8 +1772,11 @@ private: } } - if (std::is_same_v && from_type->getCustomSerialization()) - return ConvertImplGenericToString::execute(arguments, result_type, input_rows_count); + if constexpr (std::is_same_v) + { + if (from_type->getCustomSerialization()) + return ConvertImplGenericToString::execute(arguments, result_type, input_rows_count); + } bool done; if constexpr (to_string_or_fixed_string)