1 | #include "arrayIndex.h" |
---|---|
2 | #include <Functions/FunctionFactory.h> |
3 | |
4 | |
5 | namespace DB |
6 | { |
7 | |
8 | struct NameHas { static constexpr auto name = "has"; }; |
9 | |
10 | /// has(arr, x) - whether there is an element x in the array. |
11 | using FunctionHas = FunctionArrayIndex<IndexToOne, NameHas>; |
12 | |
13 | void registerFunctionHas(FunctionFactory & factory) |
14 | { |
15 | factory.registerFunction<FunctionHas>(); |
16 | } |
17 | |
18 | } |
19 |