2019-08-04 14:15:47 +00:00
|
|
|
#include <Functions/FunctionFactory.h>
|
|
|
|
#include <Functions/FunctionsVisitParam.h>
|
|
|
|
#include <Functions/FunctionsStringSearch.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
struct NameVisitParamExtractFloat { static constexpr auto name = "visitParamExtractFloat"; };
|
2021-09-21 16:43:46 +00:00
|
|
|
using FunctionVisitParamExtractFloat = FunctionsStringSearch<ExtractParamImpl<NameVisitParamExtractFloat, ExtractNumericType<Float64>>>;
|
2019-08-04 14:15:47 +00:00
|
|
|
|
2021-04-01 20:07:01 +00:00
|
|
|
struct NameSimpleJSONExtractFloat { static constexpr auto name = "simpleJSONExtractFloat"; };
|
2021-09-21 16:43:46 +00:00
|
|
|
using FunctionSimpleJSONExtractFloat = FunctionsStringSearch<ExtractParamImpl<NameSimpleJSONExtractFloat, ExtractNumericType<Float64>>>;
|
2019-08-04 14:15:47 +00:00
|
|
|
|
|
|
|
void registerFunctionVisitParamExtractFloat(FunctionFactory & factory)
|
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionVisitParamExtractFloat>();
|
2021-03-30 16:25:56 +00:00
|
|
|
factory.registerFunction<FunctionSimpleJSONExtractFloat>();
|
2019-08-04 14:15:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|