ClickHouse/dbms/Functions/array/hasAll.cpp
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

22 lines
533 B
C++

#include "hasAllAny.h"
#include <Functions/FunctionFactory.h>
namespace DB
{
class FunctionArrayHasAll : public FunctionArrayHasAllAny
{
public:
static constexpr auto name = "hasAll";
static FunctionPtr create(const Context & context) { return std::make_shared<FunctionArrayHasAll>(context); }
explicit FunctionArrayHasAll(const Context & context_) : FunctionArrayHasAllAny(context_, true, name) {}
};
void registerFunctionHasAll(FunctionFactory & factory)
{
factory.registerFunction<FunctionArrayHasAll>();
}
}