wangyum opened a new pull request #27477: [SPARK-30724][SQL] Support 'LIKE ANY' 
and 'LIKE ALL' operators
URL: https://github.com/apache/spark/pull/27477
 
 
   ### What changes were proposed in this pull request?
   
   `LIKE ANY` and `LIKE ALL` operators are mostly used when we are matching a 
text field with numbers of patterns. For example:
   
   Teradata / Hive 3.0:
   ```sql
   --like any
   select 'foo' LIKE ANY ('%foo%','%bar%');
   
   --like all
   select 'foo' LIKE ALL ('%foo%','%bar%');
   ```
   PostgreSQL:
   ```sql
   -- like any
   select 'foo' LIKE ANY (array['%foo%','%bar%']);
   
   -- like all
   select 'foo' LIKE ALL (array['%foo%','%bar%']);
   ```
   
   This PR add support these two operators.
   
   ### Why are the changes needed?
   
   To smoothly migrate SQLs to Spark SQL.
   
   
   ### 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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to