Description
In Teradata/Hive and PostgreSQL '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:
--like any select 'foo' LIKE ANY ('%foo%','%bar%'); --like all select 'foo' LIKE ALL ('%foo%','%bar%');
PostgreSQL:
-- like any select 'foo' LIKE ANY (array['%foo%','%bar%']); -- like all select 'foo' LIKE ALL (array['%foo%','%bar%']);
Attachments
Issue Links
- relates to
-
HIVE-15229 'like any' and 'like all' operators in hive
- Closed
-
SPARK-33045 Implement built-in LIKE ANY and LIKE ALL UDF
- Resolved
- links to