You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Takeshi Yamamuro (Jira)" <ji...@apache.org> on 2020/12/08 11:48:00 UTC
[jira] [Resolved] (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 ]
Takeshi Yamamuro resolved SPARK-33677.
--------------------------------------
Fix Version/s: 3.2.0
3.1.0
3.0.2
Resolution: Fixed
Resolved by https://github.com/apache/spark/pull/30625
> 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
> Fix For: 3.0.2, 3.1.0, 3.2.0
>
>
> 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