[
https://issues.apache.org/jira/browse/FLINK-36100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dylan He updated FLINK-36100:
-----------------------------
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.
{code:SQL}
> SELECT 'TE_ST' LIKE '%E\_S%';
FALSE
> SELECT 'TE_ST' LIKE '%E\_S%' ESCAPE '\';
ERROR
{code}
was:
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.
{code:SQL}
> SELECT 'TE_ST' LIKE '%E\_S%';
FALSE
> SELECT 'TE_ST' LIKE '%E\_S%' ESCAPE '\'
ERROR
{code}
> Support ESCAPE in built-in function LIKE formally
> -------------------------------------------------
>
> Key: FLINK-36100
> URL: https://issues.apache.org/jira/browse/FLINK-36100
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / Planner
> Reporter: Dylan He
> Priority: Major
>
> 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.
> {code:SQL}
> > SELECT 'TE_ST' LIKE '%E\_S%';
> FALSE
> > SELECT 'TE_ST' LIKE '%E\_S%' ESCAPE '\';
> ERROR
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)