wangyum opened a new pull request, #37672:
URL: https://github.com/apache/spark/pull/37672

   ### What changes were proposed in this pull request?
   
   Do not simplify multiLike if child is not attribute.
   
   ### Why are the changes needed?
   
   Simplifying multiLike can not benefit the query because it cannot be pushed 
down. For example:
   ```sql
   select * from t1 where substr(name, 1, 5) like any('%a', 'b%', '%c%');
   ```
   ```
   == Physical Plan ==
   *(1) Filter ((EndsWith(substr(name#0, 1, 5), a) OR StartsWith(substr(name#0, 
1, 5), b)) OR Contains(substr(name#0, 1, 5), c))
   +- *(1) ColumnarToRow
      +- FileScan parquet default.t1[name#0] Batched: true, DataFilters: 
[((EndsWith(substr(name#0, 1, 5), a) OR StartsWith(substr(name#0, 1, 5), b)) OR 
Contains(substr(n..., Format: Parquet, PartitionFilters: [], PushedFilters: [], 
ReadSchema: struct<name:string>
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Unit test.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to