From 1bdfe4e3d58bf0a4d8557abe237fe5ece333eada Mon Sep 17 00:00:00 2001 From: flynn Date: Sun, 27 Aug 2023 04:20:17 +0000 Subject: [PATCH] fix --- src/Core/Field.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/Core/Field.h b/src/Core/Field.h index e4789d6edf9..4edd4da3571 100644 --- a/src/Core/Field.h +++ b/src/Core/Field.h @@ -15,8 +15,6 @@ #include #include #include -#include -#include namespace DB { @@ -139,7 +137,7 @@ template bool decimalEqual(T x, T y, UInt32 x_scale, UInt32 y_scale template bool decimalLess(T x, T y, UInt32 x_scale, UInt32 y_scale); template bool decimalLessOrEqual(T x, T y, UInt32 x_scale, UInt32 y_scale); -template +template class DecimalField { public: @@ -449,7 +447,7 @@ public: Types::Which getType() const { return which; } - constexpr std::string_view getTypeName() const { return magic_enum::enum_name(which); } + std::string_view getTypeName() const; bool isNull() const { return which == Types::Null; } template @@ -839,7 +837,7 @@ template <> struct Field::EnumToType { using Type = Dec template <> struct Field::EnumToType { using Type = DecimalField; }; template <> struct Field::EnumToType { using Type = DecimalField; }; template <> struct Field::EnumToType { using Type = DecimalField; }; -template <> struct Field::EnumToType { using Type = DecimalField; }; +template <> struct Field::EnumToType { using Type = AggregateFunctionStateData; }; template <> struct Field::EnumToType { using Type = CustomType; }; template <> struct Field::EnumToType { using Type = UInt64; }; @@ -1007,8 +1005,7 @@ void writeFieldText(const Field & x, WriteBuffer & buf); String toString(const Field & x); -String fieldTypeToString(Field::Types::Which type); - +std::string_view fieldTypeToString(Field::Types::Which type); } template <>