You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2022/11/14 07:51:00 UTC

[jira] [Assigned] (SPARK-41132) Convert LikeAny and NotLikeAny to InSet if no pattern contains wildcards

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

Apache Spark reassigned SPARK-41132:
------------------------------------

    Assignee:     (was: Apache Spark)

> Convert LikeAny and NotLikeAny to InSet if no pattern contains wildcards
> ------------------------------------------------------------------------
>
>                 Key: SPARK-41132
>                 URL: https://issues.apache.org/jira/browse/SPARK-41132
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.4.0
>            Reporter: Wan Kun
>            Priority: Major
>
> We can optimize query 
> {code:sql}
> SELECT * FROM tab WHERE trim(addr) LIKE ANY ('5000', '5001', '5002', '5003', '5004')
>  {code}
> to 
> {code:sql}
> SELECT * FROM tab WHERE trim(addr) IN ('5000', '5001', '5002', '5003', '5004')
>  {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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