mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 11:02:08 +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.
27 lines
553 B
C++
27 lines
553 B
C++
#include "FunctionsMultiStringSearch.h"
|
|
#include "FunctionFactory.h"
|
|
#include "MultiSearchFirstIndexImpl.h"
|
|
#include "PositionImpl.h"
|
|
|
|
|
|
namespace DB
|
|
{
|
|
namespace
|
|
{
|
|
|
|
struct NameMultiSearchFirstIndex
|
|
{
|
|
static constexpr auto name = "multiSearchFirstIndex";
|
|
};
|
|
|
|
using FunctionMultiSearchFirstIndex = FunctionsMultiStringSearch<MultiSearchFirstIndexImpl<NameMultiSearchFirstIndex, PositionCaseSensitiveASCII>>;
|
|
|
|
}
|
|
|
|
void registerFunctionMultiSearchFirstIndex(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionMultiSearchFirstIndex>();
|
|
}
|
|
|
|
}
|