mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 21:24:28 +00:00
0510911559
* Add's hasSubstr array function * Add's example in the english doc of hasSubStr * Updates conditions to avoid prematurely calling isEqual * Remove feathericons Authored-by: Ryad ZENINE <ryad.zenine@contentsquare.com>
23 lines
551 B
C++
23 lines
551 B
C++
#include "hasAllAny.h"
|
|
#include <Functions/FunctionFactory.h>
|
|
#include <Functions/GatherUtils/GatherUtils.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class FunctionArrayHasAny : public FunctionArrayHasAllAny
|
|
{
|
|
public:
|
|
static constexpr auto name = "hasAny";
|
|
static FunctionPtr create(const Context &) { return std::make_shared<FunctionArrayHasAny>(); }
|
|
FunctionArrayHasAny() : FunctionArrayHasAllAny(GatherUtils::ArraySearchType::Any, name) {}
|
|
};
|
|
|
|
void registerFunctionHasAny(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionArrayHasAny>();
|
|
}
|
|
|
|
}
|