mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 12:32:04 +00:00
3478db9fb6
- This is not needed for non-const regexp array arguments (the cardinality of arrays is fixed per column) but it cleans up the code and runs the check only in functions which have restrictions on the number of patterns. - For functions using hyperscans, it was checked that the number of regexes is < 2^32. Removed the check because I don't think anyone will every specify 4 billion patterns.
26 lines
532 B
C++
26 lines
532 B
C++
#include "FunctionsMultiStringFuzzySearch.h"
|
|
#include "FunctionFactory.h"
|
|
#include "MultiMatchAnyImpl.h"
|
|
|
|
|
|
namespace DB
|
|
{
|
|
namespace
|
|
{
|
|
|
|
struct NameMultiFuzzyMatchAnyIndex
|
|
{
|
|
static constexpr auto name = "multiFuzzyMatchAnyIndex";
|
|
};
|
|
|
|
using FunctionMultiFuzzyMatchAnyIndex = FunctionsMultiStringFuzzySearch<MultiMatchAnyImpl<NameMultiFuzzyMatchAnyIndex, UInt64, false, true, true>>;
|
|
|
|
}
|
|
|
|
void registerFunctionMultiFuzzyMatchAnyIndex(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionMultiFuzzyMatchAnyIndex>();
|
|
}
|
|
|
|
}
|