2019-08-04 14:15:47 +00:00
|
|
|
#include <Functions/FunctionFactory.h>
|
|
|
|
#include <Functions/FunctionsVisitParam.h>
|
|
|
|
#include <Functions/FunctionsStringSearch.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2022-08-27 22:14:38 +00:00
|
|
|
struct NameSimpleJSONExtractInt { static constexpr auto name = "simpleJSONExtractInt"; };
|
2021-09-21 16:43:46 +00:00
|
|
|
using FunctionSimpleJSONExtractInt = FunctionsStringSearch<ExtractParamImpl<NameSimpleJSONExtractInt, ExtractNumericType<Int64>>>;
|
2019-08-04 14:15:47 +00:00
|
|
|
|
2022-07-04 07:01:39 +00:00
|
|
|
REGISTER_FUNCTION(VisitParamExtractInt)
|
2019-08-04 14:15:47 +00:00
|
|
|
{
|
2021-03-30 16:25:56 +00:00
|
|
|
factory.registerFunction<FunctionSimpleJSONExtractInt>();
|
2022-08-27 22:14:38 +00:00
|
|
|
factory.registerAlias("visitParamExtractInt", "simpleJSONExtractInt");
|
2019-08-04 14:15:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|