You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Lu Lu (Jira)" <ji...@apache.org> on 2020/12/07 06:12:00 UTC

[jira] [Updated] (SPARK-33677) LikeSimplification should be skipped if pattern contains any escapeChar

     [ 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org