Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.20.0, 1.19.1
Description
Flink does not formally support ESCAPE in built-in function LIKE, but in some cases we do need it because '_' and '%' are interpreted as special wildcard characters, preventing their use in their literal sense.
And currently, if we forcefully use ESCAPE characters, we will get unexpected results like the cases below.
> SELECT 'TE_ST' LIKE '%E\_S%'; FALSE > SELECT 'TE_ST' LIKE '%E\_S%' ESCAPE '\'; ERROR
Attachments
Issue Links
- links to