mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
2c828338f4
This commit migrates ClickHouse to Vectorscan. The first 10 min of [0] explain the reasons for it. (*) Addresses (but does not resolve) #38046 (*) Config parameter names (e.g. "max_hyperscan_regexp_length") are preserved for compatibility. Likewise, error codes (e.g. "ErrorCodes::HYPERSCAN_CANNOT_SCAN_TEXT") and function/class names (e.g. "HyperscanDeleter") are preserved as vectorscan aims to be a drop-in replacement. [0] https://www.youtube.com/watch?v=KlZWmmflW6M
29 lines
1.2 KiB
SQL
29 lines
1.2 KiB
SQL
-- Tags: no-debug, no-fasttest, use-vectorscan
|
|
|
|
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 }
|