[
https://issues.apache.org/jira/browse/SPARK-52817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
zhixingheyi-tian updated SPARK-52817:
-------------------------------------
Description:
```
SELECT * FROM testData where value not like '%%HotFocus%%'
SELECT * FROM testData where value not like '%%%HotFocus%%%'
```
In these SQL queries, cannot convert Like expressions to contains function in
logical planning. So the performance is very poor.
was:
```
SELECT * FROM testData where value not like '%%HotFocus%%'
SELECT * FROM testData where value not like '%%%HotFocus%%%'
```
These SQL queries cannot convert to contains function in logical planning. So
the performance is very poor.
> Spark SQL LIKE expressions show poor performance when using multiple '%'
> ------------------------------------------------------------------------
>
> Key: SPARK-52817
> URL: https://issues.apache.org/jira/browse/SPARK-52817
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 3.5.3
> Reporter: zhixingheyi-tian
> Priority: Major
> Labels: pull-request-available
>
>
> ```
> SELECT * FROM testData where value not like '%%HotFocus%%'
> SELECT * FROM testData where value not like '%%%HotFocus%%%'
> ```
>
> In these SQL queries, cannot convert Like expressions to contains function
> in logical planning. So the performance is very poor.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]