| 1 | #include "hasAllAny.h" |
|---|---|
| 2 | #include <Functions/FunctionFactory.h> |
| 3 | |
| 4 | |
| 5 | namespace DB |
| 6 | { |
| 7 | |
| 8 | class FunctionArrayHasAny : public FunctionArrayHasAllAny |
| 9 | { |
| 10 | public: |
| 11 | static constexpr auto name = "hasAny"; |
| 12 | static FunctionPtr create(const Context & context) { return std::make_shared<FunctionArrayHasAny>(context); } |
| 13 | FunctionArrayHasAny(const Context & context_) : FunctionArrayHasAllAny(context_, false, name) {} |
| 14 | }; |
| 15 | |
| 16 | void registerFunctionHasAny(FunctionFactory & factory) |
| 17 | { |
| 18 | factory.registerFunction<FunctionArrayHasAny>(); |
| 19 | } |
| 20 | |
| 21 | } |
| 22 |