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