From c984526288a007f1efc54205339b1d653e7a3744 Mon Sep 17 00:00:00 2001 From: Dmitrii Kovalkov Date: Wed, 29 Mar 2023 09:45:32 +0300 Subject: [PATCH] Move functions registration to .cpp --- src/Functions/FunctionsJSON.cpp | 28 ++++++++++++++++++++++++++++ src/Functions/FunctionsJSON.h | 23 ++--------------------- 2 files changed, 30 insertions(+), 21 deletions(-) create mode 100644 src/Functions/FunctionsJSON.cpp diff --git a/src/Functions/FunctionsJSON.cpp b/src/Functions/FunctionsJSON.cpp new file mode 100644 index 00000000000..fbd987577e9 --- /dev/null +++ b/src/Functions/FunctionsJSON.cpp @@ -0,0 +1,28 @@ +#include +#include + + +namespace DB +{ + +REGISTER_FUNCTION(JSON) +{ + factory.registerFunction>(); + factory.registerFunction>(); + factory.registerFunction>(); + factory.registerFunction>(); + factory.registerFunction>(); + factory.registerFunction>(); + factory.registerFunction>(); + factory.registerFunction>(); + factory.registerFunction>(); + factory.registerFunction>(); + factory.registerFunction>(); + factory.registerFunction>(); + factory.registerFunction>(); + factory.registerFunction>(); + factory.registerFunction>(); + factory.registerFunction>(); +} + +} diff --git a/src/Functions/FunctionsJSON.h b/src/Functions/FunctionsJSON.h index 8bcb1f4d849..20f3e9f185d 100644 --- a/src/Functions/FunctionsJSON.h +++ b/src/Functions/FunctionsJSON.h @@ -1,3 +1,5 @@ +#pragma once + #include #include @@ -34,7 +36,6 @@ #include #include -#include #include #include #include @@ -1619,24 +1620,4 @@ public: } }; -REGISTER_FUNCTION(JSON) -{ - factory.registerFunction>(); - factory.registerFunction>(); - factory.registerFunction>(); - factory.registerFunction>(); - factory.registerFunction>(); - factory.registerFunction>(); - factory.registerFunction>(); - factory.registerFunction>(); - factory.registerFunction>(); - factory.registerFunction>(); - factory.registerFunction>(); - factory.registerFunction>(); - factory.registerFunction>(); - factory.registerFunction>(); - factory.registerFunction>(); - factory.registerFunction>(); -} - }