aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/array/hasSubstr.cpp
blob: 4553026f2fad94b9e1ac129a1bfa725dd562daeb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "hasAllAny.h"
#include <Functions/FunctionFactory.h>
#include <Functions/GatherUtils/GatherUtils.h>


namespace DB
{

class FunctionArrayHasSubstr : public FunctionArrayHasAllAny
{
public:
    static constexpr auto name = "hasSubstr";
    static FunctionPtr create(ContextPtr) { return std::make_shared<FunctionArrayHasSubstr>(); }
    FunctionArrayHasSubstr() : FunctionArrayHasAllAny(GatherUtils::ArraySearchType::Substr, name) {}
};

REGISTER_FUNCTION(HasSubstr)
{
    factory.registerFunction<FunctionArrayHasSubstr>();
}

}