ClickHouse/tests/queries/0_stateless/00187_like_regexp_prefix.sql
Robert Schulze cf062f0c5b
Small optimization of LIKE patterns with > 1 trailing %
Previously, LIKE pattern '%%%ab' became '.*.*ab'. Now, it becomes 'ab'
which is a bit faster (perhaps).

+ minor code cleanup + a minor doc update
2023-02-25 18:50:32 +00:00

4 lines
97 B
SQL

SELECT materialize('prepre_f') LIKE '%pre_f%';
SELECT materialize('prepre_f') LIKE '%%%pre_f%';