ClickHouse/dbms/src/Functions/fragment.cpp

17 lines
423 B
C++
Raw Normal View History

#include <Functions/FunctionFactory.h>
#include <Functions/FunctionStringToString.h>
#include <Functions/fragment.h>
namespace DB
{
struct NameFragment { static constexpr auto name = "fragment"; };
using FunctionFragment = FunctionStringToString<ExtractSubstringImpl<ExtractFragment<true>>, NameFragment>;
void registerFunctionFragment(FunctionFactory & factory)
{
factory.registerFunction<FunctionFragment>();
}
}