diff --git a/dbms/src/Functions/FunctionsArray.cpp b/dbms/src/Functions/FunctionsArray.cpp index b4436ff0608..c45f188017f 100644 --- a/dbms/src/Functions/FunctionsArray.cpp +++ b/dbms/src/Functions/FunctionsArray.cpp @@ -3430,7 +3430,7 @@ void FunctionArrayIntersect::NumberExecutor::operator()() if (!result && typeid_cast *>(data_type.get())) result = execute, true>(arrays, ColumnVector::create()); -}; +} template ColumnPtr FunctionArrayIntersect::execute(const UnpackedArrays & arrays, MutableColumnPtr result_data_ptr) diff --git a/dbms/src/Functions/FunctionsArray.h b/dbms/src/Functions/FunctionsArray.h index c90f6a7c6bf..49896abb6c9 100644 --- a/dbms/src/Functions/FunctionsArray.h +++ b/dbms/src/Functions/FunctionsArray.h @@ -1452,7 +1452,7 @@ class FunctionArrayConcat : public IFunction public: static constexpr auto name = "arrayConcat"; static FunctionPtr create(const Context & context); - FunctionArrayConcat(const Context & context) : context(context) {}; + FunctionArrayConcat(const Context & context) : context(context) {} String getName() const override; @@ -1579,7 +1579,7 @@ class FunctionArrayIntersect : public IFunction public: static constexpr auto name = "arrayIntersect"; static FunctionPtr create(const Context & context); - FunctionArrayIntersect(const Context & context) : context(context) {}; + FunctionArrayIntersect(const Context & context) : context(context) {} String getName() const override; @@ -1681,7 +1681,7 @@ class FunctionArrayResize : public IFunction public: static constexpr auto name = "arrayResize"; static FunctionPtr create(const Context & context); - FunctionArrayResize(const Context & context) : context(context) {}; + FunctionArrayResize(const Context & context) : context(context) {} String getName() const override; diff --git a/dbms/src/Functions/FunctionsConsistentHashing.h b/dbms/src/Functions/FunctionsConsistentHashing.h index 75971d57693..7415689a454 100644 --- a/dbms/src/Functions/FunctionsConsistentHashing.h +++ b/dbms/src/Functions/FunctionsConsistentHashing.h @@ -92,7 +92,7 @@ public: static FunctionPtr create(const Context &) { return std::make_shared>(); - }; + } String getName() const override { diff --git a/dbms/src/Functions/FunctionsConversion.h b/dbms/src/Functions/FunctionsConversion.h index dbb705c9b65..6a46583fba2 100644 --- a/dbms/src/Functions/FunctionsConversion.h +++ b/dbms/src/Functions/FunctionsConversion.h @@ -907,7 +907,7 @@ class FunctionToFixedString : public IFunction { public: static constexpr auto name = "toFixedString"; - static FunctionPtr create(const Context &) { return std::make_shared(); }; + static FunctionPtr create(const Context &) { return std::make_shared(); } String getName() const override { @@ -1531,7 +1531,7 @@ private: throw Exception{"Enum conversion changes value for element '" + name_value.first + "' from " + toString(old_value) + " to " + toString(new_value), ErrorCodes::CANNOT_CONVERT_TYPE}; } - }; + } template WrapperType createStringToEnumWrapper() const diff --git a/dbms/src/Functions/FunctionsDateTime.h b/dbms/src/Functions/FunctionsDateTime.h index 708c8e8c609..247d10b3d58 100644 --- a/dbms/src/Functions/FunctionsDateTime.h +++ b/dbms/src/Functions/FunctionsDateTime.h @@ -623,7 +623,7 @@ class FunctionDateOrDateTimeToSomething : public IFunction { public: static constexpr auto name = Transform::name; - static FunctionPtr create(const Context &) { return std::make_shared(); }; + static FunctionPtr create(const Context &) { return std::make_shared(); } String getName() const override { @@ -928,7 +928,7 @@ class FunctionDateOrDateTimeAddInterval : public IFunction { public: static constexpr auto name = Transform::name; - static FunctionPtr create(const Context &) { return std::make_shared(); }; + static FunctionPtr create(const Context &) { return std::make_shared(); } String getName() const override { @@ -1015,7 +1015,7 @@ class FunctionDateDiff : public IFunction { public: static constexpr auto name = "dateDiff"; - static FunctionPtr create(const Context &) { return std::make_shared(); }; + static FunctionPtr create(const Context &) { return std::make_shared(); } String getName() const override { @@ -1192,7 +1192,7 @@ class FunctionNow : public IFunction { public: static constexpr auto name = "now"; - static FunctionPtr create(const Context &) { return std::make_shared(); }; + static FunctionPtr create(const Context &) { return std::make_shared(); } String getName() const override { @@ -1221,7 +1221,7 @@ class FunctionToday : public IFunction { public: static constexpr auto name = "today"; - static FunctionPtr create(const Context &) { return std::make_shared(); }; + static FunctionPtr create(const Context &) { return std::make_shared(); } String getName() const override { @@ -1250,7 +1250,7 @@ class FunctionYesterday : public IFunction { public: static constexpr auto name = "yesterday"; - static FunctionPtr create(const Context &) { return std::make_shared(); }; + static FunctionPtr create(const Context &) { return std::make_shared(); } String getName() const override { @@ -1280,7 +1280,7 @@ class FunctionToTimeZone : public IFunction { public: static constexpr auto name = "toTimeZone"; - static FunctionPtr create(const Context &) { return std::make_shared(); }; + static FunctionPtr create(const Context &) { return std::make_shared(); } String getName() const override { @@ -1315,7 +1315,7 @@ class FunctionTimeSlot : public IFunction { public: static constexpr auto name = "timeSlot"; - static FunctionPtr create(const Context &) { return std::make_shared(); }; + static FunctionPtr create(const Context &) { return std::make_shared(); } String getName() const override { @@ -1442,7 +1442,7 @@ class FunctionTimeSlots : public IFunction { public: static constexpr auto name = "timeSlots"; - static FunctionPtr create(const Context &) { return std::make_shared(); }; + static FunctionPtr create(const Context &) { return std::make_shared(); } String getName() const override {