mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
19 lines
366 B
C++
19 lines
366 B
C++
#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<IndexToOne, NameHas>;
|
|
|
|
void registerFunctionHas(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionHas>();
|
|
}
|
|
|
|
}
|