mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 14:02:21 +00:00
41 lines
1.8 KiB
Plaintext
41 lines
1.8 KiB
Plaintext
SELECT materialize(\'Привет, World\') AS s
|
|
WHERE (s LIKE \'hell%\') OR (s ILIKE \'%привет%\') OR (s ILIKE \'world%\')
|
|
SETTINGS optimize_or_like_chain = 0
|
|
SELECT materialize(\'Привет, World\') AS s
|
|
WHERE multiMatchAny(s, [\'^hell\', \'(?i)привет\', \'(?i)^world\']) OR false
|
|
SETTINGS optimize_or_like_chain = 1
|
|
SELECT
|
|
materialize(\'Привет, World\') AS s1,
|
|
materialize(\'Привет, World\') AS s2
|
|
WHERE multiMatchAny(s1, [\'^hell\', \'(?i)^world\']) OR multiMatchAny(s2, [\'(?i)привет\'])
|
|
SETTINGS optimize_or_like_chain = 1
|
|
SELECT
|
|
materialize(\'Привет, World\') AS s1,
|
|
materialize(\'Привет, World\') AS s2
|
|
WHERE (s1 LIKE \'hell%\') OR (s2 ILIKE \'%привет%\') OR (s1 ILIKE \'world%\')
|
|
SETTINGS optimize_or_like_chain = 1
|
|
SELECT
|
|
materialize(\'Привет, World\') AS s1,
|
|
materialize(\'Привет, World\') AS s2
|
|
WHERE (s1 LIKE \'hell%\') OR (s2 ILIKE \'%привет%\') OR (s1 ILIKE \'world%\')
|
|
SETTINGS optimize_or_like_chain = 1
|
|
SELECT
|
|
materialize(\'Привет, World\') AS s1,
|
|
materialize(\'Привет, World\') AS s2
|
|
WHERE (s1 LIKE \'hell%\') OR (s2 ILIKE \'%привет%\') OR (s1 ILIKE \'world%\')
|
|
SETTINGS optimize_or_like_chain = 1
|
|
SELECT
|
|
materialize(\'Привет, World\') AS s1,
|
|
materialize(\'Привет, World\') AS s2
|
|
WHERE multiMatchAny(s1, [\'^hell\', \'(?i)^world\']) OR multiMatchAny(s2, [\'(?i)привет\']) OR (s1 = \'Привет\')
|
|
SETTINGS optimize_or_like_chain = 1
|
|
Привет, optimized World
|
|
Привет, World
|
|
Привет, optimized World
|
|
Привет, World
|
|
SELECT
|
|
(materialize(\'Привет, World\') AS s) LIKE \'hell%\' AS test,
|
|
s
|
|
WHERE multiMatchAny(s, [\'^hell\', \'(?i)привет\', \'(?i)^world\']) OR false
|
|
SETTINGS optimize_or_like_chain = 1
|