blob: f08a4f29d2dfd54fa178002c13d0f713a0afc9a9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "arrayIndex.h"
#include <Functions/FunctionFactory.h>
namespace DB
{
struct NameHas { static constexpr auto name = "has"; };
/// has(arr, x) - whether there is an element x in the array.
using FunctionHas = FunctionArrayIndex<HasAction, NameHas>;
REGISTER_FUNCTION(Has) { factory.registerFunction<FunctionHas>(); }
}
|