Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.18.0
Description
Remove all elements that equal to element from array.
Syntax:
array_remove(array, needle)
Arguments:
array: An ARRAY to be handled.
Returns:
An ARRAY. If array is NULL, the result is NULL.
Examples:
SELECT array_remove(array[1, 2, 3, null, 3], 3); -- [1,2,null]
See also
spark https://spark.apache.org/docs/latest/api/sql/index.html#array_remove
presto https://prestodb.io/docs/current/functions/array.html
postgresql https://www.postgresql.org/docs/12/functions-array.html#ARRAY-FUNCTIONS-TABLE
Attachments
Attachments
Issue Links
- is a child of
-
FLINK-22484 Built-in functions for collections
- Reopened
- links to