DB
FunctionsArray

Array

86 Array functions in the NYXDB native function registry, with signatures, briefs, and measured medians where available.

86 functions in the array family. Each name links to its page; marks the variadic argument list (the engine declares no named parameters). A Measured value appears only where a benchmark corpus case joins by name (server-class hardware, median).

FunctionTypeDescriptionMeasured
array(…) → StringscalarConstruct an array from input arguments.
array_agg(…) → StringaggregateAggregate values into an array.
array_all(…) → BoolscalarCheck if all array elements are truthy.
array_append(…) → StringscalarAppend one value to an array.
array_auc(…) → Float64scalarArea under ROC curve for array inputs.
array_aucpr(…) → Float64scalarArea under precision-recall curve for array inputs.
array_avg(…) → Float64scalarAverage of array elements.
array_cast(…) → StringscalarCast elements of an array to a target type.
array_compact(…) → StringscalarRemove consecutive duplicates in an array.
array_concat(…) → StringscalarConcatenate arrays into one array.
array_concat_agg(…) → StringaggregateConcatenate arrays from all rows.
array_count(…) → UInt64scalarCount elements in an array.
array_cum_sum(…) → StringscalarCumulative sum of array elements.
array_cum_sum_non_negative(…) → StringscalarCumulative sum clamped at zero.
array_difference(…) → StringscalarAdjacent differences for array elements.
array_dims(…) → StringscalarTextual dimensions for one-dimensional arrays.
array_distinct(…) → StringaggregateDistinct values as array.
array_distinct(…) → StringscalarDeduplicate array values while preserving first occurrence order.
array_dot_product(…) → Float64scalarDot product of two numeric arrays.
array_element(…) → StringscalarRead one array element by index.
array_enumerate(…) → StringscalarEnumerate array positions.
array_enumerate_dense(…) → StringscalarDense ids per distinct value in array order.
array_enumerate_dense_ranked(…) → StringscalarDense ranked ids for array elements.
array_enumerate_uniq(…) → StringscalarOccurrence counter for each array value.
array_enumerate_uniq_ranked(…) → StringscalarRanked occurrence counter for each array value.
array_except(…) → StringscalarRemove values of subsequent arrays from the first array.
array_exists(…) → BoolscalarCheck whether any array element matches.
array_fill(…) → StringscalarForward fill null array elements.
array_filter(…) → StringscalarFilter array values by truthy mask or equality.
array_first(…) → StringscalarReturn the first element of an array.
array_first_index(…) → UInt64scalarFirst matching position in an array.
array_first_or_null(…) → StringscalarReturn first element or null for empty arrays.
array_flatten(…) → StringscalarFlatten one nesting level of array elements.
array_fold(…) → Float64scalarReduce array elements into one numeric accumulator.
array_intersect(…) → StringscalarIntersect array values across all input arrays.
array_jaccard_index(…) → Float64scalarJaccard similarity of two arrays as sets.
array_join(…) → StringstreamExpand an array into a stream of rows.
array_last(…) → StringscalarReturn the last element of an array.
array_last_index(…) → UInt64scalarLast matching position in an array.
array_last_or_null(…) → StringscalarReturn last element or null for empty arrays.
array_length(…) → UInt64scalarLength of an array.
array_lower(…) → UInt64scalarLower bound for an array dimension.
array_map(…) → StringscalarApply a per-element transform to array values.
array_max(…) → Float64scalarMaximum numeric value in an array.
array_min(…) → Float64scalarMinimum array element.
array_ndims(…) → UInt64scalarNumber of array dimensions.
array_normalized_gini(…) → Float64scalarNormalized Gini coefficient.
array_partial_shuffle(…) → StringscalarPartially shuffle an array.
array_pop_back(…) → StringscalarRemove the last array element.
array_pop_front(…) → StringscalarRemove the first array element.
array_position(…) → UInt64scalarPosition of a value in an array.
array_positions(…) → StringscalarPositions of a value in an array.
array_prauc(…) → Float64scalarPrecision-recall AUC for array inputs.
array_prepend(…) → StringscalarPrepend an element to an array.
array_product(…) → Float64scalarProduct of array elements.
array_random_sample(…) → StringscalarRandom sample from an array.
array_reduce(…) → Float64scalarApply an aggregate function to an array.
array_reduce_in_ranges(…) → StringscalarReduce array over ranges.
array_remove(…) → StringscalarRemove elements equal to a value.
array_replace(…) → StringscalarReplace values in an array.
array_resize(…) → StringscalarResize an array.
array_reverse(…) → StringscalarReverse array.
array_reverse_fill(…) → StringscalarBackward-fill missing values.
array_reverse_sort(…) → StringscalarSort array descending.
array_reverse_split(…) → StringscalarSplit array from the end.
array_rocauc(…) → Float64scalarROC AUC.
array_rotate_left(…) → StringscalarRotate array left.
array_rotate_right(…) → StringscalarRotate array right.
array_sample(…) → StringscalarSample elements from an array.
array_shift_left(…) → StringscalarShift array left.
array_shift_right(…) → StringscalarShift array right.
array_shingles(…) → StringscalarGenerate shingles (n-grams).
array_shuffle(…) → StringscalarShuffle array.
array_slice(…) → StringscalarSlice an array.
array_sort(…) → StringscalarSort array.
array_split(…) → StringscalarSplit an array.
array_sum(…) → Float64scalarSum array elements.
array_symmetric_difference(…) → StringscalarArray symmetric difference.
array_to_json(…) → JSONscalarConvert an array to JSON.
array_to_string(…) → StringscalarJoin array elements into a string.
array_union(…) → StringscalarArray union.
array_uniq(…) → UInt64scalarCount distinct elements.
array_upper(…) → UInt64scalarUpper bound of an array dimension.
array_with_constant(…) → StringscalarCreate an array filled with a constant.
array_zip(…) → StringscalarZip arrays.
array_zip_unaligned(…) → StringscalarZip arrays with different lengths.