mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 09:22:05 +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
572 B
C++
23 lines
572 B
C++
#include "hasAllAny.h"
|
|
#include <Functions/FunctionFactory.h>
|
|
#include <Functions/GatherUtils/GatherUtils.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class FunctionArrayHasSubstr : public FunctionArrayHasAllAny
|
|
{
|
|
public:
|
|
static constexpr auto name = "hasSubstr";
|
|
static FunctionPtr create(const Context &) { return std::make_shared<FunctionArrayHasSubstr>(); }
|
|
FunctionArrayHasSubstr() : FunctionArrayHasAllAny(GatherUtils::ArraySearchType::Substr, name) {}
|
|
};
|
|
|
|
void registerFunctionHasSubstr(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionArrayHasSubstr>();
|
|
}
|
|
|
|
}
|