ClickHouse/tests/queries/0_stateless/02004_max_hyperscan_regex_length.sql

30 lines
1.2 KiB
MySQL
Raw Normal View History

2021-09-12 12:35:27 +00:00
-- Tags: no-debug, no-fasttest
-- Tag no-fasttest: Hyperscan
set max_hyperscan_regexp_length = 1;
set max_hyperscan_regexp_total_length = 1;
select multiMatchAny('123', ['1']);
select multiMatchAny('123', ['12']); -- { serverError 36 }
select multiMatchAny('123', ['1', '2']); -- { serverError 36 }
select multiMatchAnyIndex('123', ['1']);
select multiMatchAnyIndex('123', ['12']); -- { serverError 36 }
select multiMatchAnyIndex('123', ['1', '2']); -- { serverError 36 }
select multiMatchAllIndices('123', ['1']);
select multiMatchAllIndices('123', ['12']); -- { serverError 36 }
select multiMatchAllIndices('123', ['1', '2']); -- { serverError 36 }
select multiFuzzyMatchAny('123', 0, ['1']);
select multiFuzzyMatchAny('123', 0, ['12']); -- { serverError 36 }
select multiFuzzyMatchAny('123', 0, ['1', '2']); -- { serverError 36 }
select multiFuzzyMatchAnyIndex('123', 0, ['1']);
select multiFuzzyMatchAnyIndex('123', 0, ['12']); -- { serverError 36 }
select multiFuzzyMatchAnyIndex('123', 0, ['1', '2']); -- { serverError 36 }
select multiFuzzyMatchAllIndices('123', 0, ['1']);
select multiFuzzyMatchAllIndices('123', 0, ['12']); -- { serverError 36 }
select multiFuzzyMatchAllIndices('123', 0, ['1', '2']); -- { serverError 36 }