mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Better condition
This commit is contained in:
parent
451407a829
commit
e531348e12
@ -233,7 +233,7 @@ void OptimizedRegularExpressionImpl<thread_safe>::analyze(
|
||||
}
|
||||
|
||||
/// If prefix is small, it won't be chosen
|
||||
if (max_length == 0)
|
||||
if (max_length < MIN_LENGTH_FOR_STRSTR)
|
||||
{
|
||||
for (Substrings::const_iterator it = trivial_substrings.begin(); it != trivial_substrings.end(); ++it)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user