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

Lu Lu updated SPARK-33677:
--------------------------
    Description: 
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}

  was:
Spark SQL should throw exceptions when pattern string is invalid:
{code:sql}
SELECT a LIKE 'm%aca' ESCAPE '%' from t;
{code}


> LikeSimplification should be skipped if escape is a wildcard character
> ----------------------------------------------------------------------
>
>                 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