ClickHouse/src/Functions/visitParamExtractFloat.cpp

22 lines
817 B
C++
Raw Normal View History

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