Count the number of elements equal to a given target value within an array.
COUNTEQUAL(arr, target)arr: ARRAY<T>, supported element types include numeric, boolean, string, datetime, and IP.target: same type as elements of arr.BIGINT, representing the count of equal elements.NULL equals NULL for this function and will be counted.Basic
COUNTEQUAL([1,2,3,2], 2) -> 2COUNTEQUAL(['a','b','a'], 'a') -> 2COUNTEQUAL([true,false,false], false) -> 2NULL is considered equal and will be counted
COUNTEQUAL([1,NULL,2,NULL], NULL) -> 2COUNTEQUAL([1,NULL,1], 1) -> 2COUNTEQUAL([1, 2], NULL) -> 0If the array is NULL, returns NULL
COUNTEQUAL(NULL, 1) -> NULL