Remove all elements equal to the given value from an array while preserving the relative order of the remaining elements.
ARRAY_REMOVE(arr, target)arr: ARRAY<T>, supports numbers, boolean, string, datetime, IP, etc.target: a value of the same type as the array elements, used to match elements to remove.ARRAY<T> of the same type as the input.arr is NULL, returns NULL.target are removed. NULL is equal to NULL.Basic: After removal, the remaining elements keep their original relative order.
ARRAY_REMOVE([1,2,3], 1) -> [2,3]ARRAY_REMOVE([1,2,3,null], 1) -> [2,3,null]If target is NULL, remove NULL in arr.
ARRAY_REMOVE(['a','b','c',NULL], NULL) -> NULLIf arr is NULL, returns NULL
ARRAY_REMOVE(NULL, 2) -> NULLNo match
ARRAY_REMOVE([1,2,3], 258) -> [1,2,3]