You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SQL: Escaped wildcard (*) not accepted in LIKE (#63428)
For a query like `SELECT name FROM test WHERE name LIKE ''%c*'` ES SQL
generates an error. `*` is not a special character in a `LIKE` construct
and it's expected to not needing to be escaped, so the previous query
should work as is.
In the LIKE pattern any `*` character was treated as invalid character
and the usage of `%` or `_` was suggested instead. But `*` is a valid,
acceptable non-wildcard on the right side of the `LIKE` operator.
Fix: #55108
(cherry picked from commit 190d9fe)
Copy file name to clipboardExpand all lines: docs/reference/sql/functions/like-rlike.asciidoc
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -33,8 +33,9 @@ with the `LIKE` operator:
33
33
* The percent sign (%)
34
34
* The underscore (_)
35
35
36
-
The percent sign represents zero, one or multiple characters. The underscore represents a single number or character. These symbols can be
37
-
used in combinations.
36
+
The percent sign represents zero, one or multiple characters. The underscore represents a single number or character. These symbols can be used in combinations.
37
+
38
+
NOTE: No other characters have special meaning or act as wildcard. Characters often used as wildcards in other languages (`*` or `?`) are treated as normal characters.
0 commit comments