spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dongjoon Hyun (Jira)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-27679) Improve queries with LIKE expression
Date Mon, 16 Mar 2020 22:52:06 GMT

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

Dongjoon Hyun updated SPARK-27679:
----------------------------------
    Affects Version/s:     (was: 3.0.0)
                       3.1.0

> Improve queries with LIKE expression
> ------------------------------------
>
>                 Key: SPARK-27679
>                 URL: https://issues.apache.org/jira/browse/SPARK-27679
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.1.0
>            Reporter: Achuth Narayan Rajagopal
>            Priority: Major
>
> The following improvements are possible when simplifying {{LIKE}} expressions by adding
support for underscore case optimization similar to '%' :
>  
> {code:java}
> 1. Filter name#10 LIKE _abc → Filter (length(name#10) = 4 && EndsWith(name#10,
abc))
> 2. Filter name#10 LIKE abc_ → Filter (length(name#10) = 4 && StartsWith(name#10,
abc))
> 3. Filter name#10 LIKE abc_def -> Filter ((length(name#10) = 7) && (StartsWith(name#10,
abc) && EndsWith(name#10, def)))
> {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


Mime
View raw message