Lists & arrays
Scalar
array_distinct()
Removes all duplicates and NULLs from a list. Does not preserve the original order
Reference: DuckDB 1.3.2
Alias of list_distinct()
Arguments & returns
array_distinct(list)
Scalar
| Overload link | list |
Returns |
|---|---|---|
| #01 | ANY[] |
ANY[] |
Example
Haybarn WASM 2.0.0-rc12 · In your browser
Engine example · Run to view results.
Catalog examples
SELECT
list_distinct([1, 1, NULL, -3, 1, 5]);