[ 
https://issues.apache.org/jira/browse/SPARK-33677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lu Lu updated SPARK-33677:
--------------------------
    Summary: LikeSimplification should be skipped if pattern contains any 
escapeChar  (was: LikeSimplification should be skipped if escape is a wildcard 
character)

> LikeSimplification should be skipped if pattern contains any escapeChar
> -----------------------------------------------------------------------
>
>                 Key: SPARK-33677
>                 URL: https://issues.apache.org/jira/browse/SPARK-33677
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.1.0
>            Reporter: Lu Lu
>            Assignee: Lu Lu
>            Priority: Major
>
> LikeSimplification rule does not work correctly for many cases that have 
> patterns containing escape characters:
> {code:sql}
> SELECT s LIKE 'm%aca' ESCAPE '%' from t;
> SELECT s LIKE 'maacaa' ESCAPE 'a' FROM t;
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to